aboutsummaryrefslogtreecommitdiff
path: root/games/untahris/Makefile
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-08-12 11:07:41 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-08-12 11:07:41 +0000
commitbc3d1122fe6ad325aa61192ae99121d3d70ec886 (patch)
treeb7197e2197e7a198f5a51c5ac0dca1e67e1a1e24 /games/untahris/Makefile
parent6e167132068fe2e5fecbb18ab00d7d24d07307c8 (diff)
downloadports-bc3d1122fe6ad325aa61192ae99121d3d70ec886.tar.gz
ports-bc3d1122fe6ad325aa61192ae99121d3d70ec886.zip
Notes
Diffstat (limited to 'games/untahris/Makefile')
-rw-r--r--games/untahris/Makefile33
1 files changed, 14 insertions, 19 deletions
diff --git a/games/untahris/Makefile b/games/untahris/Makefile
index 8e5b769304cb..a6210434a0f2 100644
--- a/games/untahris/Makefile
+++ b/games/untahris/Makefile
@@ -6,44 +6,39 @@
#
PORTNAME= untahris
-DISTVERSION= 1.0beta
-PORTREVISION= 1
+PORTVERSION= 2.0
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= ${PORTNAME}-${DISTVERSION}-src
+MASTER_SITES= SF
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
EXTRACT_SUFX= .tgz
MAINTAINER= amdmi3@amdmi3.ru
COMMENT= Play several classic fun, simple arcade games in multiplayer mode
-USE_SDL= sdl net ttf
-USE_GCC= 3.4+
+USE_SDL= sdl net ttf mixer
WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_FILES= bin/untahris %%DATADIR%%/VeraBd.ttf %%DATADIR%%/graph16.unt
-PLIST_DIRS= %%DATADIR%%
-
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 500000
-BROKEN= does not compile on 4.x
-.endif
-
post-patch:
- @${REINPLACE_CMD} -e 's|verabd.ttf|${DATADIR}/VeraBd.ttf|; \
- s|graph%d|${DATADIR}/graph%d|' ${WRKSRC}/intface.cpp
+ @${REINPLACE_CMD} -e 's|VeraBd.ttf|${DATADIR}/VeraBd.ttf|; \
+ s|graph%d|${DATADIR}/&|; s|[a-z]*\.wav|${DATADIR}/&|' \
+ ${WRKSRC}/intface.cpp
@${REINPLACE_CMD} -e 's|TPlayground::||' ${WRKSRC}/untahris.h
do-build:
cd ${WRKSRC} && ${CXX} ${CXXFLAGS} `${SDL_CONFIG} --libs --cflags` \
- -lSDL_net -lSDL_ttf untahris.cpp -o untahris
+ -lSDL_net -lSDL_ttf -lSDL_mixer untahris.cpp -o untahris
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/untahris ${PREFIX}/bin
${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/VeraBd.ttf ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/graph16.unt ${DATADIR}
+.for f in VeraBd.ttf graph16.unt *.wav
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
+.endfor
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
.include <bsd.port.post.mk>