nspr-32: initial import

This commit is contained in:
Danny Rawlins 2016-03-28 12:43:33 +11:00
parent 05003d187f
commit d2e6347f06
5 changed files with 72 additions and 0 deletions

0
nspr-32/.32bit Normal file
View File

12
nspr-32/.footprint Normal file
View File

@ -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

2
nspr-32/.md5sum Normal file
View File

@ -0,0 +1,2 @@
0de760c1e00a92e180e611cf06ce9589 nspr-4.12.tar.gz
2083f33e11dfe15feb7bf9bca0f6c44b nspr.pc.in

48
nspr-32/Pkgfile Normal file
View File

@ -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}
}

10
nspr-32/nspr.pc.in Normal file
View File

@ -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@