wok-6.x annotate nspr/receipt @ rev 15584
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 30 17:02:58 2013 +0000 (2013-11-30) |
parents | 4fc7e24356a5 |
children | 547cf085b858 |
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" |
pascal@15584 | 8 LICENSE="MPL2" |
slaxemulator@6882 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@6882 | 10 WEB_SITE="http://www.mozilla.org/projects/nspr/" |
slaxemulator@6882 | 11 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}" |
slaxemulator@6882 | 12 |
pascal@15584 | 13 DEPENDS="glibc-base" |
pascal@15584 | 14 BUILD_DEPENDS="perl" |
pascal@15584 | 15 |
slaxemulator@6882 | 16 # Rules to configure and make the package. |
slaxemulator@6882 | 17 compile_rules() |
slaxemulator@6882 | 18 { |
pankso@10399 | 19 cd $src |
domcox@14156 | 20 cd mozilla/nsprpub |
domcox@14156 | 21 # disable two unneeded scripts. |
domcox@14156 | 22 sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in && |
domcox@14156 | 23 # disable static libraries. |
domcox@14156 | 24 sed -i 's#$(LIBRARY) ##' config/rules.mk && |
domcox@14156 | 25 ./configure \ |
pankso@10399 | 26 --prefix=/usr \ |
pankso@10399 | 27 --libdir=/usr/lib \ |
pankso@10399 | 28 --includedir=/usr/include/nspr \ |
pankso@10399 | 29 --enable-optimize \ |
pankso@10399 | 30 --disable-debug \ |
domcox@14156 | 31 --with-mozilla \ |
domcox@14156 | 32 --with-pthreads \ |
domcox@14156 | 33 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \ |
pankso@10399 | 34 $CONFIGURE_ARGS && |
pankso@10399 | 35 make && make DESTDIR=$DESTDIR install |
pankso@10399 | 36 ln -sf nspr.pc "$DESTDIR/usr/lib/pkgconfig/mozilla-nspr.pc" |
slaxemulator@6882 | 37 } |
slaxemulator@6882 | 38 |
slaxemulator@6882 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6882 | 40 genpkg_rules() |
slaxemulator@6882 | 41 { |
slaxemulator@6882 | 42 mkdir -p $fs/usr/lib |
domcox@14218 | 43 cp -a $install/usr/lib/*so* $fs/usr/lib |
slaxemulator@6882 | 44 } |