# HG changeset patch # User Pascal Bellard # Date 1388961004 -3600 # Node ID c72710e69358ea6c5cec302e8735bff828532d36 # Parent 4d0421d990ff409c9f4f65c7039050ca3473f2c8 Add nspr diff -r 4d0421d990ff -r c72710e69358 nspr-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nspr-dev/receipt Sun Jan 05 23:30:04 2014 +0100 @@ -0,0 +1,22 @@ +# SliTaz package receipt. + +PACKAGE="nspr-dev" +VERSION="4.9.4" +CATEGORY="development" +SHORT_DESC="nspr devel library." +MAINTAINER="slaxemulator@gmail.com" +LICENSE="MPL2" +WANTED="nspr" +WEB_SITE="http://www.mozilla.org/projects/security/nspr/" + +DEPENDS="nspr pkg-config" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/pkgconfig $fs/usr/lib + cp -a $install/usr/share/aclocal $fs/usr/share + cp -a $install/usr/bin/nspr-config $fs/usr/bin/nspr-config +} diff -r 4d0421d990ff -r c72710e69358 nspr/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nspr/receipt Sun Jan 05 23:30:04 2014 +0100 @@ -0,0 +1,44 @@ +# SliTaz package receipt. + +PACKAGE="nspr" +VERSION="4.9.4" +CATEGORY="utilities" +SHORT_DESC="Netscape Portable Runtime" +MAINTAINER="rocky@slitaz.org" +LICENSE="MPL2" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.mozilla.org/projects/nspr/" +WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}" + +DEPENDS="glibc-base" +BUILD_DEPENDS="perl" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + cd mozilla/nsprpub + # disable two unneeded scripts. + sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in && + # disable static libraries. + sed -i 's#$(LIBRARY) ##' config/rules.mk && + ./configure \ + --prefix=/usr \ + --libdir=/usr/lib \ + --includedir=/usr/include/nspr \ + --enable-optimize \ + --disable-debug \ + --with-mozilla \ + --with-pthreads \ + $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \ + $CONFIGURE_ARGS && + make && make DESTDIR=$DESTDIR install + ln -sf nspr.pc "$DESTDIR/usr/lib/pkgconfig/mozilla-nspr.pc" +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/*so* $fs/usr/lib +} diff -r 4d0421d990ff -r c72710e69358 nspr/stuff/nspr.pc.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nspr/stuff/nspr.pc.in Sun Jan 05 23:30:04 2014 +0100 @@ -0,0 +1,10 @@ +prefix=%prefix% +exec_prefix=%exec_prefix% +libdir=%libdir% +includedir=%includedir% + +Name: NSPR +Description: The Netscape Portable Runtime +Version: %NSPR_VERSION% +Libs: %FULL_NSPR_LIBS% +Cflags: %FULL_NSPR_CFLAGS%