aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-11-16 09:47:44 +0800
committerdanilo <danilo@FreeBSD.org>2013-11-16 09:47:44 +0800
commit29b435ed9c56ca9c784f7395643bf1ae37f737d9 (patch)
tree7b5834ef8ab99290b0039aaa6a3490f829ff6383 /games
parent0c465c86fe106212a0f49daa4823477840cc0607 (diff)
downloadfreebsd-ports-gnome-29b435ed9c56ca9c784f7395643bf1ae37f737d9.tar.gz
freebsd-ports-gnome-29b435ed9c56ca9c784f7395643bf1ae37f737d9.tar.zst
freebsd-ports-gnome-29b435ed9c56ca9c784f7395643bf1ae37f737d9.zip
- Remove the indefinite article from COMMENT
- Use options helpers - Add stage support
Diffstat (limited to 'games')
-rw-r--r--games/znibbles/Makefile28
1 files changed, 12 insertions, 16 deletions
diff --git a/games/znibbles/Makefile b/games/znibbles/Makefile
index 953ae7aa8daf..77de8b44ca56 100644
--- a/games/znibbles/Makefile
+++ b/games/znibbles/Makefile
@@ -9,7 +9,7 @@ MASTER_SITES= http://old.koalateam.com/ftp/pub/games/znibbles/ \
http://www.jfouffa.com/vmallet/archives/
MAINTAINER= ports@FreeBSD.org
-COMMENT= A multi-player networked nibbles game
+COMMENT= Multi-player networked nibbles game
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
@@ -21,19 +21,15 @@ USES= motif
WANT_GNOME= yes
GNU_CONFIGURE= yes
-MAN6= nibbles.6 znibbles.6 znibblesX.6
-PLIST_FILES= bin/nibbles bin/znibbles bin/znibblesX
+PLIST_FILES= bin/nibbles bin/znibbles bin/znibblesX \
+ man/man6/nibbles.6.gz man/man6/znibbles.6.gz \
+ man/man6/znibblesX.6.gz
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+GTK1_USE= GNOME=gtk12
+GTK1_PLIST_FILES= man/man6/gznibbles.6.gz bin/gznibbles
+GTK1_CONFIGURE_ENABLE= gtk
-.if ${PORT_OPTIONS:MGTK1}
-USE_GNOME+= gtk12
-MAN6+= gznibbles.6
-PLIST_FILES+= bin/gznibbles
-.else
-CONFIGURE_ARGS+=--disable-gtk
-.endif
+.include <bsd.port.options.mk>
post-extract:
@${RM} -f ${WRKSRC}/src/getopt.h
@@ -52,11 +48,11 @@ post-patch:
.endfor
post-install:
- ${INSTALL_MAN} ${WRKSRC}/doc/nibbles.6 ${MAN6PREFIX}/man/man6
- ${INSTALL_MAN} ${WRKSRC}/doc/znibbles.6 ${MAN6PREFIX}/man/man6
- ${INSTALL_MAN} ${WRKSRC}/doc/znibblesX.6 ${MAN6PREFIX}/man/man6
+ ${INSTALL_MAN} ${WRKSRC}/doc/nibbles.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
+ ${INSTALL_MAN} ${WRKSRC}/doc/znibbles.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
+ ${INSTALL_MAN} ${WRKSRC}/doc/znibblesX.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
.if ${PORT_OPTIONS:MGTK1}
- ${INSTALL_MAN} ${WRKSRC}/doc/gznibbles.6 ${MAN6PREFIX}/man/man6
+ ${INSTALL_MAN} ${WRKSRC}/doc/gznibbles.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
.endif
.include <bsd.port.mk>