diff options
author | Volker Stolz <vs@FreeBSD.org> | 2006-04-24 13:10:41 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2006-04-24 13:10:41 +0000 |
commit | ccb9b0d68b268b9b6ff87a6d4fe443aa16554776 (patch) | |
tree | 93fa24f4b0fa8d1de1f439258261caf6417bacae /games/vor/Makefile | |
parent | Update to 0.61. (diff) |
Update to 0.4
PR: ports/94983
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=160317
Diffstat (limited to 'games/vor/Makefile')
-rw-r--r-- | games/vor/Makefile | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/games/vor/Makefile b/games/vor/Makefile index 0950d9518e7d..223746522f4f 100644 --- a/games/vor/Makefile +++ b/games/vor/Makefile @@ -6,7 +6,7 @@ # PORTNAME= vor -PORTVERSION= 0.3 +PORTVERSION= 0.4 CATEGORIES= games MASTER_SITES= http://qualdan.com/vor/ @@ -18,35 +18,33 @@ BUILD_DEPENDS= ${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone USE_SDL= mixer image sdl USE_BZIP2= yes USE_GMAKE= yes -USE_REINPLACE= yes + +PORTDOCS= README + +.include <bsd.port.pre.mk> post-patch: -.for file in main.c shape.h sound.h - @${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/${file} -.endfor -.for file in shape.h score.c score.h debug.c - @${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|' ${WRKSRC}/${file} -.endfor + @${REINPLACE_CMD} -e 's|SDL/||' ${WRKSRC}/sound.c @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|^\(my_objects.*\)$$|\1 ${LOCALBASE}/lib/libargp.a|' ${WRKSRC}/Makefile - @${REINPLACE_CMD} -e 's|/usr/share/vor|${PREFIX}/share/vor|g' ${WRKSRC}/config.h + @${REINPLACE_CMD} -e 's|/usr/share/vor|${DATADIR}|' ${WRKSRC}/Makefile +.if (${OSVERSION} < 500000) + @${REINPLACE_CMD} -e 's|UINT32_MAX|0xffffffffU|' ${WRKSRC}/mt.c + @${REINPLACE_CMD} -e 's|INT32_MIN|(-0x7fffffff-1)|' ${WRKSRC}/mt.c +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/vor ${PREFIX}/bin - ${MKDIR} ${DATADIR} - ${MKDIR} ${DATADIR}/banners - ${MKDIR} ${DATADIR}/fonts - ${MKDIR} ${DATADIR}/icons - ${MKDIR} ${DATADIR}/indicators - ${MKDIR} ${DATADIR}/music - ${MKDIR} ${DATADIR}/sounds - ${MKDIR} ${DATADIR}/sprites - ${INSTALL_DATA} ${WRKSRC}/data/banners/* ${DATADIR}/banners/ - ${INSTALL_DATA} ${WRKSRC}/data/fonts/* ${DATADIR}/fonts/ - ${INSTALL_DATA} ${WRKSRC}/data/icons/* ${DATADIR}/icons/ - ${INSTALL_DATA} ${WRKSRC}/data/indicators/* ${DATADIR}/indicators/ - ${INSTALL_DATA} ${WRKSRC}/data/music/* ${DATADIR}/music/ - ${INSTALL_DATA} ${WRKSRC}/data/sounds/* ${DATADIR}/sounds/ - ${INSTALL_DATA} ${WRKSRC}/data/sprites/* ${DATADIR}/sprites/ - -.include <bsd.port.mk> +.for d in banners fonts icons indicators music sounds sprites + ${MKDIR} ${DATADIR}/${d} + ${INSTALL_DATA} ${WRKSRC}/data/${d}/* ${DATADIR}/${d}/ +.endfor + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.post.mk> |