summaryrefslogtreecommitdiffstats
path: root/nspr/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
commit3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch)
tree819b14ab0377fe2054fe59866669d904e9e0b4b5 /nspr/Pkgfile
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip
split de git pakxe et NuTyX-extra
Diffstat (limited to 'nspr/Pkgfile')
-rw-r--r--nspr/Pkgfile46
1 files changed, 46 insertions, 0 deletions
diff --git a/nspr/Pkgfile b/nspr/Pkgfile
new file mode 100644
index 000000000..4975d916c
--- /dev/null
+++ b/nspr/Pkgfile
@@ -0,0 +1,46 @@
+# Description: Netscape Portable Runtime library
+# URL: http://www.mozilla.org/projects/nspr/
+# Maintainer: Fredrik Rinnestam, fredrik at rinnestam dot se
+# Packager: thierryn1 at hispeed dot ch
+
+name=nspr
+version=4.8.9
+release=1
+source=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v$version/src/$name-$version.tar.gz
+ http://nutyx.meticul.eu/files/patchs/$name/$name.pc.in)
+
+build() {
+ _ARCH=`uname -m`
+ local NSPR_LIBS NSPR_CFLAGS NSPR_VERSION
+ [ "`uname -m`" == "x86_64" ] && confflags="--enable-64bit"
+ cd $name-$version
+
+ ./mozilla/nsprpub/configure \
+ --prefix=/usr \
+ --libdir=/usr/lib \
+ --includedir=/usr/include/nspr \
+ --enable-optimize \
+ --disable-debug ${confflags}
+
+ make
+ make DESTDIR=$PKG install
+
+ NSPR_LIBS=`./config/nspr-config --libs`
+ NSPR_CFLAGS=`./config/nspr-config --cflags`
+ NSPR_VERSION=`./config/nspr-config --version`
+
+ install -d $PKG/usr/lib/pkgconfig
+
+ sed $SRC/nspr.pc.in \
+ -e "s,@libdir@,/usr/lib," \
+ -e "s,@prefix@,/usr," \
+ -e "s,@exec_prefix@,/usr/bin," \
+ -e "s,@includedir@,/usr/include/nspr," \
+ -e "s,@NSPR_VERSION@,$NSPR_VERSION," \
+ -e "s,@FULL_NSPR_LIBS@,$NSPR_LIBS," \
+ -e "s,@FULL_NSPR_CFLAGS@,$NSPR_CFLAGS," > \
+ $PKG/usr/lib/pkgconfig/nspr.pc
+
+ rm $PKG/usr/bin/{compile-et.pl,prerr.properties}
+ rm -r $PKG/usr/include/nspr/md
+}