aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcpm <cpm@FreeBSD.org>2017-04-15 00:31:02 +0800
committercpm <cpm@FreeBSD.org>2017-04-15 00:31:02 +0800
commitc454b765960ad45496bf801bb09ab79239a32b4d (patch)
treee7adafda5ad73ae9af3b645ee7e9d1f7e56fd1ec
parenteab472aa43221029431223e369c63a29d7882269 (diff)
downloadfreebsd-ports-gnome-c454b765960ad45496bf801bb09ab79239a32b4d.tar.gz
freebsd-ports-gnome-c454b765960ad45496bf801bb09ab79239a32b4d.tar.zst
freebsd-ports-gnome-c454b765960ad45496bf801bb09ab79239a32b4d.zip
dns/dnsdist: fix dnsdist binaries when building on 10.3
- Change USES=compiler:c++14-lang to USES=compiler. Now the compiler macro doesn't require any arguments. - Bump PORTREVISION Reported by: Robin Geuze <robing@transip.nl> via mail
-rw-r--r--dns/dnsdist/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/dns/dnsdist/Makefile b/dns/dnsdist/Makefile
index 8c7f7c6c6241..2e9e8be428c6 100644
--- a/dns/dnsdist/Makefile
+++ b/dns/dnsdist/Makefile
@@ -3,7 +3,7 @@
PORTNAME= dnsdist
DISTVERSION= 1.1.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= dns net
MASTER_SITES= https://downloads.powerdns.com/releases/ \
LOCAL/cpm
@@ -24,8 +24,8 @@ LIB_DEPENDS= libboost_serialization.so:devel/boost-libs \
libsodium.so:security/libsodium
GNU_CONFIGURE= yes
-USES= bison compiler:c++14-lang cpe gmake libedit libtool localbase \
- lua:52 pkgconfig tar:bz2
+USES= bison compiler cpe gmake libedit libtool localbase lua:52 \
+ pkgconfig tar:bz2
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \
--enable-dnscrypt \
--enable-libsodium \
@@ -38,8 +38,17 @@ GROUPS= _dnsdist
USE_RC_SUBR= dnsdist
+.include <bsd.port.pre.mk>
+
+# Fix dnsdist binaries when building on FreeBSD 10.3
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000
+BUILD_DEPENDS+= clang39:devel/llvm39
+CC= clang39
+CXX= clang++39
+.endif
+
post-install:
${INSTALL_DATA} ${FILESDIR}/dnsdist.conf.sample \
${STAGEDIR}${PREFIX}/etc
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>