diff --git a/games/miscom/Makefile b/games/miscom/Makefile index 13e22a1018b8..3ea8b560f175 100644 --- a/games/miscom/Makefile +++ b/games/miscom/Makefile @@ -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 .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 diff --git a/games/miscom/pkg-plist b/games/miscom/pkg-plist index fb003e62ae17..b7ba71467269 100644 --- a/games/miscom/pkg-plist +++ b/games/miscom/pkg-plist @@ -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%%