CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
python: updated release
[ports/opt-arm.git] / nspr / Pkgfile
CommitLineData
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
6name=nspr
ea25d74b 7version=4.18
4d8a3c90 8release=1
3808db1e 9source=(https://ftp.mozilla.org/pub/nspr/releases/v$version/src/$name-$version.tar.gz
4d8a3c90
VM
10 $name.pc.in)
11
12build() {
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}