wok annotate 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 |
rev | line source |
---|---|
slaxemulator@6882 | 1 # SliTaz package receipt. |
slaxemulator@6882 | 2 |
slaxemulator@6882 | 3 PACKAGE="nspr" |
domcox@14156 | 4 VERSION="4.9.4" |
slaxemulator@6882 | 5 CATEGORY="utilities" |
slaxemulator@6882 | 6 SHORT_DESC="Netscape Portable Runtime" |
slaxemulator@6882 | 7 MAINTAINER="rocky@slitaz.org" |
slaxemulator@6882 | 8 DEPENDS="glibc-base" |
slaxemulator@6882 | 9 BUILD_DEPENDS="perl" |
slaxemulator@6882 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@6882 | 11 WEB_SITE="http://www.mozilla.org/projects/nspr/" |
slaxemulator@6882 | 12 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}" |
slaxemulator@6882 | 13 |
slaxemulator@6882 | 14 # Rules to configure and make the package. |
slaxemulator@6882 | 15 compile_rules() |
slaxemulator@6882 | 16 { |
pankso@10399 | 17 cd $src |
domcox@14156 | 18 cd mozilla/nsprpub |
domcox@14156 | 19 # disable two unneeded scripts. |
domcox@14156 | 20 sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in && |
domcox@14156 | 21 # disable static libraries. |
domcox@14156 | 22 sed -i 's#$(LIBRARY) ##' config/rules.mk && |
domcox@14156 | 23 ./configure \ |
pankso@10399 | 24 --prefix=/usr \ |
pankso@10399 | 25 --libdir=/usr/lib \ |
pankso@10399 | 26 --includedir=/usr/include/nspr \ |
pankso@10399 | 27 --enable-optimize \ |
pankso@10399 | 28 --disable-debug \ |
domcox@14156 | 29 --with-mozilla \ |
domcox@14156 | 30 --with-pthreads \ |
domcox@14156 | 31 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \ |
pankso@10399 | 32 $CONFIGURE_ARGS && |
pankso@10399 | 33 make && make DESTDIR=$DESTDIR install |
pankso@10399 | 34 ln -sf nspr.pc "$DESTDIR/usr/lib/pkgconfig/mozilla-nspr.pc" |
slaxemulator@6882 | 35 } |
slaxemulator@6882 | 36 |
slaxemulator@6882 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6882 | 38 genpkg_rules() |
slaxemulator@6882 | 39 { |
slaxemulator@6882 | 40 mkdir -p $fs/usr/lib |
slaxemulator@6882 | 41 cp -a $_pkg/usr/lib/*so* $fs/usr/lib |
slaxemulator@6882 | 42 } |