wok view nspr/receipt @ rev 8883
Add: htmldoc 1.8.27
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Feb 27 03:53:25 2011 +0100 (2011-02-27) |
parents | f620c0d3e9f4 |
children | d1768332cee0 |
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 make
25 make DESTDIR="$PWD/_pkg" install
27 mkdir -p $PWD/_pkg/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" -e "s,%libdir%,/usr/lib," \
33 -e "s,%prefix%,/usr," \
34 -e "s,%exec_prefix%,/usr/bin," \
35 -e "s,%includedir%,/usr/include/nspr," \
36 -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \
37 -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \
38 -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," > "$PWD/_pkg/usr/lib/pkgconfig/nspr.pc"
39 ln -sf nspr.pc "$PWD/_pkg/usr/lib/pkgconfig/mozilla-nspr.pc"
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
48 rm $fs/usr/bin/nspr-config
49 }