Revision: 90266 http://trac.macports.org/changeset/90266 Author: jmr@macports.org Date: 2012-02-28 06:14:12 -0800 (Tue, 28 Feb 2012) Log Message: ----------- euchre: nomaintainer, fix 64-bit build (#28688), license Modified Paths: -------------- trunk/dports/games/euchre/Portfile Added Paths: ----------- trunk/dports/games/euchre/files/ trunk/dports/games/euchre/files/types.patch Modified: trunk/dports/games/euchre/Portfile =================================================================== --- trunk/dports/games/euchre/Portfile 2012-02-28 13:06:09 UTC (rev 90265) +++ trunk/dports/games/euchre/Portfile 2012-02-28 14:14:12 UTC (rev 90266) @@ -1,11 +1,13 @@ # $Id$ PortSystem 1.0 + name euchre version 0.7c categories games x11 +license GPL-2+ platforms darwin -maintainers gmail.com:abender +maintainers nomaintainer description euchre, a common card game long_description Implementation of the card game euchre in C++ with GUI in \ GTK. @@ -13,13 +15,14 @@ master_sites http://www.cs.umd.edu/~bender/ checksums md5 93667d371b037e897b05a0000b5bf094 -depends_lib port:gtk1 port:gettext port:glib1 +depends_lib port:gtk1 worksrcdir ${name}-0.7 +patchfiles types.patch + post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} README NEWS AUTHORS TODO COPYING \ ${destroot}${prefix}/share/doc/${name} } - Added: trunk/dports/games/euchre/files/types.patch =================================================================== --- trunk/dports/games/euchre/files/types.patch (rev 0) +++ trunk/dports/games/euchre/files/types.patch 2012-02-28 14:14:12 UTC (rev 90266) @@ -0,0 +1,50 @@ +--- src/gui/callbacks.cpp.orig 2006-01-02 14:47:53.000000000 +1100 ++++ src/gui/callbacks.cpp 2012-02-29 01:02:03.000000000 +1100 +@@ -104,13 +104,13 @@ void + on_pcard_clicked (GtkButton *button, + gpointer user_data) + { +- LOG("enter on_pcard_clicked with %d\n", (int) user_data); ++ LOG("enter on_pcard_clicked with %p\n", user_data); + HumanGuiPlayer* p = (HumanGuiPlayer*) theGame->getPlayer(Common::SOUTH); + if (p == NULL) { + return; + } + +- p->setSelectedCard((int) user_data); ++ p->setSelectedCard((intptr_t) user_data); + theGame->addEvent(Game::PAUSE_END); + theGame->run(); + } +@@ -142,7 +142,7 @@ on_auction2_clicked ( + gpointer user_data) + { + Player* p = theGame->getPlayer(Common::SOUTH); +- p->assignBid((Common::Bid) ((int) user_data)); ++ p->assignBid((Common::Bid) ((intptr_t) user_data)); + + theGame->addEvent(Game::AUCTION_CONT); + theGame->run(); +@@ -202,9 +202,9 @@ on_bid_clicked ( + Player* p = theGame->getPlayer(Common::SOUTH); + + if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(t))) { +- p->assignBid(Common::LONER, (Card::Suit) (int) user_data); ++ p->assignBid(Common::LONER, (Card::Suit) (intptr_t) user_data); + } else { +- p->assignBid(Common::PICKITUP, (Card::Suit) (int) user_data); ++ p->assignBid(Common::PICKITUP, (Card::Suit) (intptr_t) user_data); + } + + theGame->addEvent(Game::AUCTION_CONT); +--- src/lib/Game.cpp.orig 2006-01-15 12:58:31.000000000 +1100 ++++ src/lib/Game.cpp 2012-02-29 00:49:49.000000000 +1100 +@@ -59,7 +59,7 @@ void Game::run() { + while (g_slist_length(itsEventList) != 0) { + /* gcc doesn't like conversion from void* to Event so hack around + it */ +- Event ev = (Event) (unsigned int) g_slist_nth_data(itsEventList, 0); ++ Event ev = (Event) (intptr_t) g_slist_nth_data(itsEventList, 0); + itsEventList = g_slist_remove(itsEventList, (gpointer) ev); + + processEvent(ev);