Re: UPDATE: games/micropolis

2008-02-12 Thread Antti Harri


Works okay on i386 with very light testing.

SDL sounds were working and the quit button
from window decoration works now in the main menu.

--
Antti Harri



UPDATE: games/micropolis

2008-02-11 Thread Deanna Phillips
Here is a new micropolis snapshot.

Changes:

SDL audio support

Missing cities are now installed and selectable in the scenario
and file menus

The program no longer quits when a game has been lost

And I've removed lots of our patches and files since they have
been included upstream.

Full details:
http://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis

Index: Makefile
===
RCS file: /cvs/ports/games/micropolis/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile27 Jan 2008 18:16:22 -  1.7
+++ Makefile12 Feb 2008 04:25:45 -
@@ -2,11 +2,8 @@
 
 COMMENT=   city-building simulation
 
-DISTNAME=  micropolis-20080126
+DISTNAME=  micropolis-20080211
 WRKDIST=   ${WRKDIR}/micropolis
-WRKSRC=${WRKDIST}/src
-MAKE_FILE= makefile
-PKGNAME=   ${DISTNAME}p0
 
 CATEGORIES=games
 
@@ -24,39 +21,18 @@ PERMIT_DISTFILES_FTP=   Yes
 
 NO_REGRESS=Yes
 USE_X11=   Yes
-RUN_DEPENDS=   ::audio/esound \
-   ::devel/desktop-file-utils
+RUN_DEPENDS=   ::devel/desktop-file-utils
+WANTLIB=   c m X11 Xext Xpm pthread
+LIB_DEPENDS=   SDL::devel/sdl \
+   SDL_mixer::devel/sdl-mixer
 
-WANTLIB=   c m X11 Xext Xpm
+CFLAGS+=   -I${LOCALBASE}/include -I${X11BASE}/include
 
 do-configure:
@perl -pi -e s,%%PREFIX%%,${PREFIX}, ${WRKDIST}/Micropolis
@perl -pi -e s,%%PREFIX%%,${PREFIX}, ${WRKDIST}/res/micropolis.tcl
@perl -pi -e s,%%LOCALBASE%%,${LOCALBASE}, ${WRKDIST}/res/micropolis.tcl
-   @perl -pi -e s,%%X11BASE%%,${X11BASE},g ${WRKSRC}/sim/makefile
-   @perl -pi -e s,%%X11BASE%%,${X11BASE},g ${WRKSRC}/tclx/config.mk
-   @perl -pi -e s,%%X11BASE%%,${X11BASE},g ${WRKSRC}/tk/makefile
-
-do-install:
-   @${INSTALL_DATA_DIR} ${PREFIX}/share/micropolis
-   @${INSTALL_DATA_DIR} ${PREFIX}/share/doc/micropolis
-   @cd ${WRKDIST}  \
-find res -type d -exec ${INSTALL_DATA_DIR} 
${PREFIX}/share/micropolis/{} \;
-   @cd ${WRKDIST}  \
-find images -type d -exec ${INSTALL_DATA_DIR} 
${PREFIX}/share/micropolis/{} \;
-   @cd ${WRKDIST}  \
-find manual -type d -exec ${INSTALL_DATA_DIR} 
${PREFIX}/share/doc/micropolis/{} \;
-   @cd ${WRKDIST}  \
-find res -type f -exec ${INSTALL_DATA} {} 
${PREFIX}/share/micropolis/{} \;
-   @cd ${WRKDIST}  \
-find images -type f -exec ${INSTALL_DATA} {} 
${PREFIX}/share/micropolis/{} \;
-   @cd ${WRKDIST}  \
-find manual -type f -exec ${INSTALL_DATA} {} 
${PREFIX}/share/doc/micropolis/{} \;
-   @${INSTALL_SCRIPT} ${WRKDIST}/Micropolis ${PREFIX}/bin/micropolis
-   @${INSTALL_PROGRAM} ${WRKSRC}/sim/sim ${PREFIX}/libexec/sim
-   @${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
-   @${INSTALL_DATA} ${WRKDIST}/Micropolis.png 
${PREFIX}/share/pixmaps/micropolis.png
-   @${INSTALL_DATA_DIR} ${PREFIX}/share/applications
-   @${INSTALL_DATA} ${FILESDIR}/micropolis.desktop 
${PREFIX}/share/applications
+   @perl -pi -e s,%%X11BASE%%,${X11BASE},g ${WRKSRC}/src/tclx/config.mk
+   @perl -pi -e s,%%X11BASE%%,${X11BASE},g ${WRKSRC}/src/tk/makefile
 
 .include bsd.port.mk
Index: distinfo
===
RCS file: /cvs/ports/games/micropolis/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo27 Jan 2008 16:34:32 -  1.2
+++ distinfo12 Feb 2008 04:02:41 -
@@ -1,5 +1,5 @@
-MD5 (micropolis-20080126.tar.gz) = uJ8wCXJOka4s/mY7GmZ8sQ==
-RMD160 (micropolis-20080126.tar.gz) = ci56nKpQQNhD2jv9R057g9PAvGU=
-SHA1 (micropolis-20080126.tar.gz) = Tthc9zHHSZuuegll4tTUni4A6pY=
-SHA256 (micropolis-20080126.tar.gz) = 
KishRtXpjJ4JJNzueKZ7rxNJ9IjT1CtWVmQw6itdQoE=
-SIZE (micropolis-20080126.tar.gz) = 7598929
+MD5 (micropolis-20080211.tar.gz) = KvHQIrQsfiB/4H/RHftCzg==
+RMD160 (micropolis-20080211.tar.gz) = jSQrguNBM8V4dRzvN5j3hxBtB94=
+SHA1 (micropolis-20080211.tar.gz) = Zz0qtPk5/dwdKeEOL2wsJe8hsFk=
+SHA256 (micropolis-20080211.tar.gz) = 
PFZfZKs4bUU+hTnCHq7fKL28BKggbuebhEVU57d/TXo=
+SIZE (micropolis-20080211.tar.gz) = 7582055
Index: files/micropolis.desktop
===
RCS file: files/micropolis.desktop
diff -N files/micropolis.desktop
--- files/micropolis.desktop19 Jan 2008 21:21:55 -  1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,12 +0,0 @@
-[Desktop Entry]
-Type=Application
-Version=1.0
-Encoding=UTF-8
-Name=Micropolis 
-GenericName=Micropolis City Simulation Game
-Comment=City simulation game, open sourced from original SimCity(tm)
-Icon=micropolis.png
-Exec=micropolis
-Terminal=false
-StartupNotify=false
-Categories=Game;Simulation;
Index: patches/patch-res_micropolis_tcl
===
RCS file: patches/patch-res_micropolis_tcl
diff -N patches/patch-res_micropolis_tcl
---