From d2e6347f0679f00c9ebcea735893f52e3849aa50 Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Mon, 28 Mar 2016 12:43:33 +1100 Subject: [PATCH] nspr-32: initial import --- nspr-32/.32bit | 0 nspr-32/.footprint | 12 ++++++++++++ nspr-32/.md5sum | 2 ++ nspr-32/Pkgfile | 48 ++++++++++++++++++++++++++++++++++++++++++++++ nspr-32/nspr.pc.in | 10 ++++++++++ 5 files changed, 72 insertions(+) create mode 100644 nspr-32/.32bit create mode 100644 nspr-32/.footprint create mode 100644 nspr-32/.md5sum create mode 100644 nspr-32/Pkgfile create mode 100644 nspr-32/nspr.pc.in diff --git a/nspr-32/.32bit b/nspr-32/.32bit new file mode 100644 index 00000000..e69de29b 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@