wok-next view xalan-c/receipt @ rev 20506

zerobin: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 16 12:28:31 2018 +0100 (2018-03-16)
parents e6615350078d
children 6477d7f70481
line source
1 # SliTaz package receipt v2.
3 PACKAGE="xalan-c"
4 VERSION="1.10.0-r705082"
5 CATEGORY="development"
6 SHORT_DESC="An XSLT processor for transforming XML documents into HTML, text, \
7 or other XML document types"
8 MAINTAINER="rcx@zoominternet.net"
9 LICENSE="Apache"
10 WEB_SITE="http://xalan.apache.org/"
12 TARBALL="Xalan-C_r705082-src.tar.gz"
13 # Need to use the patched r705082 version on Gentoo's mirrors
14 # Normal WGET_URL would be "http://www.apache.org/dist/xml/$PACKAGE/source/$TARBALL"
15 WGET_URL="http://www.gtlib.gatech.edu/pub/gentoo/distfiles/$TARBALL"
17 BUILD_DEPENDS="xerces-c-dev"
18 SPLIT="xalan-c-dev"
20 compile_rules() {
21 mv c/* . && rm -r c
22 sed -i 's/isnan/std::&/' src/xalanc/PlatformSupport/DoubleSupport.hpp
23 sed -i 's/mutable MemoryManager/MemoryManager/' src/xalanc/*/*.hpp
25 export XERCESCROOT=/usr
26 export XALANCROOT=$src
28 ./runConfigure \
29 -p linux \
30 -c gcc \
31 -x g++ \
32 -P /usr \
33 -C --build=$HOST_SYSTEM \
34 -C --host=$HOST_SYSTEM &&
35 make -j1 &&
36 make install
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 xalan-c)
42 mkdir -p $fs/usr/lib
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 cp -a $install/usr/bin $fs/usr
45 DEPENDS="glibc-base gcc-lib-base xerces-c libcurl openssl icu"
46 ;;
47 *-dev)
48 mkdir -p $fs/usr
49 cp -a $install/usr/include $fs/usr
50 ;;
51 esac
52 }