wok view nspr/receipt @ rev 10495

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