From 94c202ef760f359f86fe3f8eb7f6476fbdabca6f Mon Sep 17 00:00:00 2001 From: Danilo Egea Gondolfo Date: Tue, 5 Nov 2013 00:39:45 +0000 Subject: - Convert USE_GMAKE to USES - Add DOCS option - Add stage support --- games/phalanx/Makefile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'games/phalanx') diff --git a/games/phalanx/Makefile b/games/phalanx/Makefile index 70c2249fd34b..db5ce8c8fb9d 100644 --- a/games/phalanx/Makefile +++ b/games/phalanx/Makefile @@ -16,7 +16,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING WRKSRC= ${WRKDIR}/${DISTNAME:S/-beta//} -USE_GMAKE= yes +USES= gmake MAKEFILE= makefile MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" ALL_TARGET= # empty @@ -34,16 +34,15 @@ PLIST_FILES= bin/phalanx \ %%DATADIR%%/sbook.phalanx PLIST_DIRS= %%DATADIR%% -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/phalanx ${PREFIX}/bin - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/*.phalanx ${DATADIR} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/phalanx ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/*.phalanx ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} .endfor -.endif .include -- cgit v1.2.3