summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2014-08-25 14:31:47 +0000
committeradam <adam@pkgsrc.org>2014-08-25 14:31:47 +0000
commit39173938f9f638130709762b13a75950b22da061 (patch)
tree4940096d984b63413ee8a17d5026cbf1788c0b9b /net
parent4e1400e787d28c5c43e86507f0a6d019e853337d (diff)
downloadpkgsrc-39173938f9f638130709762b13a75950b22da061.tar.gz
Properly link agaist a bunch of frameworks on OS X
Diffstat (limited to 'net')
-rw-r--r--net/net-snmp/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile
index 29f01ab1a9a..20e297eaf50 100644
--- a/net/net-snmp/Makefile
+++ b/net/net-snmp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.106 2014/08/22 16:27:18 adam Exp $
+# $NetBSD: Makefile,v 1.107 2014/08/25 14:31:47 adam Exp $
.include "Makefile.common"
PKGREVISION= 1
@@ -93,6 +93,14 @@ CONFIGURE_ARGS+= --with-dummy-values
#
CONFIGURE_ARGS+= --enable-ucd-snmp-compatibility
+.if ${OPSYS} == "Darwin"
+CFLAGS+= -framework ApplicationServices
+CFLAGS+= -framework CoreFoundation
+CFLAGS+= -framework CoreServices
+CFLAGS+= -framework DiskArbitration
+CFLAGS+= -framework IOKit
+.endif
+
# Handle ${PREFIX}/share/snmp in the DEINSTALL script since it may contain
# leftover config files or pidfiles after deinstallation.
#