wok annotate nspr/receipt @ rev 11576

nvclock: autoreconf before build
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Jan 02 23:06:19 2012 +0100 (2012-01-02)
parents d1768332cee0
children 3b7bb738b7bc
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 {
pankso@10399 17 cd $src
pankso@10399 18 ./mozilla/nsprpub/configure \
pankso@10399 19 --prefix=/usr \
pankso@10399 20 --libdir=/usr/lib \
pankso@10399 21 --includedir=/usr/include/nspr \
pankso@10399 22 --enable-optimize \
pankso@10399 23 --disable-debug \
pankso@10399 24 $CONFIGURE_ARGS &&
pankso@10399 25 make && make DESTDIR=$DESTDIR install
pankso@10399 26
pankso@10399 27 mkdir -p $DESTDIR/usr/lib/pkgconfig
pankso@10399 28 NSPR_LIBS=`./config/nspr-config --libs`
pankso@10399 29 NSPR_CFLAGS=`./config/nspr-config --cflags`
pankso@10399 30 NSPR_VERSION=`./config/nspr-config --version`
pankso@10399 31 install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
pankso@10399 32 sed "$stuff/nspr.pc.in" \
pankso@10399 33 -e "s,%libdir%,/usr/lib," \
pankso@10399 34 -e "s,%prefix%,/usr," \
pankso@10399 35 -e "s,%exec_prefix%,/usr/bin," \
pankso@10399 36 -e "s,%includedir%,/usr/include/nspr," \
pankso@10399 37 -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \
pankso@10399 38 -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \
pankso@10399 39 -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," > \
pankso@10399 40 "$DESTDIR/usr/lib/pkgconfig/nspr.pc"
pankso@10399 41 ln -sf nspr.pc "$DESTDIR/usr/lib/pkgconfig/mozilla-nspr.pc"
slaxemulator@6882 42 }
slaxemulator@6882 43
slaxemulator@6882 44 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6882 45 genpkg_rules()
slaxemulator@6882 46 {
slaxemulator@6882 47 mkdir -p $fs/usr/lib
slaxemulator@6882 48 cp -a $_pkg/usr/bin $fs/usr
slaxemulator@6882 49 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
slaxemulator@6882 50 rm $fs/usr/bin/nspr-config
slaxemulator@6882 51 }