Commit | Line | Data |
---|---|---|
4d8a3c90 VM |
1 | # Description: Netscape Portable Runtime library |
2 | # URL: http://www.mozilla.org/projects/nspr/ | |
3 | # Maintainer: Fredrik Rinnestam, fredrik at rinnestam dot se | |
4 | # Arch Maintainer: CRUX-ARM System Team. devel at crux-arm dot nu | |
5 | ||
6 | name=nspr | |
043b26fb | 7 | version=4.19 |
4d8a3c90 | 8 | release=1 |
3808db1e | 9 | source=(https://ftp.mozilla.org/pub/nspr/releases/v$version/src/$name-$version.tar.gz |
4d8a3c90 VM |
10 | $name.pc.in) |
11 | ||
12 | build() { | |
13 | local NSPR_LIBS NSPR_CFLAGS NSPR_VERSION | |
14 | ||
15 | cd $name-$version/nspr | |
16 | ||
17 | ./configure \ | |
18 | --prefix=/usr \ | |
19 | --libdir=/usr/lib \ | |
20 | --includedir=/usr/include/nspr \ | |
21 | --enable-optimize="$CFLAGS" \ | |
22 | --disable-debug | |
23 | ||
24 | make | |
25 | make DESTDIR=$PKG install | |
26 | ||
27 | NSPR_LIBS=`./config/nspr-config --libs` | |
28 | NSPR_CFLAGS=`./config/nspr-config --cflags` | |
29 | NSPR_VERSION=`./config/nspr-config --version` | |
30 | ||
31 | install -d $PKG/usr/lib/pkgconfig | |
32 | ||
33 | sed $SRC/nspr.pc.in \ | |
34 | -e "s,@libdir@,/usr/lib," \ | |
35 | -e "s,@prefix@,/usr," \ | |
36 | -e "s,@exec_prefix@,/usr/bin," \ | |
37 | -e "s,@includedir@,/usr/include/nspr," \ | |
38 | -e "s,@NSPR_VERSION@,$NSPR_VERSION," \ | |
39 | -e "s,@FULL_NSPR_LIBS@,$NSPR_LIBS," \ | |
40 | -e "s,@FULL_NSPR_CFLAGS@,$NSPR_CFLAGS," > \ | |
41 | $PKG/usr/lib/pkgconfig/nspr.pc | |
42 | ||
43 | rm $PKG/usr/bin/{compile-et.pl,prerr.properties} | |
44 | rm -r $PKG/usr/include/nspr/md | |
45 | } |