summaryrefslogtreecommitdiff
path: root/textproc/xerces-c
diff options
context:
space:
mode:
authorjlam <jlam>2004-03-10 17:58:22 +0000
committerjlam <jlam>2004-03-10 17:58:22 +0000
commit6eae155ecefb9ca6724f3a7936497ba51c70af7a (patch)
tree491aad2cbb9439a475432347840b3927fd6651e7 /textproc/xerces-c
parentdcc66b8df5c6733d79956b8b5a9fd3a9c8d948f7 (diff)
downloadpkgsrc-6eae155ecefb9ca6724f3a7936497ba51c70af7a.tar.gz
Deal with situation where ICONV_TYPE isn't defined until after bsd.pkg.mk
is included by not checking its value explicitly.
Diffstat (limited to 'textproc/xerces-c')
-rw-r--r--textproc/xerces-c/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/textproc/xerces-c/Makefile b/textproc/xerces-c/Makefile
index df024c48db6..2cc8030bbb6 100644
--- a/textproc/xerces-c/Makefile
+++ b/textproc/xerces-c/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2004/02/18 20:30:31 minskim Exp $
+# $NetBSD: Makefile,v 1.20 2004/03/10 17:58:22 jlam Exp $
#
DISTNAME= xerces-c-src_2_3_0
@@ -34,19 +34,19 @@ CONFIGURE_ARGS+= -p ${XERCES_PLATFORM} # platform
CONFIGURE_ARGS+= -n socket # net accessor
CONFIGURE_ARGS+= -m inmem # message loader
CONFIGURE_ARGS+= -r none # threading
+CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv}
-.include "../../converters/libiconv/buildlink3.mk"
+CONFIGURE_ARGS.gnu-iconv= -t IconvGNU # transcoder
+PLIST_SUBST.gnu-iconv= NATIVEICONV="@comment " GNUICONV=""
-.if defined(ICONV_TYPE) && (${ICONV_TYPE} == "gnu")
-CONFIGURE_ARGS+= -t IconvGNU # transcoder
-PLIST_SUBST+= NATIVEICONV="@comment " GNUICONV=""
-.else
-CONFIGURE_ARGS+= -t native # transcoder
-PLIST_SUBST+= NATIVEICONV="" GNUICONV="@comment "
-.endif
+CONFIGURE_ARGS.native-iconv= -t native # transcoder
+PLIST_SUBST.native-iconv= NATIVEICONV="" GNUICONV="@comment "
CONFIGURE_ENV+= ${XERCES_ENV}
MAKE_ENV+= ${XERCES_ENV}
+PLIST_SUBST+= ${PLIST_SUBST.${ICONV_TYPE}-iconv}
+
+.include "../../converters/libiconv/buildlink3.mk"
post-install:
${INSTALL_DATA} ${WRKSRC}/dom/impl/*.hpp \