Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 624 - (show annotations)
Sun Oct 4 15:05:06 2009 UTC (3 years, 7 months ago) by cjg
File size: 1341 byte(s)
nspr: fixed for 64bit
1 # Description: Netscape Portable Runtime library
2 # URL: http://www.mozilla.org/projects/nspr/
3 # Maintainer: Tilman Sauerbeck, tilman at crux dot nu
4 # PPC!=:
5
6 name=nspr
7 version=4.7.4
8 release=2
9 source=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.7.4/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 }