summaryrefslogtreecommitdiff
path: root/devel/gdbus-codegen/hacks.mk
diff options
context:
space:
mode:
authorjperkin <jperkin>2013-03-18 14:01:24 +0000
committerjperkin <jperkin>2013-03-18 14:01:24 +0000
commit37ed4e10b22b32c717db0eb45a53744781c6901c (patch)
tree2a1c695bf2f6e210ba7a8f6888c0b7eced0a2064 /devel/gdbus-codegen/hacks.mk
parent6998531ed4ed2bb0cb72913ba16d520295b5a25d (diff)
downloadpkgsrc-37ed4e10b22b32c717db0eb45a53744781c6901c.tar.gz
Ensure the Darwin libiconv_open hack is only applied when using the
native iconv.
Diffstat (limited to 'devel/gdbus-codegen/hacks.mk')
-rw-r--r--devel/gdbus-codegen/hacks.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/devel/gdbus-codegen/hacks.mk b/devel/gdbus-codegen/hacks.mk
index a35002fcc9e..63792e6ab2d 100644
--- a/devel/gdbus-codegen/hacks.mk
+++ b/devel/gdbus-codegen/hacks.mk
@@ -1,18 +1,20 @@
-# $NetBSD: hacks.mk,v 1.1 2012/11/13 21:23:07 adam Exp $
+# $NetBSD: hacks.mk,v 1.2 2013/03/18 14:01:24 jperkin Exp $
.if !defined(GDBUS_CODEGEN_HACKS_MK)
GDBUS_CODEGEN_HACKS_MK= # defined
.if ${OPSYS} == "Darwin"
CHECK_BUILTIN.libiconv:= yes
-. include "../../converters/libiconv/builtin.mk"
+. include "../../converters/libiconv/builtin.mk"
CHECK_BUILTIN.libiconv:= no
+. if !empty(USE_BUILTIN.iconv:M[Yy][Ee][Ss])
PKG_HACKS+= darwin-iconv
SUBST_CLASSES+= iconv
SUBST_STAGE.iconv= pre-configure
SUBST_MESSAGE.iconv= Changing libiconv_open to iconv_open.
SUBST_FILES.iconv= configure
SUBST_SED.iconv= -e 's,libiconv_open,iconv_open,g'
+. endif
.endif
.endif