diff options
author | yyamano <yyamano@pkgsrc.org> | 2007-11-03 04:29:13 +0000 |
---|---|---|
committer | yyamano <yyamano@pkgsrc.org> | 2007-11-03 04:29:13 +0000 |
commit | 07eaf5eeeaaabd485b881514c809fba7be889d31 (patch) | |
tree | 32c640287d1b5fe9ee6d51ef4c0f392692c8e057 /textproc/xerces-c | |
parent | 766753938ec02336e0b51bfec05785798e014e29 (diff) | |
download | pkgsrc-07eaf5eeeaaabd485b881514c809fba7be889d31.tar.gz |
Make this build on Darwin.
Diffstat (limited to 'textproc/xerces-c')
-rw-r--r-- | textproc/xerces-c/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/textproc/xerces-c/Makefile b/textproc/xerces-c/Makefile index 57509e1b995..315e50f522b 100644 --- a/textproc/xerces-c/Makefile +++ b/textproc/xerces-c/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.31 2007/08/16 00:15:56 joerg Exp $ +# $NetBSD: Makefile,v 1.32 2007/11/03 04:29:13 yyamano Exp $ # DISTNAME= xerces-c-src_2_7_0 @@ -19,9 +19,9 @@ USE_TOOLS+= gmake USE_LANGUAGES= c c++ .include "../../mk/bsd.prefs.mk" -.if ${LOWER_OPSYS} == "SunOS" +.if ${OPSYS} == "SunOS" XERCES_PLATFORM= solaris -.elif ${LOWER_OPSYS} == "Darwin" +.elif ${OPSYS} == "Darwin" XERCES_PLATFORM= macosx .else XERCES_PLATFORM= ${LOWER_OPSYS} @@ -49,7 +49,13 @@ CONFIGURE_ENV+= ${XERCES_ENV} MAKE_ENV+= ${XERCES_ENV} PLIST_SUBST+= ${PLIST_SUBST.${ICONV_TYPE}-iconv} +# On Darwin, we have to use native (not libiconv) converter. see MacOSPlatformUtils.cpp. +.if ${OPSYS} == "Darwin" +ICONV_TYPE= native +CFLAGS.Darwin+= -DXML_USE_MACOS_UNICODECONVERTER -I${WRKDIR}/${DISTNAME}/src +.else .include "../../converters/libiconv/buildlink3.mk" +.endif post-extract: ${MKDIR} ${WRKSRC}/util/Platforms/DragonFly |