wok-4.x annotate nspr/receipt @ rev 8592

Up: bazaar to 2.3.0.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Feb 13 22:47:13 2011 +0000 (2011-02-13)
parents f620c0d3e9f4
children d1768332cee0
rev   line source
slaxemulator@6882 1 # SliTaz package receipt.
slaxemulator@6882 2
slaxemulator@6882 3 PACKAGE="nspr"
slaxemulator@8402 4 VERSION="4.8.7"
slaxemulator@6882 5 CATEGORY="utilities"
slaxemulator@6882 6 SHORT_DESC="Netscape Portable Runtime"
slaxemulator@6882 7 MAINTAINER="rocky@slitaz.org"
slaxemulator@6882 8 DEPENDS="glibc-base"
slaxemulator@6882 9 BUILD_DEPENDS="perl"
slaxemulator@6882 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@6882 11 WEB_SITE="http://www.mozilla.org/projects/nspr/"
slaxemulator@6882 12 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}"
slaxemulator@6882 13
slaxemulator@6882 14 # Rules to configure and make the package.
slaxemulator@6882 15 compile_rules()
slaxemulator@6882 16 {
slaxemulator@6882 17 cd $src
slaxemulator@6882 18 ./mozilla/nsprpub/configure \
slaxemulator@6882 19 --prefix=/usr \
slaxemulator@6882 20 --libdir=/usr/lib \
slaxemulator@6882 21 --includedir=/usr/include/nspr \
slaxemulator@6882 22 --enable-optimize \
slaxemulator@6882 23 --disable-debug
slaxemulator@6882 24 make
slaxemulator@6882 25 make DESTDIR="$PWD/_pkg" install
slaxemulator@6882 26
slaxemulator@6882 27 mkdir -p $PWD/_pkg/usr/lib/pkgconfig
slaxemulator@6882 28 NSPR_LIBS=`./config/nspr-config --libs`
slaxemulator@6882 29 NSPR_CFLAGS=`./config/nspr-config --cflags`
slaxemulator@6882 30 NSPR_VERSION=`./config/nspr-config --version`
slaxemulator@6882 31 install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
slaxemulator@6882 32 sed "../stuff/nspr.pc.in" -e "s,%libdir%,/usr/lib," \
slaxemulator@6882 33 -e "s,%prefix%,/usr," \
slaxemulator@6882 34 -e "s,%exec_prefix%,/usr/bin," \
slaxemulator@6882 35 -e "s,%includedir%,/usr/include/nspr," \
slaxemulator@6882 36 -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \
slaxemulator@6882 37 -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \
slaxemulator@6882 38 -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," > "$PWD/_pkg/usr/lib/pkgconfig/nspr.pc"
slaxemulator@6882 39 ln -sf nspr.pc "$PWD/_pkg/usr/lib/pkgconfig/mozilla-nspr.pc"
slaxemulator@6882 40 }
slaxemulator@6882 41
slaxemulator@6882 42 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6882 43 genpkg_rules()
slaxemulator@6882 44 {
slaxemulator@6882 45 mkdir -p $fs/usr/lib
slaxemulator@6882 46 cp -a $_pkg/usr/bin $fs/usr
slaxemulator@6882 47 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
slaxemulator@6882 48 rm $fs/usr/bin/nspr-config
slaxemulator@6882 49 }