diff options
Diffstat (limited to 'textproc/xerces-c/Makefile')
-rw-r--r-- | textproc/xerces-c/Makefile | 69 |
1 files changed, 14 insertions, 55 deletions
diff --git a/textproc/xerces-c/Makefile b/textproc/xerces-c/Makefile index e040a2e534c..fbd7807002e 100644 --- a/textproc/xerces-c/Makefile +++ b/textproc/xerces-c/Makefile @@ -1,74 +1,33 @@ -# $NetBSD: Makefile,v 1.38 2009/08/28 05:24:34 hasso Exp $ -# +# $NetBSD: Makefile,v 1.39 2011/02/23 08:31:13 adam Exp $ -DISTNAME= xerces-c-src_2_8_0 -PKGREVISION= 1 -PKGNAME= ${DISTNAME:S/-src_/-/:S/_/./g} +DISTNAME= xerces-c-3.1.1 CATEGORIES= textproc -MASTER_SITES= ${MASTER_SITE_APACHE:=xerces/c/2/sources/} +MASTER_SITES= ${MASTER_SITE_APACHE:=xerces/c/3/sources/} MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= http://xerces.apache.org/xerces-c/ +HOMEPAGE= http://xerces.apache.org/ COMMENT= Validating C++ XML parser with DOM and SAX support +LICENSE= apache-2.0 PKG_INSTALLATION_TYPES= overwrite pkgviews PKG_DESTDIR_SUPPORT= user-destdir -WRKSRC= ${WRKDIR}/${DISTNAME}/src/xercesc -USE_TOOLS+= gmake USE_LANGUAGES= c c++ - -MAKE_JOBS_SAFE= no +USE_LIBTOOL= yes +USE_TOOLS+= gmake +PKGCONFIG_OVERRIDE= ${WRKSRC}/xerces-c.pc.in +GNU_CONFIGURE= yes .include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "SunOS" -XERCES_PLATFORM= solaris -.elif ${OPSYS} == "Darwin" -XERCES_PLATFORM= macosx -.else -XERCES_PLATFORM= ${LOWER_OPSYS} -.endif -XERCES_ENV+= XERCESCROOT="${WRKDIR}/${DISTNAME}" - -HAS_CONFIGURE= YES -CONFIGURE_SCRIPT= ./runConfigure -CONFIGURE_ARGS+= -P ${PREFIX} # installation prefix -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} - -PLIST_VARS+= gnu-iconv native-iconv - -CONFIGURE_ARGS.gnu-iconv+= -t IconvGNU # transcoder -CONFIGURE_ARGS.native-iconv+= -t native # transcoder +PLIST_VARS+= gnuiconv macunicode -CONFIGURE_ENV+= ${XERCES_ENV} -MAKE_ENV+= ${XERCES_ENV} - -# 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 +PLIST.macunicode= yes .else -.include "../../converters/libiconv/buildlink3.mk" +PLIST.gnuiconv= yes .endif -post-extract: - ${MKDIR} ${WRKSRC}/util/Platforms/DragonFly - ${CP} ${WRKSRC}/util/Platforms/NetBSD/NetBSDPlatformUtils.cpp ${WRKSRC}/util/Platforms/DragonFly/DragonFlyPlatformUtils.cpp - -pre-configure: - ${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC} - ${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC} - -post-install: - ${INSTALL_DATA} ${WRKSRC}/dom/impl/*.hpp \ - ${DESTDIR}${PREFIX}/include/xercesc/dom/impl - +.include "../../converters/libiconv/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" - -# Must be after bsd.pkg.mk -PLIST.${ICONV_TYPE}-iconv= yes |