CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Subversion Repository
Parent Directory
|
Revision Log
Revision 1143 -
(hide annotations)
Sun Oct 4 15:12:32 2009 UTC (3 years, 8 months ago) by cjg
File size: 1341 byte(s)
Sun Oct 4 15:12:32 2009 UTC (3 years, 8 months ago) by cjg
File size: 1341 byte(s)
nspr: fixed for 64bit
| 1 | cjg | 720 | # Description: Netscape Portable Runtime library |
| 2 | cjg | 862 | # URL: http://www.mozilla.org/projects/nspr/ |
| 3 | # Maintainer: Tilman Sauerbeck, tilman at crux dot nu | ||
| 4 | cjg | 1143 | # PPC!=: |
| 5 | cjg | 720 | |
| 6 | name=nspr | ||
| 7 | cjg | 1132 | version=4.7.4 |
| 8 | cjg | 1143 | release=2 |
| 9 | cjg | 1132 | source=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.7.4/src/$name-$version.tar.gz |
| 10 | cjg | 720 | $name.pc.in) |
| 11 | |||
| 12 | build() { | ||
| 13 | local NSPR_LIBS NSPR_CFLAGS NSPR_VERSION | ||
| 14 | |||
| 15 | cd $name-$version | ||
| 16 | |||
| 17 | cjg | 1143 | if [ "$HOSTTYPE" == "powerpc64" ]; then |
| 18 | CONF="--enable-64bit" | ||
| 19 | fi | ||
| 20 | ./mozilla/nsprpub/configure $CONF \ | ||
| 21 | cjg | 720 | --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 | } |