diff options
author | yyamano <yyamano> | 2007-11-03 04:29:13 +0000 |
---|---|---|
committer | yyamano <yyamano> | 2007-11-03 04:29:13 +0000 |
commit | 13aa4053aa73e9c6c08509d61e28bcb390b1a219 (patch) | |
tree | 32c640287d1b5fe9ee6d51ef4c0f392692c8e057 /textproc/xerces-c | |
parent | 51ed1f3e3aeae0ed485358faa8cbd00119f791ae (diff) | |
download | pkgsrc-13aa4053aa73e9c6c08509d61e28bcb390b1a219.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 |