aboutsummaryrefslogtreecommitdiff
path: root/games/omega
diff options
context:
space:
mode:
authorDanilo Egea Gondolfo <danilo@FreeBSD.org>2013-11-04 21:13:39 +0000
committerDanilo Egea Gondolfo <danilo@FreeBSD.org>2013-11-04 21:13:39 +0000
commit5d982c6dcc94c89c7c765a6728aa21e8011aeaf1 (patch)
tree55e83700cc4340c5544fc04f533d40da1955d96d /games/omega
parenta472eae3743e28174fe04e4d9364130638c297aa (diff)
downloadports-5d982c6dcc94c89c7c765a6728aa21e8011aeaf1.tar.gz
ports-5d982c6dcc94c89c7c765a6728aa21e8011aeaf1.zip
- Add stage support
- Convert USE_GMAKE to USES
Notes
Notes: svn path=/head/; revision=332784
Diffstat (limited to 'games/omega')
-rw-r--r--games/omega/Makefile29
-rw-r--r--games/omega/pkg-plist14
2 files changed, 17 insertions, 26 deletions
diff --git a/games/omega/Makefile b/games/omega/Makefile
index b4a6d341690c..d6e90b2633a4 100644
--- a/games/omega/Makefile
+++ b/games/omega/Makefile
@@ -10,36 +10,23 @@ 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)
+USES= gmake
WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET= # empty
CFLAGS+= -Wno-return-type
-MAN6= omega.6
MYPORTDOCS= buglist.txt docs/compile.all docs/omega.txt docs/readme.1st \
docs/readme3 docs/readme4
OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
-.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 ${MANPREFIX}/man/man6
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/lib/* ${DATADIR}
- @${RM} ${DATADIR}/license.old
- @${CHMOD} 0460 ${DATADIR}/omega.hi
- @${CHMOD} 0460 ${DATADIR}/omega.log
- ${CP} ${DATADIR}/omega.hi ${DATADIR}/omegahi.bak
- @${CHMOD} 0460 ${DATADIR}/omegahi.bak
- @${CHOWN} -R root:games ${DATADIR}
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${MYPORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/omega ${STAGEDIR}${PREFIX}/bin/omega-game
+ ${INSTALL_MAN} ${WRKSRC}/docs/omega.6 ${STAGEDIR}${MANPREFIX}/man/man6
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/lib/* ${STAGEDIR}${DATADIR}
+ ${CP} ${STAGEDIR}${DATADIR}/omega.hi ${STAGEDIR}${DATADIR}/omegahi.bak
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${MYPORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/games/omega/pkg-plist b/games/omega/pkg-plist
index 4f993f19edd9..a867a71f7cd7 100644
--- a/games/omega/pkg-plist
+++ b/games/omega/pkg-plist
@@ -1,19 +1,21 @@
-@owner games
@group games
-@mode 4711
+@mode 2711
bin/omega-game
-@mode 666
+@mode
+@group
+@mode 460
%%DATADIR%%/omega.hi
%%DATADIR%%/omega.log
-@mode 600
%%DATADIR%%/omegahi.bak
@mode
+man/man6/omega.6.gz
%%PORTDOCS%%%%DOCSDIR%%/buglist.txt
%%PORTDOCS%%%%DOCSDIR%%/compile.all
%%PORTDOCS%%%%DOCSDIR%%/omega.txt
%%PORTDOCS%%%%DOCSDIR%%/readme.1st
%%PORTDOCS%%%%DOCSDIR%%/readme3
%%PORTDOCS%%%%DOCSDIR%%/readme4
+@group games
%%DATADIR%%/abyss.dat
%%DATADIR%%/abyss.txt
%%DATADIR%%/arena.dat
@@ -40,6 +42,7 @@ bin/omega-game
%%DATADIR%%/home3.dat
%%DATADIR%%/intro.txt
%%DATADIR%%/lgpl.txt
+%%DATADIR%%/license.old
%%DATADIR%%/license.txt
%%DATADIR%%/maze1.dat
%%DATADIR%%/maze2.dat
@@ -61,5 +64,6 @@ bin/omega-game
%%DATADIR%%/village4.dat
%%DATADIR%%/village5.dat
%%DATADIR%%/village6.dat
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%DATADIR%%
+@group
+%%PORTDOCS%%@dirrm %%DOCSDIR%%