Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


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