wok-next diff libsdl-gfx/receipt @ rev 19965

Up frogatto, glew, gtkspell3, libsdl-gfx, libsdl-image, libsdl-mixer, libsdl-net, libsdl-pango, libsdl-ttf, osmo.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 17 13:43:41 2017 +0300 (2017-10-17)
parents d3eb5f4b53ea
children 5841522533ec
line diff
     1.1 --- a/libsdl-gfx/receipt	Thu Mar 26 09:34:19 2015 +0100
     1.2 +++ b/libsdl-gfx/receipt	Tue Oct 17 13:43:41 2017 +0300
     1.3 @@ -1,28 +1,35 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libsdl-gfx"
     1.8 -SOURCE="SDL_gfx"
     1.9 -VERSION="2.0.23"
    1.10 +VERSION="2.0.26"
    1.11  CATEGORY="x-window"
    1.12 -SHORT_DESC="SDL gfx support."
    1.13 +SHORT_DESC="SDL gfx support"
    1.14  MAINTAINER="pankso@slitaz.org"
    1.15  LICENSE="LGPL"
    1.16 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://www.ferzkopp.net/joomla/content/view/19/14/"
    1.18 -WGET_URL="http://www.ferzkopp.net/Software/SDL_gfx-${VERSION%.*}/$TARBALL"
    1.19 +WEB_SITE="http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/"
    1.20  
    1.21 -DEPENDS="libsdl"
    1.22 -BUILD_DEPENDS="libsdl-dev"
    1.23 +TARBALL="SDL_gfx-$VERSION.tar.gz"
    1.24 +WGET_URL="http://www.ferzkopp.net/Software/SDL_gfx-2.0/$TARBALL"
    1.25  
    1.26 -# Rules to configure and make the package.
    1.27 -compile_rules()
    1.28 -{
    1.29 +BUILD_DEPENDS="automake libtool xorg-libX11-dev xorg-libICE-dev libsdl-dev"
    1.30 +SPLIT="libsdl-gfx-dev"
    1.31 +
    1.32 +compile_rules() {
    1.33 +	sed -i 's|/usr/local/|/usr/|' autogen.sh
    1.34 +	./autogen.sh &&
    1.35 +
    1.36  	./configure $CONFIGURE_ARGS && make && make 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 +genpkg_rules() {
    1.45 +	case $PACKAGE in
    1.46 +		libsdl-gfx)
    1.47 +			copy @std
    1.48 +			DEPENDS="libsdl"
    1.49 +			;;
    1.50 +		*-dev)
    1.51 +			copy @dev
    1.52 +			DEPENDS="libsdl-gfx libsdl-dev"
    1.53 +			;;
    1.54 +	esac
    1.55  }