- Add stage support

- Add DOCS option
This commit is contained in:
Danilo Egea Gondolfo 2013-10-30 05:26:42 +00:00
parent d0515d3243
commit 37440a4c6a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332067
2 changed files with 18 additions and 20 deletions

View file

@ -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>

View file

@ -1,4 +1,5 @@
bin/battalion
man/man6/battalion.6.gz
%%DATADIR%%/battalion.sho
%%DATADIR%%/DATA/road.data
%%DATADIR%%/DATA/tank.data