diff options
author | antoine <antoine@FreeBSD.org> | 2014-02-01 01:01:57 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2014-02-01 01:01:57 +0800 |
commit | 3ced0ab0333db760ad6051960ad524a7d9c71282 (patch) | |
tree | 5065d168b395d95ce9b97b4861c4ff069cd6b147 /net | |
parent | 179a5cca46fc682812378c8e9f1189e574852361 (diff) | |
download | freebsd-ports-gnome-3ced0ab0333db760ad6051960ad524a7d9c71282.tar.gz freebsd-ports-gnome-3ced0ab0333db760ad6051960ad524a7d9c71282.tar.zst freebsd-ports-gnome-3ced0ab0333db760ad6051960ad524a7d9c71282.zip |
- Stage support
- Use OPTIONS helpers
Diffstat (limited to 'net')
-rw-r--r-- | net/netcat/Makefile | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/net/netcat/Makefile b/net/netcat/Makefile index 49ce4ff309d1..a4886a4780a3 100644 --- a/net/netcat/Makefile +++ b/net/netcat/Makefile @@ -28,24 +28,12 @@ NO_WRKSUBDIR= yes CFLAGS+= -D${OPSYS:U} LDFLAGS+= -static -MAN1= netcat.1 PORTDOCS= README -PLIST_FILES= bin/netcat +PLIST_FILES= bin/netcat man/man1/netcat.1.gz -NO_STAGE= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MIPV6} -CFLAGS+= -DINET6 -.endif - -.if ${PORT_OPTIONS:MTELNET} -CFLAGS+= -DTELNET -.endif - -.if ${PORT_OPTIONS:MGAPING} -CFLAGS+= -DGAPING_SECURITY_HOLE -.endif +IPV6_CFLAGS= -DINET6 +TELNET_CFLAGS= -DTELNET +GAPING_CFLAGS= -DGAPING_SECURITY_HOLE post-patch: @${SED} -e 's|%%DOCSDIR%%|${DOCSDIR}|g' ${FILESDIR}/nc.1 \ @@ -55,11 +43,9 @@ do-build: cd ${WRKSRC} && ${CC} ${CFLAGS} ${PORTNAME}.c -o ${PORTNAME} ${LDFLAGS} do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - ${INSTALL_MAN} ${WRKDIR}/${PORTNAME}.1 ${MANPREFIX}/man/man1 -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKDIR}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1 + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |