aboutsummaryrefslogtreecommitdiff
path: root/net/ptunnel
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2007-04-02 00:29:25 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2007-04-02 00:29:25 +0000
commit9c705360b8090d2a5bb3ccd47791ee1cdf875078 (patch)
tree6f1610f94d12439d6a2e9778cefc8e136e0b025b /net/ptunnel
parenta183a88c3dc6efe6ebf8a9bd4c4b88c5e4b0381f (diff)
downloadports-9c705360b8090d2a5bb3ccd47791ee1cdf875078.tar.gz
ports-9c705360b8090d2a5bb3ccd47791ee1cdf875078.zip
Notes
Diffstat (limited to 'net/ptunnel')
-rw-r--r--net/ptunnel/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/ptunnel/Makefile b/net/ptunnel/Makefile
index cb2f64c7d8db..d72c676aba42 100644
--- a/net/ptunnel/Makefile
+++ b/net/ptunnel/Makefile
@@ -20,16 +20,12 @@ USE_GMAKE= yes
PLIST_FILES= bin/ptunnel
MAN8= ptunnel.8
-.include <bsd.port.pre.mk>
-
post-patch:
- @${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/' ${WRKSRC}/${MAKEFILE}
-.if ${OSVERSION} < 500000
+ @${REINPLACE_CMD} -e '/^CC/d;s/-lpthread/${PTHREAD_LIBS}/' ${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -e 's/stdint.h/inttypes.h/' ${WRKSRC}/ptunnel.h
-.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ptunnel ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ptunnel.8 ${MAN8PREFIX}/man/man8
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>