summaryrefslogtreecommitdiff
path: root/net/net-snmp
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
commit6293d82888916b07944eb98a37375988b9d4b910 (patch)
tree4940096d984b63413ee8a17d5026cbf1788c0b9b /net/net-snmp
parent2ad49adf0049ee83d6c9b86063d7cf3bc2c8fd3b (diff)
downloadpkgsrc-6293d82888916b07944eb98a37375988b9d4b910.tar.gz
Properly link agaist a bunch of frameworks on OS X
Diffstat (limited to 'net/net-snmp')
-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.
#