diff options
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/ftpmirror/Makefile | 11 |
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> |