CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Subversion Repository
Parent Directory
|
Revision Log
Revision 2746 -
(show annotations)
Sat Jun 2 11:22:53 2012 UTC (11 months, 2 weeks ago) by acrux
File size: 1348 byte(s)
Sat Jun 2 11:22:53 2012 UTC (11 months, 2 weeks ago) by acrux
File size: 1348 byte(s)
nspr: updated to 4.9.1
| 1 | # Description: Netscape Portable Runtime library |
| 2 | # URL: http://www.mozilla.org/projects/nspr/ |
| 3 | # Maintainer: Fredrik Rinnestam, fredrik at crux dot nu |
| 4 | # PPC!=: |
| 5 | |
| 6 | name=nspr |
| 7 | version=4.9.1 |
| 8 | release=1 |
| 9 | source=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${version}/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 | if [ "$HOSTTYPE" == "powerpc64" ]; then |
| 18 | CONF="--enable-64bit" |
| 19 | fi |
| 20 | ./mozilla/nsprpub/configure $CONF \ |
| 21 | --prefix=/usr \ |
| 22 | --libdir=/usr/lib \ |
| 23 | --includedir=/usr/include/nspr \ |
| 24 | --enable-optimize="$CFLAGS" \ |
| 25 | --disable-debug |
| 26 | |
| 27 | make |
| 28 | make DESTDIR=$PKG install |
| 29 | |
| 30 | NSPR_LIBS=`./config/nspr-config --libs` |
| 31 | NSPR_CFLAGS=`./config/nspr-config --cflags` |
| 32 | NSPR_VERSION=`./config/nspr-config --version` |
| 33 | |
| 34 | install -d $PKG/usr/lib/pkgconfig |
| 35 | |
| 36 | sed $SRC/nspr.pc.in \ |
| 37 | -e "s,@libdir@,/usr/lib," \ |
| 38 | -e "s,@prefix@,/usr," \ |
| 39 | -e "s,@exec_prefix@,/usr/bin," \ |
| 40 | -e "s,@includedir@,/usr/include/nspr," \ |
| 41 | -e "s,@NSPR_VERSION@,$NSPR_VERSION," \ |
| 42 | -e "s,@FULL_NSPR_LIBS@,$NSPR_LIBS," \ |
| 43 | -e "s,@FULL_NSPR_CFLAGS@,$NSPR_CFLAGS," > \ |
| 44 | $PKG/usr/lib/pkgconfig/nspr.pc |
| 45 | |
| 46 | rm $PKG/usr/bin/{compile-et.pl,prerr.properties} |
| 47 | rm -r $PKG/usr/include/nspr/md |
| 48 | } |