CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Subversion Repository
Parent Directory
|
Revision Log
Revision 2 -
(hide annotations)
Sun Oct 4 14:31:24 2009 UTC (3 years, 7 months ago) by cjg
File size: 1278 byte(s)
Sun Oct 4 14:31:24 2009 UTC (3 years, 7 months ago) by cjg
File size: 1278 byte(s)
importing opt
| 1 | cjg | 2 | # Description: Netscape Portable Runtime library |
| 2 | # URL: http://www.mozilla.org/projects/nspr/ | ||
| 3 | # Packager: Tilman Sauerbeck, tilman at crux dot nu | ||
| 4 | # Maintainer: The Crux PPC Team | ||
| 5 | |||
| 6 | name=nspr | ||
| 7 | version=4.7.1 | ||
| 8 | release=2 | ||
| 9 | source=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.7.1/src/$name-$version.tar.gz | ||
| 10 | $name.pc.in) | ||
| 11 | |||
| 12 | build() { | ||
| 13 | local NSPR_LIBS NSPR_CFLAGS NSPR_VERSION | ||
| 14 | |||
| 15 | cd $name-$version | ||
| 16 | |||
| 17 | ./mozilla/nsprpub/configure \ | ||
| 18 | --prefix=/usr \ | ||
| 19 | --libdir=/usr/lib \ | ||
| 20 | --includedir=/usr/include/nspr \ | ||
| 21 | --enable-optimize="$CFLAGS" \ | ||
| 22 | --disable-debug | ||
| 23 | |||
| 24 | make | ||
| 25 | make DESTDIR=$PKG install | ||
| 26 | |||
| 27 | NSPR_LIBS=`./config/nspr-config --libs` | ||
| 28 | NSPR_CFLAGS=`./config/nspr-config --cflags` | ||
| 29 | NSPR_VERSION=`./config/nspr-config --version` | ||
| 30 | |||
| 31 | install -d $PKG/usr/lib/pkgconfig | ||
| 32 | |||
| 33 | sed $SRC/nspr.pc.in \ | ||
| 34 | -e "s,@libdir@,/usr/lib," \ | ||
| 35 | -e "s,@prefix@,/usr," \ | ||
| 36 | -e "s,@exec_prefix@,/usr/bin," \ | ||
| 37 | -e "s,@includedir@,/usr/include/nspr," \ | ||
| 38 | -e "s,@NSPR_VERSION@,$NSPR_VERSION," \ | ||
| 39 | -e "s,@FULL_NSPR_LIBS@,$NSPR_LIBS," \ | ||
| 40 | -e "s,@FULL_NSPR_CFLAGS@,$NSPR_CFLAGS," > \ | ||
| 41 | $PKG/usr/lib/pkgconfig/nspr.pc | ||
| 42 | |||
| 43 | rm $PKG/usr/bin/{compile-et.pl,prerr.properties} | ||
| 44 | rm -r $PKG/usr/include/nspr/md | ||
| 45 | } |