wok-next diff apr/receipt @ rev 20070

qtwebkit, mesa-demos: up compile_rules / (b)deps
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Wed Oct 25 00:02:43 2017 +0200 (2017-10-25)
parents 4048d48a47c1
children ab7c63b80420
line diff
     1.1 --- a/apr/receipt	Fri Apr 21 14:48:05 2017 +0300
     1.2 +++ b/apr/receipt	Wed Oct 25 00:02:43 2017 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="apr"
     1.8  VERSION="1.5.2"
     1.9 @@ -12,14 +12,12 @@
    1.10  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.11  WGET_URL="http://archive.apache.org/dist/apr/$TARBALL"
    1.12  
    1.13 -DEPENDS="util-linux-uuid"
    1.14  BUILD_DEPENDS="util-linux-uuid-dev"
    1.15 +SPLIT="apr-dev"
    1.16  
    1.17  # Rules to configure and make the package.
    1.18  compile_rules()
    1.19  {
    1.20 -	while read i; do patch -p1 -i $stuff/patches/$i; done < $stuff/patches/series
    1.21 -
    1.22  	./configure \
    1.23  		--prefix=/usr \
    1.24  		--disable-static \
    1.25 @@ -34,5 +32,14 @@
    1.26  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.27  genpkg_rules()
    1.28  {
    1.29 -	cook_copy_files *.so* *.exp
    1.30 +	case $PACKAGE in
    1.31 +		apr)
    1.32 +			copy *.so* *.exp
    1.33 +			DEPENDS="util-linux-uuid"
    1.34 +			;;
    1.35 +		apr-dev)
    1.36 +			copy @dev build/
    1.37 +			DEPENDS="apr glibc-dev util-linux-uuid-dev"
    1.38 +			;;
    1.39 +	esac
    1.40  }