blob: 2cc8030bbb6c74879f582e50f53889673bf1e5da (
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
52
53
54
55
|
# $NetBSD: Makefile,v 1.20 2004/03/10 17:58:22 jlam Exp $
#
DISTNAME= xerces-c-src_2_3_0
PKGNAME= ${DISTNAME:S/-src_/-/:S/_/./g}
CATEGORIES= textproc
MASTER_SITES= http://xml.apache.org/dist/xerces-c/stable/archives/Xerces-C_2_3_0/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://xml.apache.org/xerces-c/
COMMENT= Validating C++ XML parser with DOM and SAX support
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}/${DISTNAME}/src/xercesc
USE_BUILDLINK3= YES
USE_GNU_TOOLS+= make
USE_LANGUAGES= c c++
.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
CONFIGURE_ARGS+= -m inmem # message loader
CONFIGURE_ARGS+= -r none # threading
CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv}
CONFIGURE_ARGS.gnu-iconv= -t IconvGNU # transcoder
PLIST_SUBST.gnu-iconv= NATIVEICONV="@comment " GNUICONV=""
CONFIGURE_ARGS.native-iconv= -t native # transcoder
PLIST_SUBST.native-iconv= NATIVEICONV="" GNUICONV="@comment "
CONFIGURE_ENV+= ${XERCES_ENV}
MAKE_ENV+= ${XERCES_ENV}
PLIST_SUBST+= ${PLIST_SUBST.${ICONV_TYPE}-iconv}
.include "../../converters/libiconv/buildlink3.mk"
post-install:
${INSTALL_DATA} ${WRKSRC}/dom/impl/*.hpp \
${PREFIX}/include/xercesc/dom/impl
.include "../../mk/bsd.pkg.mk"
|