wok-backports rev 20
Add nspr
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 05 23:30:04 2014 +0100 (2014-01-05) |
parents | 4d0421d990ff |
children | 0c055f37d60b |
files | nspr-dev/receipt nspr/receipt nspr/stuff/nspr.pc.in |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nspr-dev/receipt Sun Jan 05 23:30:04 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="nspr-dev" 1.7 +VERSION="4.9.4" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="nspr devel library." 1.10 +MAINTAINER="slaxemulator@gmail.com" 1.11 +LICENSE="MPL2" 1.12 +WANTED="nspr" 1.13 +WEB_SITE="http://www.mozilla.org/projects/security/nspr/" 1.14 + 1.15 +DEPENDS="nspr pkg-config" 1.16 + 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share 1.21 + cp -a $install/usr/include $fs/usr 1.22 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.23 + cp -a $install/usr/share/aclocal $fs/usr/share 1.24 + cp -a $install/usr/bin/nspr-config $fs/usr/bin/nspr-config 1.25 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/nspr/receipt Sun Jan 05 23:30:04 2014 +0100 2.3 @@ -0,0 +1,44 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="nspr" 2.7 +VERSION="4.9.4" 2.8 +CATEGORY="utilities" 2.9 +SHORT_DESC="Netscape Portable Runtime" 2.10 +MAINTAINER="rocky@slitaz.org" 2.11 +LICENSE="MPL2" 2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 2.13 +WEB_SITE="http://www.mozilla.org/projects/nspr/" 2.14 +WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}" 2.15 + 2.16 +DEPENDS="glibc-base" 2.17 +BUILD_DEPENDS="perl" 2.18 + 2.19 +# Rules to configure and make the package. 2.20 +compile_rules() 2.21 +{ 2.22 + cd $src 2.23 + cd mozilla/nsprpub 2.24 + # disable two unneeded scripts. 2.25 + sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in && 2.26 + # disable static libraries. 2.27 + sed -i 's#$(LIBRARY) ##' config/rules.mk && 2.28 + ./configure \ 2.29 + --prefix=/usr \ 2.30 + --libdir=/usr/lib \ 2.31 + --includedir=/usr/include/nspr \ 2.32 + --enable-optimize \ 2.33 + --disable-debug \ 2.34 + --with-mozilla \ 2.35 + --with-pthreads \ 2.36 + $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \ 2.37 + $CONFIGURE_ARGS && 2.38 + make && make DESTDIR=$DESTDIR install 2.39 + ln -sf nspr.pc "$DESTDIR/usr/lib/pkgconfig/mozilla-nspr.pc" 2.40 +} 2.41 + 2.42 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.43 +genpkg_rules() 2.44 +{ 2.45 + mkdir -p $fs/usr/lib 2.46 + cp -a $install/usr/lib/*so* $fs/usr/lib 2.47 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/nspr/stuff/nspr.pc.in Sun Jan 05 23:30:04 2014 +0100 3.3 @@ -0,0 +1,10 @@ 3.4 +prefix=%prefix% 3.5 +exec_prefix=%exec_prefix% 3.6 +libdir=%libdir% 3.7 +includedir=%includedir% 3.8 + 3.9 +Name: NSPR 3.10 +Description: The Netscape Portable Runtime 3.11 +Version: %NSPR_VERSION% 3.12 +Libs: %FULL_NSPR_LIBS% 3.13 +Cflags: %FULL_NSPR_CFLAGS%