Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2354 - (hide annotations)
Sun May 8 12:13:41 2011 UTC (2 years, 1 month ago) by acrux
File size: 1353 byte(s)
nspr: updated to 4.8.8
1 acrux 2099 # Description: Netscape Portable Runtime library
2     # URL: http://www.mozilla.org/projects/nspr/
3     # Maintainer: Fredrik Rinnestam, fredrik at rinnestam dot se
4     # PPC!=:
5    
6     name=nspr
7 acrux 2354 version=4.8.8
8 acrux 2099 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     }