summaryrefslogtreecommitdiff
path: root/nspr-32
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2016-03-28 12:43:33 +1100
committerDanny Rawlins <monster.romster@gmail.com>2016-03-28 12:43:33 +1100
commitd2e6347f0679f00c9ebcea735893f52e3849aa50 (patch)
tree6959e829f9cbcab98a787af7c55f223b9c8c222c /nspr-32
parent05003d187f0e4202c68f55e27fb65d0464ca4db4 (diff)
downloadcompat-32-d2e6347f0679f00c9ebcea735893f52e3849aa50.tar.gz
compat-32-d2e6347f0679f00c9ebcea735893f52e3849aa50.tar.xz
nspr-32: initial import
Diffstat (limited to 'nspr-32')
-rw-r--r--nspr-32/.32bit0
-rw-r--r--nspr-32/.footprint12
-rw-r--r--nspr-32/.md5sum2
-rw-r--r--nspr-32/Pkgfile48
-rw-r--r--nspr-32/nspr.pc.in10
5 files changed, 72 insertions, 0 deletions
diff --git a/nspr-32/.32bit b/nspr-32/.32bit
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/nspr-32/.32bit
diff --git a/nspr-32/.footprint b/nspr-32/.footprint
new file mode 100644
index 00000000..4359b644
--- /dev/null
+++ b/nspr-32/.footprint
@@ -0,0 +1,12 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/nspr-config-32
+drwxr-xr-x root/root usr/lib32/
+-rwxr-xr-x root/root usr/lib32/libnspr4.a
+-rwxr-xr-x root/root usr/lib32/libnspr4.so
+-rwxr-xr-x root/root usr/lib32/libplc4.a
+-rwxr-xr-x root/root usr/lib32/libplc4.so
+-rwxr-xr-x root/root usr/lib32/libplds4.a
+-rwxr-xr-x root/root usr/lib32/libplds4.so
+drwxr-xr-x root/root usr/lib32/pkgconfig/
+-rw-r--r-- root/root usr/lib32/pkgconfig/nspr.pc
diff --git a/nspr-32/.md5sum b/nspr-32/.md5sum
new file mode 100644
index 00000000..1a0e9d00
--- /dev/null
+++ b/nspr-32/.md5sum
@@ -0,0 +1,2 @@
+0de760c1e00a92e180e611cf06ce9589 nspr-4.12.tar.gz
+2083f33e11dfe15feb7bf9bca0f6c44b nspr.pc.in
diff --git a/nspr-32/Pkgfile b/nspr-32/Pkgfile
new file mode 100644
index 00000000..aa3236a4
--- /dev/null
+++ b/nspr-32/Pkgfile
@@ -0,0 +1,48 @@
+# Description: Netscape Portable Runtime library
+# URL: http://www.mozilla.org/projects/nspr/
+# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
+# Depends on: nspr
+
+name=nspr-32
+version=4.12
+release=1
+source=(http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v$version/src/nspr-$version.tar.gz
+ nspr.pc.in)
+
+build() {
+ local NSPR_LIBS NSPR_CFLAGS NSPR_VERSION
+
+ cd nspr-$version/nspr
+
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib32 \
+ --includedir=/usr/include/nspr \
+ --enable-optimize="$CFLAGS" \
+ --disable-64bit \
+ --disable-debug
+
+ make
+ make DESTDIR=$PKG install
+
+ mv $PKG/usr/bin/nspr-config{,-32}
+ rm $PKG/usr/bin/{compile-et.pl,prerr.properties}
+
+ NSPR_LIBS=`./config/nspr-config --libs`
+ NSPR_CFLAGS=`./config/nspr-config --cflags`
+ NSPR_VERSION=`./config/nspr-config --version`
+
+ install -d $PKG/usr/lib32/pkgconfig
+
+ sed $SRC/nspr.pc.in \
+ -e "s,@libdir@,/usr/lib32," \
+ -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/lib32/pkgconfig/nspr.pc
+
+ rm -r $PKG/usr/{include,share}
+}
diff --git a/nspr-32/nspr.pc.in b/nspr-32/nspr.pc.in
new file mode 100644
index 00000000..9951a5b5
--- /dev/null
+++ b/nspr-32/nspr.pc.in
@@ -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@

Generated by cgit