summaryrefslogtreecommitdiff
path: root/textproc/xalan-c/Makefile
blob: 3a1853890758b284fef19d40869e52770ecd02be (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
# $NetBSD: Makefile,v 1.3 2001/04/19 20:02:32 manu Exp $
#

DISTNAME=	Xalan-C_1_0-linux
PKGNAME=	xalan-c-1.0
CATEGORIES=	textproc
MASTER_SITES=	http://xml.apache.org/dist/xalan-c/

MAINTAINER=	skrll@netbsd.org
HOMEPAGE=	http://xml.apache.org/xalan-c/
COMMENT=	the Apache Project's XSLT implementation

DEPENDS+=	icu>=1.7:../../textproc/icu
DEPENDS+=	xerces-c-1.3.*:../../textproc/xerces-c

WRKSRC=		${WRKDIR}/xml-xalan/c/src
GNU_CONFIGURE=	YES
USE_GMAKE=	YES

#MAN1=		testXSLT.1

MAKE_ENV+=	XALANCROOT="${WRKDIR}/xml-xalan" \
		XERCESCROOT="${PREFIX}" \
		XALAN_USE_ICU="yes"

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

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/xml-xalan/lib/libxalan-c1_0.so ${PREFIX}/lib
	${INSTALL_PROGRAM} ${WRKDIR}/xml-xalan/bin/testXPath ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKDIR}/xml-xalan/bin/testXSLT ${PREFIX}/bin
	cd ${WRKSRC}; \
	XMLDIRS="DOMSupport ICUBridge Include XercesParserLiaison PlatformSupport TestXPath XMLSupport XPath XSLT XalanDOM"; \
	for i in $${XMLDIRS}; do \
	    ${ECHO} creating ${PREFIX}/include/$${i}; \
	    ${INSTALL_DATA_DIR} ${PREFIX}/include/$${i}; \
	done; \
	for i in `find $${XMLDIRS} -type f -name "*.hpp"`; do \
	    ${ECHO} installing ${PREFIX}/include/$${i}; \
	    ${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/include/$${i}; \
	done
	${INSTALL_MAN} ${FILESDIR}/testXSLT.1 ${PREFIX}/man/man1

.include "../../mk/bsd.pkg.mk"