diff options
author | cs <cs@FreeBSD.org> | 2012-06-06 02:40:58 +0800 |
---|---|---|
committer | cs <cs@FreeBSD.org> | 2012-06-06 02:40:58 +0800 |
commit | 2819d4856badd3f17aa3edc91af9d2085b7d8f85 (patch) | |
tree | c77274334275a7d2bb432d9d26dd6ab40115fb21 /security | |
parent | f6141815b28ee8e4a69973c300197e4f2efd549a (diff) | |
download | freebsd-ports-gnome-2819d4856badd3f17aa3edc91af9d2085b7d8f85.tar.gz freebsd-ports-gnome-2819d4856badd3f17aa3edc91af9d2085b7d8f85.tar.zst freebsd-ports-gnome-2819d4856badd3f17aa3edc91af9d2085b7d8f85.zip |
Switch to OptionsNG
Diffstat (limited to 'security')
-rw-r--r-- | security/arm/Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/security/arm/Makefile b/security/arm/Makefile index 0507780b70f5..4cd59625d405 100644 --- a/security/arm/Makefile +++ b/security/arm/Makefile @@ -28,21 +28,28 @@ WRKSRC= ${WRKDIR}/${PORTNAME} DOCSDIR= ${PREFIX}/share/doc/${PORTNAME} PORTDOCS= armrc.sample -OPTIONS= TOR "Install tor locally" On +OPTIONS_DEFINE= TOR \ + DOCS -.include <bsd.port.pre.mk> +OPTIONS_DEFAULT=TOR DOCS + +TOR_DESC= Enable local tor support + +.include <bsd.port.options.mk> -.if defined(WITH_TOR) +.if ${PORT_OPTIONS:MTOR} RUN_DEPENDS+= lsof:${PORTSDIR}/sysutils/lsof \ tor:${PORTSDIR}/security/tor .endif +.include <bsd.port.pre.mk> + post-patch: -.if defined(NOPORTDOCS) - @${REINPLACE_CMD} -e 's,/usr/share/doc/,${WRKSRC}/src,g' \ +.if ${PORT_OPTIONS:MDOCS} + @${REINPLACE_CMD} -e 's,/usr/share/doc,${PREFIX}/share/doc,g' \ ${WRKSRC}/setup.py .else - @${REINPLACE_CMD} -e 's,/usr/share/doc,${PREFIX}/share/doc,g' \ + @${REINPLACE_CMD} -e 's,/usr/share/doc/,${WRKSRC}/src,g' \ ${WRKSRC}/setup.py .endif |