summaryrefslogtreecommitdiff
path: root/devel/gdbus-codegen/hacks.mk
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-03-18 14:01:24 +0000
committerjperkin <jperkin@pkgsrc.org>2013-03-18 14:01:24 +0000
commitb253802fef16cfa06d2bfa23257b7d46b362fbf1 (patch)
tree2a1c695bf2f6e210ba7a8f6888c0b7eced0a2064 /devel/gdbus-codegen/hacks.mk
parent87dff69ed9723a1e6042f30c44408b5cabc24df0 (diff)
downloadpkgsrc-b253802fef16cfa06d2bfa23257b7d46b362fbf1.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