summaryrefslogtreecommitdiffstats
path: root/extra/nspr/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-11 21:52:05 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-11 21:52:05 +0200
commita457a30953911e05e70a5c35db8b1599840c09ee (patch)
treee66804fc1019240be477d5aed9904f5b85c8670c /extra/nspr/Pkgfile
parentd692b72df78994a0a031008a8ee975b154a6e27f (diff)
downloadnutyx-pakxe-a457a30953911e05e70a5c35db8b1599840c09ee.tar.gz
nutyx-pakxe-a457a30953911e05e70a5c35db8b1599840c09ee.tar.bz2
nutyx-pakxe-a457a30953911e05e70a5c35db8b1599840c09ee.tar.xz
nutyx-pakxe-a457a30953911e05e70a5c35db8b1599840c09ee.zip
Ajout de nspr#4.8-1
Diffstat (limited to 'extra/nspr/Pkgfile')
-rw-r--r--extra/nspr/Pkgfile46
1 files changed, 46 insertions, 0 deletions
diff --git a/extra/nspr/Pkgfile b/extra/nspr/Pkgfile
new file mode 100644
index 000000000..a9a4b0824
--- /dev/null
+++ b/extra/nspr/Pkgfile
@@ -0,0 +1,46 @@
+# Description: Netscape Portable Runtime library
+# URL: http://www.mozilla.org/projects/nspr/
+# Maintainer: Tilman Sauerbeck, tilman at crux dot nu
+# Packager: thierryn1 at hispeed dot ch
+# Depends on:
+
+name=nspr
+version=4.8
+release=1
+source=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8/src/$name-$version.tar.gz
+ $name.pc.in)
+
+build() {
+ local NSPR_LIBS NSPR_CFLAGS NSPR_VERSION
+
+ cd $name-$version
+
+ ./mozilla/nsprpub/configure \
+ --prefix=/usr \
+ --libdir=/usr/lib \
+ --includedir=/usr/include/nspr \
+ --enable-optimize="$CFLAGS" \
+ --disable-debug
+
+ 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
+}