summaryrefslogtreecommitdiff
path: root/devel/pkg-config
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2012-08-23 13:34:44 +0000
committeradam <adam@pkgsrc.org>2012-08-23 13:34:44 +0000
commite380f51c1dc516c5aee5512a4a0bf9e829d27bf8 (patch)
tree1cbee504cbddc54ffe124b68679abd0cecaf214f /devel/pkg-config
parent1363f6c4be0dc504218d76a7b2c1a02a597212d2 (diff)
downloadpkgsrc-e380f51c1dc516c5aee5512a4a0bf9e829d27bf8.tar.gz
Fix building on OSX (similar to devel/glib2)
Diffstat (limited to 'devel/pkg-config')
-rw-r--r--devel/pkg-config/hacks.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/pkg-config/hacks.mk b/devel/pkg-config/hacks.mk
new file mode 100644
index 00000000000..b0669ce2666
--- /dev/null
+++ b/devel/pkg-config/hacks.mk
@@ -0,0 +1,15 @@
+# $NetBSD: hacks.mk,v 1.1 2012/08/23 13:34:44 adam Exp $
+
+.if !defined(PKGCONFIG_HACKS_MK)
+PKGCONFIG_HACKS_MK= # defined
+
+.if ${OPSYS} == "Darwin"
+PKG_HACKS+= darwin-iconv
+SUBST_CLASSES+= iconv
+SUBST_STAGE.iconv= pre-configure
+SUBST_MESSAGE.iconv= Changing libiconv_open to iconv_open.
+SUBST_FILES.iconv= glib/configure
+SUBST_SED.iconv= -e 's,libiconv_open,iconv_open,g'
+.endif
+
+.endif