diff options
author | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2013-10-30 05:26:42 +0000 |
---|---|---|
committer | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2013-10-30 05:26:42 +0000 |
commit | 37440a4c6a17b85327b08d1792d89a10a3bbcdcb (patch) | |
tree | dce377053e50ed697a979ade171229d515f2bba8 /games/battalion | |
parent | d0515d32430e01dd3c3a851741eb4cbe1c57cb14 (diff) | |
download | ports-37440a4c6a17b85327b08d1792d89a10a3bbcdcb.tar.gz ports-37440a4c6a17b85327b08d1792d89a10a3bbcdcb.zip |
- Add stage support
- Add DOCS option
Notes
Notes:
svn path=/head/; revision=332067
Diffstat (limited to 'games/battalion')
-rw-r--r-- | games/battalion/Makefile | 37 | ||||
-rw-r--r-- | games/battalion/pkg-plist | 1 |
2 files changed, 18 insertions, 20 deletions
diff --git a/games/battalion/Makefile b/games/battalion/Makefile index 077177dad766..67dfedcdd178 100644 --- a/games/battalion/Makefile +++ b/games/battalion/Makefile @@ -18,11 +18,10 @@ MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="${LDFLAGS}" CFLAGS+= -I${LOCALBASE}/include/X11 -I${LOCALBASE}/include \ -DLINUXVERSION -DLINUXAUDIO -LDFLAGS= -L${LOCALBASE}/lib -lX11 -lm +LDFLAGS+= -L${LOCALBASE}/lib -lX11 -lm -MAN6= battalion.6 +OPTIONS_DEFINE= DOCS -NO_STAGE= yes post-extract: @${GZCAT} ${DISTDIR}/battalionSUN4.tar.gz | \ (cd ${WRKDIR} && ${TAR} --unlink -xf -) @@ -36,24 +35,22 @@ post-patch: s|<linux/soundcard\.h>|<sys/soundcard.h>|' ${WRKSRC}/soundIt.c do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/battalion ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/battalion ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKDIR}/battalionSUN4/battalion.man \ - ${MAN6PREFIX}/man/man6/battalion.6 - @${MKDIR} ${DATADIR} + ${STAGEDIR}${MAN6PREFIX}/man/man6/battalion.6 + @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/battalion.sho \ - ${DATADIR} - @${MKDIR} ${DATADIR}/DATA - ${INSTALL_DATA} ${WRKSRC}/DATA/*.data ${DATADIR}/DATA - @${MKDIR} ${DATADIR}/MUSIC - ${INSTALL_DATA} ${WRKSRC}/MUSIC/*.au ${DATADIR}/MUSIC - @${MKDIR} ${DATADIR}/SOUNDS - ${INSTALL_DATA} ${WRKSRC}/SOUNDS/*.au ${DATADIR}/SOUNDS - @${MKDIR} ${DATADIR}/TEXTURES - ${INSTALL_DATA} ${WRKSRC}/TEXTURES/*.tex ${DATADIR}/TEXTURES -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/HELP/*.gif ${DOCSDIR} -.endif + ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR}/DATA + ${INSTALL_DATA} ${WRKSRC}/DATA/*.data ${STAGEDIR}${DATADIR}/DATA + @${MKDIR} ${STAGEDIR}${DATADIR}/MUSIC + ${INSTALL_DATA} ${WRKSRC}/MUSIC/*.au ${STAGEDIR}${DATADIR}/MUSIC + @${MKDIR} ${STAGEDIR}${DATADIR}/SOUNDS + ${INSTALL_DATA} ${WRKSRC}/SOUNDS/*.au ${STAGEDIR}${DATADIR}/SOUNDS + @${MKDIR} ${STAGEDIR}${DATADIR}/TEXTURES + ${INSTALL_DATA} ${WRKSRC}/TEXTURES/*.tex ${STAGEDIR}${DATADIR}/TEXTURES + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/HELP/*.gif ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/games/battalion/pkg-plist b/games/battalion/pkg-plist index 70b8379e2584..290b43364d66 100644 --- a/games/battalion/pkg-plist +++ b/games/battalion/pkg-plist @@ -1,4 +1,5 @@ bin/battalion +man/man6/battalion.6.gz %%DATADIR%%/battalion.sho %%DATADIR%%/DATA/road.data %%DATADIR%%/DATA/tank.data |