blob: 9373b88720bb6eca9f8996f916a974d145fbb096 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# $NetBSD: Makefile,v 1.14 2004/01/20 12:26:50 agc Exp $
#
DISTNAME= xerces-c-src1_7_0
PKGNAME= ${DISTNAME:S/-src/-/:S/_/./g}
CATEGORIES= textproc
MASTER_SITES= http://xml.apache.org/dist/xerces-c/stable/archives/Xerces-C_${DISTNAME:S/xerces-c-src//}/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://xml.apache.org/xerces-c/
COMMENT= Validating C++ XML parser with DOM and SAX support
WRKSRC= ${WRKDIR}/${DISTNAME}/src/xercesc
USE_BUILDLINK2= YES
USE_GMAKE= YES
.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}
post-extract:
${MKDIR} ${WRKSRC}/util/Platforms/NetBSD
${CP} ${FILESDIR}/Makefile.in \
${FILESDIR}/NetBSDDefs.hpp \
${FILESDIR}/NetBSDPlatformUtils.cpp \
${WRKSRC}/util/Platforms/NetBSD
pre-configure:
${CHMOD} +x ${WRKSRC}/${CONFIGURE_SCRIPT}
.include "../../textproc/icu/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|