aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-11-02 21:59:11 +0800
committerdanilo <danilo@FreeBSD.org>2013-11-02 21:59:11 +0800
commit64478935ef306864eacb2837f16fa137f91f3f30 (patch)
tree8e1f5a30c553b908238dee7ec26afcb50e740db3 /games
parent2437ec9b8826542380f991a4f0e570db3aa4f608 (diff)
downloadfreebsd-ports-gnome-64478935ef306864eacb2837f16fa137f91f3f30.tar.gz
freebsd-ports-gnome-64478935ef306864eacb2837f16fa137f91f3f30.tar.zst
freebsd-ports-gnome-64478935ef306864eacb2837f16fa137f91f3f30.zip
- Add stage support
- Add DOCS options
Diffstat (limited to 'games')
-rw-r--r--games/jzip/Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/games/jzip/Makefile b/games/jzip/Makefile
index ccb9ab26ab8e..3f5074c01658 100644
--- a/games/jzip/Makefile
+++ b/games/jzip/Makefile
@@ -16,12 +16,10 @@ USE_ZIP= yes
CPPFLAGS+= -DPOSIX -DHAVE_GETOPT
-MAN1= jzip.1
PORTDOCS= Jzip.doc
-PLIST_FILES= bin/jzip
+PLIST_FILES= bin/jzip man/man1/jzip.1.gz
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
@@ -34,11 +32,9 @@ post-patch:
's|^void main|int main|' ${WRKSRC}/jzexe.c
do-install:
- (cd ${WRKSRC} && ${INSTALL_PROGRAM} jzip ${PREFIX}/bin)
- (cd ${WRKSRC} && ${INSTALL_DATA} jzip.1 ${MANPREFIX}/man/man1)
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- (cd ${WRKSRC} && ${INSTALL_DATA} Jzip.doc ${DOCSDIR})
-.endif
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} jzip ${STAGEDIR}${PREFIX}/bin)
+ (cd ${WRKSRC} && ${INSTALL_DATA} jzip.1 ${STAGEDIR}${MANPREFIX}/man/man1)
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} Jzip.doc ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>