wok-current rev 15998

Add LiTE - DirectFB toolkit
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 02 18:23:06 2014 +0100 (2014-03-02)
parents f730b5689911
children 0fa6869e0b4b
files lite-dev/receipt lite/receipt lite/stuff/lite_fix_pkgconfig.patch lite/stuff/lite_fix_stat_naming.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lite-dev/receipt	Sun Mar 02 18:23:06 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="lite-dev"
     1.7 +VERSION="0.8.10"
     1.8 +CATEGORY="graphics"
     1.9 +SHORT_DESC="DirectFB - LiTE devel files"
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +WANTED="lite"
    1.13 +WEB_SITE="http://www.directfb.org/index.php?path=Platform/LiTE"
    1.14 +HOST_ARCH="i486 arm"
    1.15 +
    1.16 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 +genpkg_rules()
    1.18 +{
    1.19 +	mkdir -p $fs/usr/lib
    1.20 +	cp -a $install/usr/include $fs/usr
    1.21 +	cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.22 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.23 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/lite/receipt	Sun Mar 02 18:23:06 2014 +0100
     2.3 @@ -0,0 +1,42 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="lite"
     2.7 +VERSION="0.8.10"
     2.8 +CATEGORY="graphics"
     2.9 +SHORT_DESC="LiTE is a Toolkit Engine using DirectFB"
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +LICENSE="GPL2"
    2.12 +SOURCE="LiTE"
    2.13 +TARBALL="${SOURCE}-${VERSION}.tar.gz"
    2.14 +WEB_SITE="http://www.directfb.org/index.php?path=Platform/LiTE"
    2.15 +WGET_URL="http://www.directfb.org/downloads/Libs/$TARBALL"
    2.16 +HOST_ARCH="i486 arm"
    2.17 +
    2.18 +DEPENDS="directfb"
    2.19 +BUILD_DEPENDS="directfb-dev"
    2.20 +
    2.21 +# Handle cross compilation.
    2.22 +case "$ARCH" in
    2.23 +	arm) 
    2.24 +		export LDFLAGS="-L/cross/arm/sysroot/usr/lib"
    2.25 +		export CPPFLAGS="-I/cross/arm/sysroot/usr/include/directfb" ;;
    2.26 +esac
    2.27 +
    2.28 +# Rules to configure and make the package.
    2.29 +compile_rules()
    2.30 +{
    2.31 +	patch -Np1 -i ${stuff}/lite_fix_stat_naming.patch || return 1
    2.32 +	patch -Np1 -i ${stuff}/lite_fix_pkgconfig.patch || return 1
    2.33 +	 ./configure \
    2.34 +		$CONFIGURE_ARGS &&
    2.35 +	make && make install
    2.36 +}
    2.37 +
    2.38 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.39 +genpkg_rules()
    2.40 +{
    2.41 +	mkdir -p $fs/usr/lib
    2.42 +	cp -a $install/usr/bin $fs/usr
    2.43 +	cp -a $install/usr/share $fs/usr
    2.44 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.45 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/lite/stuff/lite_fix_pkgconfig.patch	Sun Mar 02 18:23:06 2014 +0100
     3.3 @@ -0,0 +1,9 @@
     3.4 +diff -upr LiTE-0.8.10.orig/lite.pc.in LiTE-0.8.10/lite.pc.in
     3.5 +--- LiTE-0.8.10.orig/lite.pc.in	2008-06-20 23:34:10.000000000 +0200
     3.6 ++++ LiTE-0.8.10/lite.pc.in	2013-06-29 09:56:37.910000014 +0200
     3.7 +@@ -9,4 +9,4 @@ Description: "LiTE" is a Toolkit Engine
     3.8 + Requires: directfb >= @DFB_REQUIRED_VERSION@
     3.9 + Version: @VERSION@
    3.10 + Libs: -L${libdir} -llite
    3.11 +-Cflags: -I${includedir} -DLITEFONTDIR=\\\"@LITEFONTDIR@\\\"
    3.12 ++Cflags: -I${includedir} -DLITEFONTDIR=\"@LITEFONTDIR@\"
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/lite/stuff/lite_fix_stat_naming.patch	Sun Mar 02 18:23:06 2014 +0100
     4.3 @@ -0,0 +1,12 @@
     4.4 +diff -upr LiTE-0.8.10.orig/examples/dfbspy.c LiTE-0.8.10/examples/dfbspy.c
     4.5 +--- LiTE-0.8.10.orig/examples/dfbspy.c	2013-06-23 17:01:22.360000002 +0200
     4.6 ++++ LiTE-0.8.10/examples/dfbspy.c	2013-06-23 17:07:03.370000001 +0200
     4.7 +@@ -45,6 +45,8 @@
     4.8 + #include <leck/label.h>
     4.9 + #include <leck/textline.h>
    4.10 + 
    4.11 ++#define stat cur_stat
    4.12 ++
    4.13 + /**************************************************************************************************/
    4.14 + 
    4.15 + typedef struct {