2004-01-24 16:06:57 +01:00
|
|
|
# $NetBSD: Makefile,v 1.15 2004/01/24 15:13:20 grant Exp $
|
2001-01-13 17:38:06 +01:00
|
|
|
#
|
|
|
|
|
2003-06-23 09:52:39 +02:00
|
|
|
DISTNAME= xerces-c-src1_7_0
|
|
|
|
PKGNAME= ${DISTNAME:S/-src/-/:S/_/./g}
|
2001-01-13 17:38:06 +01:00
|
|
|
CATEGORIES= textproc
|
2003-06-23 09:52:39 +02:00
|
|
|
MASTER_SITES= http://xml.apache.org/dist/xerces-c/stable/archives/Xerces-C_${DISTNAME:S/xerces-c-src//}/
|
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-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src/xercesc
|
2003-06-23 09:52:39 +02:00
|
|
|
USE_BUILDLINK2= 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}"
|
|
|
|
XERCES_ENV+= ICUROOT="${BUILDLINK_PREFIX.icu}"
|
|
|
|
|
|
|
|
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 icu # message loader
|
|
|
|
CONFIGURE_ARGS+= -t icu # transcoder
|
|
|
|
CONFIGURE_ARGS+= -r none # threading
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= ${XERCES_ENV}
|
|
|
|
MAKE_ENV+= ${XERCES_ENV}
|
2001-01-13 17:38:06 +01:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${MKDIR} ${WRKSRC}/util/Platforms/NetBSD
|
2003-06-23 09:52:39 +02:00
|
|
|
${CP} ${FILESDIR}/Makefile.in \
|
|
|
|
${FILESDIR}/NetBSDDefs.hpp \
|
|
|
|
${FILESDIR}/NetBSDPlatformUtils.cpp \
|
2001-01-13 17:38:06 +01:00
|
|
|
${WRKSRC}/util/Platforms/NetBSD
|
|
|
|
|
|
|
|
pre-configure:
|
2003-06-23 09:52:39 +02:00
|
|
|
${CHMOD} +x ${WRKSRC}/${CONFIGURE_SCRIPT}
|
2001-01-13 17:38:06 +01:00
|
|
|
|
2002-10-30 10:39:30 +01:00
|
|
|
.include "../../textproc/icu/buildlink2.mk"
|
2001-01-13 17:38:06 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|