wok annotate xalan-c/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents 535c806240cc
children 272cacdf0c0a
rev   line source
rcx@3472 1 # SliTaz package receipt.
rcx@3472 2
rcx@3472 3 PACKAGE="xalan-c"
Hans-G?nter@22147 4 VERSION="1.11"
rcx@3472 5 CATEGORY="development"
rcx@3472 6 SHORT_DESC="An XSLT processor for transforming XML documents into HTML, text, or other XML document types."
rcx@3472 7 MAINTAINER="rcx@zoominternet.net"
pascal@15579 8 LICENSE="Apache"
pascal@24746 9 WEB_SITE="https://xalan.apache.org/"
rcx@3472 10
Hans-G?nter@22147 11 TARBALL="${PACKAGE/-/_}-$VERSION-src.tar.gz"
Hans-G?nter@22147 12 WGET_URL="http://archive.apache.org/dist/xalan/$PACKAGE/sources/$TARBALL"
Hans-G?nter@22147 13
Hans-G?nter@22147 14 DEPENDS="gcc-lib-base glibc-base icu libcrypto libcurl xerces-c"
pascal@10456 15 BUILD_DEPENDS="xerces-c-dev"
pascal@10456 16
pascal@24465 17 # What is the latest version available today?
pascal@24465 18 current_version()
pascal@24465 19 {
pascal@24465 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24465 21 sed "/latest/d;/xalan_c-[0-9]/!d;/tar/!d;s|.*xalan_c-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24465 22 }
pascal@24465 23
rcx@3472 24 # Rules to configure and make the package.
rcx@3472 25 compile_rules()
rcx@3472 26 {
gokhlayeh@8228 27 mv c/* . && rm -r c
Hans-G?nter@22147 28 sed -i 's|mutable MemoryManager|MemoryManager|' \
Hans-G?nter@22147 29 src/xalanc/*/*.hpp
Hans-G?nter@22147 30
rcx@3472 31 export XERCESCROOT=/usr
rcx@3472 32 export XALANCROOT=$src
Hans-G?nter@22147 33
Hans-G?nter@22147 34 ./runConfigure \
Hans-G?nter@22147 35 -p linux \
Hans-G?nter@22147 36 -c gcc \
Hans-G?nter@22147 37 -x g++ \
Hans-G?nter@22147 38 -P /usr \
Hans-G?nter@22147 39 -C --build=$HOST_SYSTEM \
Hans-G?nter@22147 40 -C --host=$HOST_SYSTEM &&
gokhlayeh@8263 41 make -j1 &&
gokhlayeh@8228 42 make install
rcx@3472 43 }
rcx@3472 44
rcx@3472 45 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3472 46 genpkg_rules()
rcx@3472 47 {
rcx@3472 48 mkdir -p $fs/usr/lib
Hans-G?nter@22147 49
Hans-G?nter@22147 50 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22147 51 cp -a $install/usr/bin $fs/usr
rcx@3472 52 }