pkgsrc/textproc/xalan-c/Makefile

45 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2003/03/29 12:42:42 jmmv Exp $
#
DISTNAME= Xalan-C_1_0-linux
PKGNAME= xalan-c-1.0
WRKSRC= ${WRKDIR}/xml-xalan/c/src
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
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"