diff options
author | Tilman Sauerbeck <tilman@crux.nu> | 2008-07-22 21:58:57 +0200 |
---|---|---|
committer | Tilman Sauerbeck <tilman@crux.nu> | 2008-07-22 21:58:57 +0200 |
commit | a45da96ecf6076ed2e7fdd892dcbc7f2947cfa2a (patch) | |
tree | 8c30d54b28c1b4c66e6494cd16edbad3a50e5a9d /nspr/Pkgfile | |
parent | 7e5d21f1d71e486342cd56553d9b6e6513c49a88 (diff) | |
download | opt-a45da96ecf6076ed2e7fdd892dcbc7f2947cfa2a.tar.gz opt-a45da96ecf6076ed2e7fdd892dcbc7f2947cfa2a.tar.xz |
nspr: resurrected nspr.pc, since xulrunner's pc file refers to it.
Diffstat (limited to 'nspr/Pkgfile')
-rw-r--r-- | nspr/Pkgfile | 23 |
1 files changed, 21 insertions, 2 deletions
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 } |