summaryrefslogtreecommitdiffstats
path: root/base/nspr/Pkgfile
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-01-28 22:50:42 +0100
committertnut <thierryn1 at hispeed dot ch>2010-01-28 22:50:42 +0100
commit19876401fe34b7bcd02e0677903b70bd321fee67 (patch)
tree56a3aa1eee618b3fc243c2962a0a24842657f378 /base/nspr/Pkgfile
parenta84f186941d491bb457c09c9685b4d72a5780cb4 (diff)
downloadnutyx-pakxe-19876401fe34b7bcd02e0677903b70bd321fee67.tar.gz
nutyx-pakxe-19876401fe34b7bcd02e0677903b70bd321fee67.tar.bz2
nutyx-pakxe-19876401fe34b7bcd02e0677903b70bd321fee67.tar.xz
nutyx-pakxe-19876401fe34b7bcd02e0677903b70bd321fee67.zip
Maj nspr#4.8.2-1
Diffstat (limited to 'base/nspr/Pkgfile')
-rw-r--r--base/nspr/Pkgfile46
1 files changed, 46 insertions, 0 deletions
diff --git a/base/nspr/Pkgfile b/base/nspr/Pkgfile
new file mode 100644
index 000000000..763ab22c4
--- /dev/null
+++ b/base/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.2
+release=1
+source=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8.2/src/$name-$version.tar.gz
+ $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="$CFLAGS" \
+ --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
+}