aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/ftpmirror
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2012-08-03 23:34:45 +0800
committergarga <garga@FreeBSD.org>2012-08-03 23:34:45 +0800
commit614c4ed9928269c536345007e69e8ba648fccf8d (patch)
tree840e8379f841715c5db9a647458ff49f7766d803 /ftp/ftpmirror
parenta3dfce416fb9bdc21b43f0f2cbc480e7205aaa94 (diff)
downloadfreebsd-ports-gnome-614c4ed9928269c536345007e69e8ba648fccf8d.tar.gz
freebsd-ports-gnome-614c4ed9928269c536345007e69e8ba648fccf8d.tar.zst
freebsd-ports-gnome-614c4ed9928269c536345007e69e8ba648fccf8d.zip
Add DOCS, EXAMPLES and NLS to OPTIONS_DEFINE to my ports
Diffstat (limited to 'ftp/ftpmirror')
-rw-r--r--ftp/ftpmirror/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/ftp/ftpmirror/Makefile b/ftp/ftpmirror/Makefile
index 61ce3fa19a3b..9ffa431e02e5 100644
--- a/ftp/ftpmirror/Makefile
+++ b/ftp/ftpmirror/Makefile
@@ -16,15 +16,16 @@ COMMENT= An utility to mirror directory hierarchy with FTP
RUN_DEPENDS= p5-Socket6>=0:${PORTSDIR}/net/p5-Socket6
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
+
USE_PERL5= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
CONFIGURE_ENV+= PERL="${PERL}" INSTALL_PROGRAM="${INSTALL_SCRIPT}"
-.if !defined (NOPORTDOCS)
PORTDOCS= README.jis RELEASE.jis
-.endif
post-configure:
@${PERL} -i.bak -pe 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/Fan/Fan.pm
@@ -32,12 +33,14 @@ post-configure:
@${PERL} -i.bak -pe 's,^#!.*$$,#!${PERL}, if $$. == 1' ${WRKSRC}/${f}
.endfor
+.include <bsd.port.pre.mk>
+
post-install:
-.if !defined (NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>