summaryrefslogtreecommitdiff
path: root/textproc/xerces-c/Makefile
blob: 04d605517337fe5b9120d0069408d43bb82350d4 (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.7 2003/03/22 00:40:49 salo Exp $
#

DISTNAME=	xerces-c-src1_3_0
PKGNAME=	xerces-c-1.3.0
PKGREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	http://xml.apache.org/dist/xerces-c/stable/

MAINTAINER=	skrll@netbsd.org
HOMEPAGE=	http://xml.apache.org/xerces-c/
COMMENT=	The Apache Project's validating XML parser with DOM and SAX support

WRKSRC=		${WRKDIR}/xerces-c-src1_3_0/src/
GNU_CONFIGURE=	YES
USE_GMAKE=	YES
USE_BUILDLINK2=	YES

ICUROOT=	${BUILDLINK_PREFIX.icu}

SCRIPT_ENV+=	ICUROOT="${BUILDLINK_PREFIX.icu}"

FLAGS+=		-O2 -I${ICUROOT}/include \
		-DXML_USE_ICU_TRANSCODER \
		-DXML_USE_NETACCESSOR_SOCKET \
		-DAPP_NO_THREADS

CFLAGS+=	${FLAGS}
CXXFLAGS+=	${FLAGS}
LIBS=		-L${ICUROOT}/lib -Wl,${RPATH_FLAG}${ICUROOT}/lib
LIBS+=		-L${ICUROOT}/lib/icu/current -Wl,${RPATH_FLAG}${ICUROOT}/lib/icu/current

CONFIGURE_ENV+=	XERCESCROOT="${WRKDIR}/xerces-c-src1_3_0" \
		ICUROOT=${ICUROOT} \
		NETACCESSOR=Socket \
		TRANSCODER=ICU

MAKE_ENV+=	XERCESCROOT="${WRKDIR}/xerces-c-src1_3_0" \
		ICUROOT="${BUILDLINK_PREFIX.icu}" \
		NETACCESSOR=Socket \
		TRANSCODER=ICU \

post-extract:
	${MKDIR} ${WRKSRC}/util/Platforms/NetBSD
	${CP} \
		${FILESDIR}/Makefile.in \
		${FILESDIR}/NetBSDDefs.hpp \
		${FILESDIR}/NetBSDPlatformUtils.cpp \
		${WRKSRC}/util/Platforms/NetBSD

pre-configure:
	${CHMOD} a+x ${WRKSRC}/configure

.include "../../textproc/icu/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"