summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nspr/.footprint2
-rw-r--r--nspr/.md5sum1
-rw-r--r--nspr/Pkgfile23
-rw-r--r--nspr/nspr.pc.in10
4 files changed, 34 insertions, 2 deletions
diff --git a/nspr/.footprint b/nspr/.footprint
index 81a5794d8..8d753678d 100644
--- a/nspr/.footprint
+++ b/nspr/.footprint
@@ -68,6 +68,8 @@ drwxr-xr-x root/root usr/lib/
-rwxr-xr-x root/root usr/lib/libplc4.so
-rwxr-xr-x root/root usr/lib/libplds4.a
-rwxr-xr-x root/root usr/lib/libplds4.so
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/nspr.pc
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/aclocal/
-rw-r--r-- root/root usr/share/aclocal/nspr.m4
diff --git a/nspr/.md5sum b/nspr/.md5sum
index 17557a2d2..2f361e7ab 100644
--- a/nspr/.md5sum
+++ b/nspr/.md5sum
@@ -1 +1,2 @@
7c6e75a0867ce2b9ec62e399a908b5ac nspr-4.7.1.tar.gz
+2083f33e11dfe15feb7bf9bca0f6c44b nspr.pc.in
diff --git a/nspr/Pkgfile b/nspr/Pkgfile
index cde4c6655..abe8ce8bc 100644
--- a/nspr/Pkgfile
+++ b/nspr/Pkgfile
@@ -4,10 +4,13 @@
name=nspr
version=4.7.1
-release=1
-source=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.7.1/src/$name-$version.tar.gz)
+release=2
+source=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.7.1/src/$name-$version.tar.gz
+ $name.pc.in)
build() {
+ local NSPR_LIBS NSPR_CFLAGS NSPR_VERSION
+
cd $name-$version
./mozilla/nsprpub/configure \
@@ -20,6 +23,22 @@ build() {
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
}
diff --git a/nspr/nspr.pc.in b/nspr/nspr.pc.in
new file mode 100644
index 000000000..9951a5b5d
--- /dev/null
+++ b/nspr/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