aboutsummaryrefslogtreecommitdiff
path: root/net/vtun/Makefile
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2013-02-14 05:33:03 +0000
committerCy Schubert <cy@FreeBSD.org>2013-02-14 05:33:03 +0000
commitd4759664a5e41a20983bc5fa2d180b5225be5a10 (patch)
tree39702c17b32442c0bb6118dbd1853eb29a5df8d6 /net/vtun/Makefile
parent109293b9e2fde9ab94dfc4926ae82a837d79f871 (diff)
Notes
Diffstat (limited to 'net/vtun/Makefile')
-rw-r--r--net/vtun/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/net/vtun/Makefile b/net/vtun/Makefile
index 8d827745d522..bee06d658b19 100644
--- a/net/vtun/Makefile
+++ b/net/vtun/Makefile
@@ -30,9 +30,15 @@ ALL_TARGET= vtund
DOCS= ChangeLog Credits FAQ README README.LZO README.Setup \
README.Shaper TODO
+.include <bsd.port.pre.mk>
+
+.if ${CC} == "clang" || ${CXX} == "clang++" || ${OSVERSION} >= 1000026
+EXTRA_PATCHES+= ${FILESDIR}/extra-cfg_file.y
+.endif
+
.if defined(VTUN_EXTENDED_MODE)
# Obtained from http://home.jp.FreeBSD.org/~simokawa/vtun-v6.html
-EXTRA_PATCHES= ${FILESDIR}/extra-tun_dev.c
+EXTRA_PATCHES+= ${FILESDIR}/extra-tun_dev.c
.endif
post-install:
@@ -45,4 +51,4 @@ post-install:
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>