# HG changeset patch # User Christophe Lincoln # Date 1393780986 -3600 # Node ID 3895d6099b911c4f0b4e83dc19d3b4f2a1d5f9eb # Parent f730b56899116e88cace5c9aedc5bdec9687004c Add LiTE - DirectFB toolkit diff -r f730b5689911 -r 3895d6099b91 lite-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lite-dev/receipt Sun Mar 02 18:23:06 2014 +0100 @@ -0,0 +1,20 @@ +# SliTaz package receipt. + +PACKAGE="lite-dev" +VERSION="0.8.10" +CATEGORY="graphics" +SHORT_DESC="DirectFB - LiTE devel files" +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL2" +WANTED="lite" +WEB_SITE="http://www.directfb.org/index.php?path=Platform/LiTE" +HOST_ARCH="i486 arm" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/*.*a $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib +} diff -r f730b5689911 -r 3895d6099b91 lite/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lite/receipt Sun Mar 02 18:23:06 2014 +0100 @@ -0,0 +1,42 @@ +# SliTaz package receipt. + +PACKAGE="lite" +VERSION="0.8.10" +CATEGORY="graphics" +SHORT_DESC="LiTE is a Toolkit Engine using DirectFB" +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL2" +SOURCE="LiTE" +TARBALL="${SOURCE}-${VERSION}.tar.gz" +WEB_SITE="http://www.directfb.org/index.php?path=Platform/LiTE" +WGET_URL="http://www.directfb.org/downloads/Libs/$TARBALL" +HOST_ARCH="i486 arm" + +DEPENDS="directfb" +BUILD_DEPENDS="directfb-dev" + +# Handle cross compilation. +case "$ARCH" in + arm) + export LDFLAGS="-L/cross/arm/sysroot/usr/lib" + export CPPFLAGS="-I/cross/arm/sysroot/usr/include/directfb" ;; +esac + +# Rules to configure and make the package. +compile_rules() +{ + patch -Np1 -i ${stuff}/lite_fix_stat_naming.patch || return 1 + patch -Np1 -i ${stuff}/lite_fix_pkgconfig.patch || return 1 + ./configure \ + $CONFIGURE_ARGS && + make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/share $fs/usr + cp -a $install/usr/lib/*.so* $fs/usr/lib +} diff -r f730b5689911 -r 3895d6099b91 lite/stuff/lite_fix_pkgconfig.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lite/stuff/lite_fix_pkgconfig.patch Sun Mar 02 18:23:06 2014 +0100 @@ -0,0 +1,9 @@ +diff -upr LiTE-0.8.10.orig/lite.pc.in LiTE-0.8.10/lite.pc.in +--- LiTE-0.8.10.orig/lite.pc.in 2008-06-20 23:34:10.000000000 +0200 ++++ LiTE-0.8.10/lite.pc.in 2013-06-29 09:56:37.910000014 +0200 +@@ -9,4 +9,4 @@ Description: "LiTE" is a Toolkit Engine + Requires: directfb >= @DFB_REQUIRED_VERSION@ + Version: @VERSION@ + Libs: -L${libdir} -llite +-Cflags: -I${includedir} -DLITEFONTDIR=\\\"@LITEFONTDIR@\\\" ++Cflags: -I${includedir} -DLITEFONTDIR=\"@LITEFONTDIR@\" diff -r f730b5689911 -r 3895d6099b91 lite/stuff/lite_fix_stat_naming.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lite/stuff/lite_fix_stat_naming.patch Sun Mar 02 18:23:06 2014 +0100 @@ -0,0 +1,12 @@ +diff -upr LiTE-0.8.10.orig/examples/dfbspy.c LiTE-0.8.10/examples/dfbspy.c +--- LiTE-0.8.10.orig/examples/dfbspy.c 2013-06-23 17:01:22.360000002 +0200 ++++ LiTE-0.8.10/examples/dfbspy.c 2013-06-23 17:07:03.370000001 +0200 +@@ -45,6 +45,8 @@ + #include + #include + ++#define stat cur_stat ++ + /**************************************************************************************************/ + + typedef struct {