wok rev 14156

Up: nspr (4.9.4)
author Dominique Corbex <domcox@slitaz.org>
date Tue Mar 05 22:39:14 2013 +0100 (2013-03-05)
parents 9a73af083efa
children 6aaa07a8e787
files nspr/receipt
line diff
     1.1 --- a/nspr/receipt	Tue Mar 05 21:56:58 2013 +0100
     1.2 +++ b/nspr/receipt	Tue Mar 05 22:39:14 2013 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="nspr"
     1.7 -VERSION="4.8.7"
     1.8 +VERSION="4.9.4"
     1.9  CATEGORY="utilities"
    1.10  SHORT_DESC="Netscape Portable Runtime"
    1.11  MAINTAINER="rocky@slitaz.org"
    1.12 @@ -15,29 +15,22 @@
    1.13  compile_rules()
    1.14  {
    1.15  	cd $src
    1.16 -	./mozilla/nsprpub/configure \
    1.17 +	cd mozilla/nsprpub
    1.18 +	# disable two unneeded scripts.
    1.19 +	sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in &&
    1.20 +	# disable static libraries.
    1.21 +	sed -i 's#$(LIBRARY) ##' config/rules.mk &&
    1.22 +	./configure \
    1.23  		--prefix=/usr \
    1.24  		--libdir=/usr/lib \
    1.25  		--includedir=/usr/include/nspr \
    1.26  		--enable-optimize \
    1.27  		--disable-debug \
    1.28 +		--with-mozilla \
    1.29 +		--with-pthreads \
    1.30 +		$([ $(uname -m) = x86_64 ] && echo --enable-64bit) \
    1.31  		$CONFIGURE_ARGS &&
    1.32  	make && make DESTDIR=$DESTDIR install
    1.33 -	
    1.34 -	mkdir -p $DESTDIR/usr/lib/pkgconfig
    1.35 -	NSPR_LIBS=`./config/nspr-config --libs`
    1.36 -	NSPR_CFLAGS=`./config/nspr-config --cflags`
    1.37 -	NSPR_VERSION=`./config/nspr-config --version`
    1.38 -	install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
    1.39 -	sed "$stuff/nspr.pc.in" \
    1.40 -		-e "s,%libdir%,/usr/lib," \
    1.41 -		-e "s,%prefix%,/usr," \
    1.42 -		-e "s,%exec_prefix%,/usr/bin," \
    1.43 -		-e "s,%includedir%,/usr/include/nspr," \
    1.44 -		-e "s,%NSPR_VERSION%,${NSPR_VERSION}," \
    1.45 -		-e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \
    1.46 -		-e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," > \
    1.47 -			"$DESTDIR/usr/lib/pkgconfig/nspr.pc"
    1.48  	ln -sf nspr.pc "$DESTDIR/usr/lib/pkgconfig/mozilla-nspr.pc"
    1.49  }
    1.50  
    1.51 @@ -45,7 +38,5 @@
    1.52  genpkg_rules()
    1.53  {
    1.54      mkdir -p $fs/usr/lib
    1.55 -    cp -a $_pkg/usr/bin $fs/usr
    1.56      cp -a $_pkg/usr/lib/*so* $fs/usr/lib
    1.57 -    rm $fs/usr/bin/nspr-config
    1.58  }