diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-11-18 05:31:00 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-11-18 05:31:00 +0800 |
commit | 277d527e87b69ca42c1565ec9be9fd2078108ee7 (patch) | |
tree | 92e321911fe42c7a0ca409470c17e8fe820ad8a5 /irc | |
parent | 8df1c3c946eef95af7fb97ed875d5d2404fd6fe8 (diff) | |
download | freebsd-ports-gnome-277d527e87b69ca42c1565ec9be9fd2078108ee7.tar.gz freebsd-ports-gnome-277d527e87b69ca42c1565ec9be9fd2078108ee7.tar.zst freebsd-ports-gnome-277d527e87b69ca42c1565ec9be9fd2078108ee7.zip |
- Switch to options helpers
Diffstat (limited to 'irc')
-rw-r--r-- | irc/sirc/Makefile | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/irc/sirc/Makefile b/irc/sirc/Makefile index 5baaf0ca5232..256baec1ffae 100644 --- a/irc/sirc/Makefile +++ b/irc/sirc/Makefile @@ -19,10 +19,6 @@ RUN_DEPENDS= p5-Perl4-CoreLibs>=0:${PORTSDIR}/devel/p5-Perl4-CoreLibs USES= perl5 -OPTIONS_DEFINE= DOCS IPV6 SIRC_SCRIPTS SOCKS -OPTIONS_DEFAULT=SIRC_SCRIPTS -OPTIONS_SUB= yes - IPV6_RUN_DEPENDS= p5-IO-Socket-INET6>0:${PORTSDIR}/net/p5-IO-Socket-INET6 IPV6_EXTRA_PATCHES= ${PATCHDIR}/dsirc-ipv6 @@ -35,16 +31,14 @@ PORTDOCS= ChangeLog PROGRAMMING README SIRC_SCRIPTS= adcc.pl akickban.pl avoice.pl country.pl finger.pl ftp.pl \ howl.pl lastlog.pl nocolor.pl patattack.pl prefix.pl quiet.pl \ quit.pl thx.pl www.pl yiff.pl +SIRCLIBDIR= ${STAGEDIR}${PREFIX}/libexec/sirc -.include <bsd.port.options.mk> - -.if ! ${PORT_OPTIONS:MIPV6} -EXTRA_PATCHES= ${PATCHDIR}/dsirc-minimal -.endif +OPTIONS_DEFINE= DOCS IPV6 SIRC_SCRIPTS SOCKS +OPTIONS_DEFAULT=SIRC_SCRIPTS +OPTIONS_SUB= yes -.if ${PORT_OPTIONS:MSOCKS} -PKGMESSAGE= ${FILESDIR}/pkg-message-socks -.endif +IPV6_EXTRA_PATCHES_OFF= ${PATCHDIR}/dsirc-minimal +SOCKS_VARS= PKGMESSAGE=${FILESDIR}/pkg-message-socks pre-patch: @${CP} ${WRKSRC}/dsirc ${WRKSRC}/dsirc.prepatch @@ -55,7 +49,6 @@ pre-patch: do-build: ${CC} ${CFLAGS} ${WRKSRC}/ssfe.c -o ${WRKSRC}/ssfe -ltermcap -SIRCLIBDIR= ${STAGEDIR}${PREFIX}/libexec/sirc do-install: @${MKDIR} ${SIRCLIBDIR} ${INSTALL_DATA} ${WRKSRC}/n0thing.pl ${SIRCLIBDIR} @@ -65,11 +58,13 @@ do-install: ${INSTALL_SCRIPT} ${WRKDIR}/sirc ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/ssfe.1 ${STAGEDIR}${PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/sirc.1 ${STAGEDIR}${PREFIX}/man/man1 -.if ${PORT_OPTIONS:MSIRC_SCRIPTS} + ${INSTALL_DATA} ${WRKSRC}/socks.pl ${SIRCLIBDIR} + +do-install-SIRC_SCRIPTS-on: (cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${SIRC_SCRIPTS} \ ${SIRCLIBDIR}) -.endif - ${INSTALL_DATA} ${WRKSRC}/socks.pl ${SIRCLIBDIR} + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.socks ${STAGEDIR}${DOCSDIR} |