From 2819d4856badd3f17aa3edc91af9d2085b7d8f85 Mon Sep 17 00:00:00 2001 From: cs Date: Tue, 5 Jun 2012 18:40:58 +0000 Subject: Switch to OptionsNG --- security/arm/Makefile | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'security/arm') 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 +OPTIONS_DEFAULT=TOR DOCS + +TOR_DESC= Enable local tor support + +.include -.if defined(WITH_TOR) +.if ${PORT_OPTIONS:MTOR} RUN_DEPENDS+= lsof:${PORTSDIR}/sysutils/lsof \ tor:${PORTSDIR}/security/tor .endif +.include + 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 -- cgit