wok-next view nspr/receipt @ rev 14443
Up midori (0.5.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 26 15:15:40 2013 +0200 (2013-04-26) |
parents | 3b7bb738b7bc |
children | 3765f181a6d5 |
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 $install/usr/lib/*so* $fs/usr/lib
42 }