wok view nspr/receipt @ rev 14156

Up: nspr (4.9.4)
author Dominique Corbex <domcox@slitaz.org>
date Tue Mar 05 22:39:14 2013 +0100 (2013-03-05)
parents 862431c4544e
children 4fc7e24356a5
line source
1 # SliTaz package receipt.
3 PACKAGE="nspr"
4 VERSION="4.9.4"
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 cd mozilla/nsprpub
19 # disable two unneeded scripts.
20 sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in &&
21 # disable static libraries.
22 sed -i 's#$(LIBRARY) ##' config/rules.mk &&
23 ./configure \
24 --prefix=/usr \
25 --libdir=/usr/lib \
26 --includedir=/usr/include/nspr \
27 --enable-optimize \
28 --disable-debug \
29 --with-mozilla \
30 --with-pthreads \
31 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \
32 $CONFIGURE_ARGS &&
33 make && make DESTDIR=$DESTDIR install
34 ln -sf nspr.pc "$DESTDIR/usr/lib/pkgconfig/mozilla-nspr.pc"
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
41 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
42 }