nspr: syntax
This commit is contained in:
parent
1fb5147c6e
commit
23492abce8
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/Q6YbXSfSQqhvh7LdghMyRTyHB1GfX+mTiqj5CI6GaO5gr43PMoRZgZSRj8B+SAi0dUorFSlGsenfQPveUNCywc=
|
||||
SHA256 (Pkgfile) = b86600e8563a4244767ed8e6e3aa2600b5ffed8c1fd9a796ddca05be64e77461
|
||||
RWSE3ohX2g5d/b4e8+yfrXwqbXUcyeQLkvCunuLK7XKzgrkhPxZZYx5tL/VOXuCot7jtheTEmoOQOii+EgQVZq3YplzbPTT2mwM=
|
||||
SHA256 (Pkgfile) = b3e1b96411d37ab82091e6b39022b8c26c9f9aecd10d0f17f6e3765a4042b7aa
|
||||
SHA256 (.footprint) = ca5a9f3ef9c25bbb9276ddaf58e30935286f63deee679e7268d602e09f9934af
|
||||
SHA256 (nspr-4.33.tar.gz) = b23ee315be0e50c2fb1aa374d17f2d2d9146a835b1a79c1918ea15d075a693d7
|
||||
SHA256 (nspr.pc.in) = 57a655d034221760ce10278d2050bbe040b1db55be3db6e3a30f04a570877b71
|
||||
|
54
nspr/Pkgfile
54
nspr/Pkgfile
@ -6,40 +6,40 @@ name=nspr
|
||||
version=4.33
|
||||
release=1
|
||||
source=(https://ftp.mozilla.org/pub/nspr/releases/v$version/src/$name-$version.tar.gz
|
||||
$name.pc.in)
|
||||
$name.pc.in)
|
||||
|
||||
build() {
|
||||
local NSPR_LIBS NSPR_CFLAGS NSPR_VERSION
|
||||
local NSPR_LIBS NSPR_CFLAGS NSPR_VERSION
|
||||
|
||||
cd $name-$version/nspr
|
||||
cd $name-$version/nspr
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib \
|
||||
--includedir=/usr/include/nspr \
|
||||
--enable-optimize="$CFLAGS" \
|
||||
--enable-64bit \
|
||||
--disable-debug
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib \
|
||||
--includedir=/usr/include/nspr \
|
||||
--enable-optimize="$CFLAGS" \
|
||||
--enable-64bit \
|
||||
--disable-debug
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
NSPR_LIBS=`./config/nspr-config --libs`
|
||||
NSPR_CFLAGS=`./config/nspr-config --cflags`
|
||||
NSPR_VERSION=`./config/nspr-config --version`
|
||||
NSPR_LIBS=`./config/nspr-config --libs`
|
||||
NSPR_CFLAGS=`./config/nspr-config --cflags`
|
||||
NSPR_VERSION=`./config/nspr-config --version`
|
||||
|
||||
install -d $PKG/usr/lib/pkgconfig
|
||||
install -d $PKG/usr/lib/pkgconfig
|
||||
|
||||
sed $SRC/nspr.pc.in \
|
||||
-e "s,@libdir@,/usr/lib," \
|
||||
-e "s,@prefix@,/usr," \
|
||||
-e "s,@exec_prefix@,/usr/bin," \
|
||||
-e "s,@includedir@,/usr/include/nspr," \
|
||||
-e "s,@NSPR_VERSION@,$NSPR_VERSION," \
|
||||
-e "s,@FULL_NSPR_LIBS@,$NSPR_LIBS," \
|
||||
-e "s,@FULL_NSPR_CFLAGS@,$NSPR_CFLAGS," > \
|
||||
$PKG/usr/lib/pkgconfig/nspr.pc
|
||||
sed $SRC/nspr.pc.in \
|
||||
-e "s,@libdir@,/usr/lib," \
|
||||
-e "s,@prefix@,/usr," \
|
||||
-e "s,@exec_prefix@,/usr/bin," \
|
||||
-e "s,@includedir@,/usr/include/nspr," \
|
||||
-e "s,@NSPR_VERSION@,$NSPR_VERSION," \
|
||||
-e "s,@FULL_NSPR_LIBS@,$NSPR_LIBS," \
|
||||
-e "s,@FULL_NSPR_CFLAGS@,$NSPR_CFLAGS," > \
|
||||
$PKG/usr/lib/pkgconfig/nspr.pc
|
||||
|
||||
rm $PKG/usr/bin/{compile-et.pl,prerr.properties}
|
||||
rm -r $PKG/usr/include/nspr/md
|
||||
rm $PKG/usr/bin/{compile-et.pl,prerr.properties}
|
||||
rm -r $PKG/usr/include/nspr/md
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user