wok-next diff libsdl2-image/receipt @ rev 20404

Up cookutils (1019)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Dec 07 14:34:32 2017 +0200 (2017-12-07)
parents 6c18318f82e7
children c4e53a39395a
line diff
     1.1 --- a/libsdl2-image/receipt	Wed Sep 10 10:52:10 2014 +0200
     1.2 +++ b/libsdl2-image/receipt	Thu Dec 07 14:34:32 2017 +0200
     1.3 @@ -1,31 +1,34 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libsdl2-image"
     1.8 -SOURCE="SDL2_image"
     1.9 -VERSION="2.0.0"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="An image file loading library."
    1.12 +VERSION="2.0.1"
    1.13 +CATEGORY="graphics"
    1.14 +SHORT_DESC="An image file loading library"
    1.15  MAINTAINER="tcg.thegamer@gmail.com"
    1.16  LICENSE="LGPL2.1"
    1.17 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.18  WEB_SITE="http://www.libsdl.org/projects/SDL_image/"
    1.19 -WGET_URL="http://www.libsdl.org/projects/SDL_image/release/$TARBALL"
    1.20  HOST_ARCH="i486 arm"
    1.21  
    1.22 -DEPENDS="libsdl2 libpng jpeg zlib tiff"
    1.23 -BUILD_DEPENDS="libsdl2-dev libpng-dev jpeg-dev zlib-dev tiff-dev"
    1.24 +TARBALL="SDL2_image-$VERSION.tar.gz"
    1.25 +WGET_URL="http://www.libsdl.org/projects/SDL_image/release/$TARBALL"
    1.26  
    1.27 -# Rules to configure and make the package.
    1.28 -compile_rules()
    1.29 -{
    1.30 -	./configure $CONFIGURE_ARGS \
    1.31 -		LIBS=" -lz " &&
    1.32 -	make && make install
    1.33 +BUILD_DEPENDS="libsdl2-dev libjpeg-turbo-dev libpng16-dev tiff-dev libwebp-dev"
    1.34 +SPLIT="libsdl2-image-dev"
    1.35 +
    1.36 +compile_rules() {
    1.37 +	./configure $CONFIGURE_ARGS && make && make install
    1.38  }
    1.39  
    1.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 -genpkg_rules()
    1.42 -{
    1.43 -	mkdir -p $fs/usr/lib
    1.44 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.45 +genpkg_rules() {
    1.46 +	case $PACKAGE in
    1.47 +		libsdl2-image)
    1.48 +			copy @std
    1.49 +			DEPENDS="libsdl2 tslib"
    1.50 +			SUGGESTED="libjpeg-turbo libpng16 tiff libwebp"
    1.51 +			;;
    1.52 +		*-dev)
    1.53 +			copy @dev
    1.54 +			DEPENDS="libsdl2-image libsdl2-dev tslib-dev"
    1.55 +			;;
    1.56 +	esac
    1.57  }