aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2009-01-08 20:38:48 +0800
committerpav <pav@FreeBSD.org>2009-01-08 20:38:48 +0800
commitf70051667750b3af4584a511ab0491c2c2e8180f (patch)
treefcebc04a904149599c057094ec4a649718956c92
parentf249548ae945ede318999dfca84aca771c4068f2 (diff)
downloadfreebsd-ports-f70051667750b3af4584a511ab0491c2c2e8180f.tar.gz
freebsd-ports-f70051667750b3af4584a511ab0491c2c2e8180f.tar.zst
freebsd-ports-f70051667750b3af4584a511ab0491c2c2e8180f.zip
- Fix link with dbus on FreeBSD 6.x
PR: ports/127848 Reported by: Matthias Andree <matthias.andree@gmx.de> Approved by: maintainer timeout (farrokhi; 3 months)
-rw-r--r--dns/dnsmasq/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/dns/dnsmasq/Makefile b/dns/dnsmasq/Makefile
index 34f127072415..c48f64533c78 100644
--- a/dns/dnsmasq/Makefile
+++ b/dns/dnsmasq/Makefile
@@ -43,6 +43,11 @@ CFLAGS+= -DHAVE_DBUS
USE_RC_SUBR= dnsmasq.sh
+post-patch:
+.if ${OSVERSION} < 700000
+ @${REINPLACE_CMD} -e 's|DBUS_LIBS="|DBUS_LIBS="${PTHREAD_LIBS} |' ${WRKSRC}/Makefile
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/dnsmasq ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/dnsmasq.conf.example ${PREFIX}/etc