aboutsummaryrefslogtreecommitdiff
path: root/games/omega/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/omega/Makefile')
-rw-r--r--games/omega/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/games/omega/Makefile b/games/omega/Makefile
index 5aa4875e4311..5124ceb0b5ea 100644
--- a/games/omega/Makefile
+++ b/games/omega/Makefile
@@ -1,4 +1,4 @@
-# Created by: Andrey Zakhvatov
+# Created by: Andrey Zakhvatov <andy@icc.surw.chel.su>
# $FreeBSD$
PORTNAME= omega
@@ -10,6 +10,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= Complex rogue-style game of dungeon exploration
+USES= gmake # to allow -jX builds (rules with multiple outputs)
WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET= # empty
CFLAGS+= -Wno-return-type
@@ -18,11 +19,15 @@ MAN6= omega.6
MYPORTDOCS= buglist.txt docs/compile.all docs/omega.txt docs/readme.1st \
docs/readme3 docs/readme4
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/omega ${PREFIX}/bin/omega-game
@${CHOWN} root:games ${PREFIX}/bin/omega-game
@${CHMOD} 2711 ${PREFIX}/bin/omega-game
- ${INSTALL_MAN} ${WRKSRC}/docs/omega.6 ${PREFIX}/man/man6
+ ${INSTALL_MAN} ${WRKSRC}/docs/omega.6 ${MANPREFIX}/man/man6
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/lib/* ${DATADIR}
@${RM} ${DATADIR}/license.old
@@ -31,11 +36,9 @@ do-install:
${CP} ${DATADIR}/omega.hi ${DATADIR}/omegahi.bak
@${CHMOD} 0460 ${DATADIR}/omegahi.bak
@${CHOWN} -R root:games ${DATADIR}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
-.for file in ${MYPORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+ ${INSTALL_DATA} ${MYPORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.include <bsd.port.mk>