wok-next rev 10399

nspr: add CONFIGURE_ARGS (also was not building properly if build and host are set in cook.site ???)
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 24 02:55:10 2011 +0200 (2011-05-24)
parents 1eb66ff13d48
children 914578fcb697
files nspr/receipt
line diff
     1.1 --- a/nspr/receipt	Tue May 24 02:30:31 2011 +0200
     1.2 +++ b/nspr/receipt	Tue May 24 02:55:10 2011 +0200
     1.3 @@ -14,29 +14,31 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -    cd $src
     1.8 -./mozilla/nsprpub/configure \
     1.9 -      --prefix=/usr \
    1.10 -      --libdir=/usr/lib \
    1.11 -      --includedir=/usr/include/nspr \
    1.12 -      --enable-optimize \
    1.13 -      --disable-debug
    1.14 -  make
    1.15 -  make DESTDIR="$PWD/_pkg" install
    1.16 -
    1.17 -  mkdir -p $PWD/_pkg/usr/lib/pkgconfig
    1.18 -  NSPR_LIBS=`./config/nspr-config --libs`
    1.19 -  NSPR_CFLAGS=`./config/nspr-config --cflags`
    1.20 -  NSPR_VERSION=`./config/nspr-config --version`
    1.21 -  install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
    1.22 -  sed "$stuff/nspr.pc.in" -e "s,%libdir%,/usr/lib," \
    1.23 -        -e "s,%prefix%,/usr," \
    1.24 -        -e "s,%exec_prefix%,/usr/bin," \
    1.25 -        -e "s,%includedir%,/usr/include/nspr," \
    1.26 -        -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \
    1.27 -        -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \
    1.28 -        -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," > "$PWD/_pkg/usr/lib/pkgconfig/nspr.pc"
    1.29 -  ln -sf nspr.pc "$PWD/_pkg/usr/lib/pkgconfig/mozilla-nspr.pc"
    1.30 +	cd $src
    1.31 +	./mozilla/nsprpub/configure \
    1.32 +		--prefix=/usr \
    1.33 +		--libdir=/usr/lib \
    1.34 +		--includedir=/usr/include/nspr \
    1.35 +		--enable-optimize \
    1.36 +		--disable-debug \
    1.37 +		$CONFIGURE_ARGS &&
    1.38 +	make && make DESTDIR=$DESTDIR install
    1.39 +	
    1.40 +	mkdir -p $DESTDIR/usr/lib/pkgconfig
    1.41 +	NSPR_LIBS=`./config/nspr-config --libs`
    1.42 +	NSPR_CFLAGS=`./config/nspr-config --cflags`
    1.43 +	NSPR_VERSION=`./config/nspr-config --version`
    1.44 +	install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
    1.45 +	sed "$stuff/nspr.pc.in" \
    1.46 +		-e "s,%libdir%,/usr/lib," \
    1.47 +		-e "s,%prefix%,/usr," \
    1.48 +		-e "s,%exec_prefix%,/usr/bin," \
    1.49 +		-e "s,%includedir%,/usr/include/nspr," \
    1.50 +		-e "s,%NSPR_VERSION%,${NSPR_VERSION}," \
    1.51 +		-e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \
    1.52 +		-e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," > \
    1.53 +			"$DESTDIR/usr/lib/pkgconfig/nspr.pc"
    1.54 +	ln -sf nspr.pc "$DESTDIR/usr/lib/pkgconfig/mozilla-nspr.pc"
    1.55  }
    1.56  
    1.57  # Rules to gen a SliTaz package suitable for Tazpkg.