wok-next diff libpano13/receipt @ rev 20528

Up tzdata (2018d)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Mar 24 11:10:32 2018 +0200 (2018-03-24)
parents dd145c435e4b
children 9e5dca6702bf
line diff
     1.1 --- a/libpano13/receipt	Wed Feb 28 17:32:31 2018 +0200
     1.2 +++ b/libpano13/receipt	Sat Mar 24 11:10:32 2018 +0200
     1.3 @@ -1,34 +1,40 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libpano13"
     1.8  VERSION="2.9.18"
     1.9  CATEGORY="development"
    1.10 -SHORT_DESC="Panorama tools library."
    1.11 +SHORT_DESC="Panorama tools library"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://panotools.sourceforge.net/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://panotools.sourceforge.net/"
    1.18  WGET_URL="$SF_MIRROR/panotools/$TARBALL"
    1.19  
    1.20 -DEPENDS="libpng16 jpeg tiff"
    1.21  BUILD_DEPENDS="bash libpng16-dev jpeg-dev tiff-dev"
    1.22 +SPLIT="libpano13-dev"
    1.23  
    1.24 -# Rules to configure and make the package.
    1.25 -compile_rules()
    1.26 -{
    1.27 -	cd $src
    1.28 -	./configure --prefix=/usr \
    1.29 -		--build=$HOST_SYSTEM \
    1.30 -		--host=$HOST_SYSTEM &&
    1.31 +compile_rules() {
    1.32 +	./configure \
    1.33 +		--prefix=/usr \
    1.34 +		$CONFIGURE_ARGS &&
    1.35  	make &&
    1.36  	make DESTDIR=$DESTDIR install
    1.37  }
    1.38  
    1.39 -# Rules to gen a SliTaz package suitable for Tazpkg.   
    1.40 -genpkg_rules()                                      
    1.41 -{
    1.42 -	mkdir -p $fs/usr/lib
    1.43 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.44 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.45 -	cp -a $install/usr/bin $fs/usr
    1.46 +genpkg_rules() {
    1.47 +	case $PACKAGE in
    1.48 +		libpano13)
    1.49 +			mkdir -p $fs/usr/lib
    1.50 +			cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.51 +			cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.52 +			cp -a $install/usr/bin $fs/usr
    1.53 +			DEPENDS="libpng16 jpeg tiff"
    1.54 +			;;
    1.55 +		*-dev)
    1.56 +			mkdir -p $fs/usr/lib
    1.57 +			cp -a $install/usr/include $fs/usr
    1.58 +			cp -a $install/usr/lib/*a $fs/usr/lib
    1.59 +			;;
    1.60 +	esac
    1.61  }