summaryrefslogtreecommitdiff
path: root/textproc/xerces-c/Makefile
blob: 0b4c350aa72fa432c1e05bee7d19d6cbff31ec02 (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.12 2003/07/17 22:54:55 grant Exp $
#

DISTNAME=	xerces-c-src1_7_0
PKGNAME=	${DISTNAME:S/-src/-/:S/_/./g}
WRKSRC=		${WRKDIR}/${DISTNAME}/src/xercesc
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

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"