- Add LICENSE

- Add stage support
- Add DOCS option
- Use DOCSDIR and DATADIR in pkg-plist
This commit is contained in:
Danilo Egea Gondolfo 2013-11-04 18:50:32 +00:00
parent f445673be9
commit c609fd4281
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332756
2 changed files with 27 additions and 29 deletions

View File

@ -11,32 +11,29 @@ DISTNAME= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Atari "Missile Command" clone
ALL_TARGET=
WRKSRC= ${WRKDIR}/miscom
MAN6= miscom.6
LICENSE= GPLv2
ALL_TARGET=
MAKE_ARGS= CC="${CC}" DATADIR="${DATADIR}" \
CFLAGS="${CFLAGS}"
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
CFLAGS+= -DSOUNDSDIR='\"$(DATADIR)\"' -DSOUND_SUPPORT -DMORE_SOUNDBUF
.endif
MAKE_ARGS= CC="${CC}" DATADIR="${DATADIR}" \
CFLAGS="${CFLAGS}"
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/miscom ${PREFIX}/bin
@ ${INSTALL_MAN} ${WRKSRC}/${MAN6} ${PREFIX}/man/man6
@ ${MKDIR} ${PREFIX}/share/miscom
@ ${INSTALL_DATA} ${WRKSRC}/sounds/* ${PREFIX}/share/miscom
post-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${PREFIX}/share/doc/miscom
${INSTALL_PROGRAM} ${WRKSRC}/miscom ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/miscom.6 ${STAGEDIR}${PREFIX}/man/man6
@${MKDIR} ${STAGEDIR}${PREFIX}/share/miscom
${INSTALL_DATA} ${WRKSRC}/sounds/* ${STAGEDIR}${PREFIX}/share/miscom
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/miscom
.for file in COPYING ChangeLog README TODO
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/miscom
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/share/doc/miscom
.endfor
.endif
.include <bsd.port.post.mk>

View File

@ -1,13 +1,14 @@
bin/miscom
%%PORTDOCS%%share/doc/miscom/COPYING
%%PORTDOCS%%share/doc/miscom/ChangeLog
%%PORTDOCS%%share/doc/miscom/README
%%PORTDOCS%%share/doc/miscom/TODO
share/miscom/citybang.raw
share/miscom/explode.raw
share/miscom/gameover.raw
share/miscom/launch.raw
share/miscom/levelend.raw
share/miscom/levelst.raw
%%PORTDOCS%%@dirrm share/doc/miscom
@dirrm share/miscom
man/man6/miscom.6.gz
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%DATADIR%%/citybang.raw
%%DATADIR%%/explode.raw
%%DATADIR%%/gameover.raw
%%DATADIR%%/launch.raw
%%DATADIR%%/levelend.raw
%%DATADIR%%/levelst.raw
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%DATADIR%%