summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-11-05 00:39:45 +0000
committerdanilo <danilo@FreeBSD.org>2013-11-05 00:39:45 +0000
commit7deccec9b24f3b9b966389b0f9ad0a27d204ccec (patch)
tree728799cca3fc836880aec5b57bd35564a14232f3
parent6f4dd3740319ab8db355ed3701f343a8c068f7ce (diff)
downloadFreeBSD-ports-7deccec9b24f3b9b966389b0f9ad0a27d204ccec.zip
FreeBSD-ports-7deccec9b24f3b9b966389b0f9ad0a27d204ccec.tar.gz
- Convert USE_GMAKE to USES
- Add DOCS option - Add stage support
-rw-r--r--games/phalanx/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/games/phalanx/Makefile b/games/phalanx/Makefile
index 70c2249..db5ce8c 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 <bsd.port.mk>
OpenPOWER on IntegriCloud