wok-next diff libsdl-ttf/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 4cd474907d60
children c4e53a39395a
line diff
     1.1 --- a/libsdl-ttf/receipt	Wed Apr 02 10:38:57 2014 +0200
     1.2 +++ b/libsdl-ttf/receipt	Tue Oct 17 13:43:41 2017 +0300
     1.3 @@ -1,30 +1,35 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libsdl-ttf"
     1.8 -SOURCE="SDL_ttf"
     1.9 -VERSION="2.0.10"
    1.10 +VERSION="2.0.11" # version 1.2.2 the last from 1.2 series, but it need freetype1
    1.11  CATEGORY="x-window"
    1.12 -SHORT_DESC="SDL ttf support."
    1.13 +SHORT_DESC="SDL ttf support"
    1.14  MAINTAINER="pankso@slitaz.org"
    1.15  LICENSE="LGPL2.1"
    1.16 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://www.libsdl.org/projects/SDL_ttf/"
    1.18 -WGET_URL="http://www.libsdl.org/projects/SDL_ttf/release/$TARBALL"
    1.19 +WEB_SITE="http://www.libsdl.org/projects/SDL_ttf/release-1.2.html"
    1.20  HOST_ARCH="i486 arm"
    1.21  
    1.22 -DEPENDS="libsdl freetype zlib"
    1.23 +TARBALL="SDL_ttf-$VERSION.tar.gz"
    1.24 +WGET_URL="http://www.libsdl.org/projects/SDL_ttf/release/$TARBALL"
    1.25 +
    1.26  BUILD_DEPENDS="libsdl-dev freetype-dev"
    1.27 +SPLIT="libsdl-ttf-dev"
    1.28  
    1.29 -# Rules to configure and make the package.
    1.30 -compile_rules()
    1.31 -{
    1.32 -	./configure $CONFIGURE_ARGS &&
    1.33 -	make && make install
    1.34 +compile_rules() {
    1.35 +	./configure $CONFIGURE_ARGS && make && make install
    1.36  }
    1.37  
    1.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.39 -genpkg_rules()
    1.40 -{
    1.41 -	mkdir -p $fs/usr/lib
    1.42 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.43 +genpkg_rules() {
    1.44 +	case $PACKAGE in
    1.45 +		libsdl-ttf)
    1.46 +			copy @std
    1.47 +			DEPENDS="bzlib freetype glib libharfbuzz libpng16 libsdl pcre \
    1.48 +			zlib"
    1.49 +			;;
    1.50 +		*-dev)
    1.51 +			copy @dev
    1.52 +			DEPENDS="libsdl-ttf bzip2-dev freetype-dev glib-dev harfbuzz-dev \
    1.53 +			libpng16-dev libsdl-dev pcre-dev zlib-dev"
    1.54 +			;;
    1.55 +	esac
    1.56  }