wok-next diff libsdl-image/receipt @ rev 20206
Up PyQt-x11-gpl (4.12.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 04 09:19:58 2017 +0100 (2017-11-04) |
parents | 4cd474907d60 |
children | c4e53a39395a |
line diff
1.1 --- a/libsdl-image/receipt Wed Apr 02 10:38:57 2014 +0200 1.2 +++ b/libsdl-image/receipt Sat Nov 04 09:19:58 2017 +0100 1.3 @@ -1,31 +1,33 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libsdl-image" 1.8 -SOURCE="SDL_image" 1.9 -VERSION="1.2.10" 1.10 +VERSION="1.2.12" 1.11 CATEGORY="development" 1.12 -SHORT_DESC="An image file loading library." 1.13 +SHORT_DESC="An image file loading library" 1.14 MAINTAINER="chadi.elahmad@gmail.com" 1.15 LICENSE="LGPL2.1" 1.16 -TARBALL="$SOURCE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://www.libsdl.org/projects/SDL_image/" 1.18 -WGET_URL="http://www.libsdl.org/projects/SDL_image/release/$TARBALL" 1.19 +WEB_SITE="http://www.libsdl.org/projects/SDL_image/release-1.2.html" 1.20 HOST_ARCH="i486 arm" 1.21 1.22 -DEPENDS="libsdl libpng jpeg zlib tiff" 1.23 -BUILD_DEPENDS="libsdl-dev libpng-dev jpeg-dev zlib-dev tiff-dev" 1.24 +TARBALL="SDL_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="libsdl-dev libjpeg-turbo-dev libpng16-dev tiff-dev libwebp-dev" 1.34 +SPLIT="libsdl-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 + libsdl-image) 1.48 + copy @std 1.49 + DEPENDS="libsdl" 1.50 + ;; 1.51 + *-dev) 1.52 + copy @dev 1.53 + DEPENDS="libsdl-image libsdl-dev" 1.54 + ;; 1.55 + esac 1.56 }