wok view nspr/receipt @ rev 16171

ARM: e17 still need more bdeps
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 30 03:41:12 2014 +0200 (2014-03-30)
parents 4fc7e24356a5
children 547cf085b858
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 LICENSE="MPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.mozilla.org/projects/nspr/"
11 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}"
13 DEPENDS="glibc-base"
14 BUILD_DEPENDS="perl"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 cd mozilla/nsprpub
21 # disable two unneeded scripts.
22 sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in &&
23 # disable static libraries.
24 sed -i 's#$(LIBRARY) ##' config/rules.mk &&
25 ./configure \
26 --prefix=/usr \
27 --libdir=/usr/lib \
28 --includedir=/usr/include/nspr \
29 --enable-optimize \
30 --disable-debug \
31 --with-mozilla \
32 --with-pthreads \
33 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \
34 $CONFIGURE_ARGS &&
35 make && make DESTDIR=$DESTDIR install
36 ln -sf nspr.pc "$DESTDIR/usr/lib/pkgconfig/mozilla-nspr.pc"
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 cp -a $install/usr/lib/*so* $fs/usr/lib
44 }