2004-02-11 05:06:04 +01:00
|
|
|
# $NetBSD: Makefile,v 1.16 2004/02/11 04:06:04 minskim Exp $
|
2001-01-13 17:38:06 +01:00
|
|
|
#
|
|
|
|
|
2004-02-11 05:06:04 +01:00
|
|
|
DISTNAME= xerces-c-src_2_3_0
|
|
|
|
PKGNAME= ${DISTNAME:S/-src_/-/:S/_/./g}
|
2001-01-13 17:38:06 +01:00
|
|
|
CATEGORIES= textproc
|
2004-02-11 05:06:04 +01:00
|
|
|
MASTER_SITES= http://archive.apache.org/dist/xml/xerces-c/
|
2001-01-13 17:38:06 +01:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2001-01-13 17:38:06 +01:00
|
|
|
HOMEPAGE= http://xml.apache.org/xerces-c/
|
2003-07-21 19:27:24 +02:00
|
|
|
COMMENT= Validating C++ XML parser with DOM and SAX support
|
2003-06-23 09:52:39 +02:00
|
|
|
|
2004-02-11 05:06:04 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src/xercesc
|
2004-02-11 05:06:04 +01:00
|
|
|
USE_BUILDLINK3= YES
|
2004-01-24 16:06:57 +01:00
|
|
|
USE_GNU_TOOLS+= make
|
2003-06-23 09:52:39 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${LOWER_OPSYS} == "SunOS"
|
|
|
|
XERCES_PLATFORM= solaris
|
|
|
|
.elif ${LOWER_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
|
2004-02-11 05:06:04 +01:00
|
|
|
CONFIGURE_ARGS+= -m inmem # message loader
|
2003-06-23 09:52:39 +02:00
|
|
|
CONFIGURE_ARGS+= -r none # threading
|
|
|
|
|
2004-02-11 05:06:04 +01:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.if defined(ICONV_IS_GNU)
|
|
|
|
CONFIGURE_ARGS+= -t IconvGNU # transcoder
|
|
|
|
PLIST_SUBST+= NATIVEICONV="@comment " GNUICONV=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -t native # transcoder
|
|
|
|
PLIST_SUBST+= NATIVEICONV="" GNUICONV="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-06-23 09:52:39 +02:00
|
|
|
CONFIGURE_ENV+= ${XERCES_ENV}
|
|
|
|
MAKE_ENV+= ${XERCES_ENV}
|
2001-01-13 17:38:06 +01:00
|
|
|
|
2004-02-11 05:06:04 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dom/impl/*.hpp \
|
|
|
|
${PREFIX}/include/xercesc/dom/impl
|
2001-01-13 17:38:06 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|