wok rev 16357
ARM: add fltk with fltk-editor and fltk-sudoku
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 13 21:08:41 2014 +0200 (2014-04-13) |
parents | 06fa248c42f5 |
children | c06681dd5278 |
files | fltk-dev/receipt fltk-editor/receipt fltk-editor/stuff/fltk-editor.desktop fltk-sudoku/receipt fltk-sudoku/stuff/fltk-sudoku.desktop fltk/receipt |
line diff
1.1 --- a/fltk-dev/receipt Sun Apr 13 16:52:40 2014 +0000 1.2 +++ b/fltk-dev/receipt Sun Apr 13 21:08:41 2014 +0200 1.3 @@ -8,6 +8,7 @@ 1.4 MAINTAINER="pankso@slitaz.org" 1.5 LICENSE="LGPL2" 1.6 WEB_SITE="http://www.fltk.org/" 1.7 +HOST_ARCH="i486 arm" 1.8 1.9 DEPENDS="fltk" 1.10
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/fltk-editor/receipt Sun Apr 13 21:08:41 2014 +0200 2.3 @@ -0,0 +1,26 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="fltk-editor" 2.7 +VERSION="1.3.2" 2.8 +CATEGORY="development" 2.9 +SHORT_DESC="Fast Light Tool Kit documentation and examples." 2.10 +WANTED="fltk" 2.11 +MAINTAINER="pankso@slitaz.org" 2.12 +LICENSE="LGPL2" 2.13 +WEB_SITE="http://www.fltk.org/" 2.14 +HOST_ARCH="i486 arm" 2.15 + 2.16 +# Rules to configure and make the package. 2.17 +compile_rules() 2.18 +{ 2.19 + cd ${src}/test && 2.20 + [ -x ./editor ] || make editor 2.21 + make sudoku 2.22 +} 2.23 + 2.24 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.25 +genpkg_rules() 2.26 +{ 2.27 + mkdir -p $fs/usr/bin 2.28 + cp -a ${src}/test/editor $fs/usr/bin/$PACKAGE 2.29 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/fltk-editor/stuff/fltk-editor.desktop Sun Apr 13 21:08:41 2014 +0200 3.3 @@ -0,0 +1,7 @@ 3.4 +[Desktop Entry] 3.5 +Name=FLTK Text Editor 3.6 +Exec=fltk-editor 3.7 +Icon=text-editor 3.8 +Terminal=false 3.9 +Type=Application 3.10 +Categories=Utility;
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/fltk-sudoku/receipt Sun Apr 13 21:08:41 2014 +0200 4.3 @@ -0,0 +1,26 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="fltk-sudoku" 4.7 +VERSION="1.3.2" 4.8 +CATEGORY="games" 4.9 +SHORT_DESC="FLT Sudoku game." 4.10 +WANTED="fltk" 4.11 +MAINTAINER="pankso@slitaz.org" 4.12 +LICENSE="LGPL2" 4.13 +WEB_SITE="http://www.fltk.org/" 4.14 +HOST_ARCH="i486 arm" 4.15 + 4.16 +# Rules to configure and make the package. 4.17 +compile_rules() 4.18 +{ 4.19 + cd ${src}/test && 4.20 + [ -x ./sudoku ] || make sudoku 4.21 +} 4.22 + 4.23 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.24 +genpkg_rules() 4.25 +{ 4.26 + mkdir -p $fs/usr/games $fs/usr/pixmaps 4.27 + cp -a ${src}/test/editor $fs/usr/games/$PACKAGE 4.28 + cp -a ${src}/test/desktop/sudoku-128.png $fs/usr/pixmaps/$PACKAGE.png 4.29 +}
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/fltk-sudoku/stuff/fltk-sudoku.desktop Sun Apr 13 21:08:41 2014 +0200 5.3 @@ -0,0 +1,7 @@ 5.4 +[Desktop Entry] 5.5 +Name=FLTK Sudoku 5.6 +Exec=fltk-sudoku 5.7 +Icon=fltk-sudoku 5.8 +Terminal=false 5.9 +Type=Application 5.10 +Categories=Game;LogicGame;
6.1 --- a/fltk/receipt Sun Apr 13 16:52:40 2014 +0000 6.2 +++ b/fltk/receipt Sun Apr 13 21:08:41 2014 +0200 6.3 @@ -9,28 +9,38 @@ 6.4 TARBALL="$PACKAGE-$VERSION-source.tar.gz" 6.5 WEB_SITE="http://www.fltk.org/" 6.6 WGET_URL="http://fltk.org/pub/fltk/$VERSION/$TARBALL" 6.7 -#HOST_ARCH="i486 arm" 6.8 +HOST_ARCH="i486 arm" 6.9 6.10 DEPENDS="expat fontconfig freetype libpng jpeg xorg-libX11 xorg-libXau xorg-libXdmcp \ 6.11 xorg-libXext xorg-libXft xorg-libXrender zlib libpng gcc-lib-base mesa libglu-mesa" 6.12 BUILD_DEPENDS="jpeg-dev libpng-dev libglu-mesa libglu-mesa-dev mesa mesa-dev" 6.13 6.14 +# Handle SliTaz arch 6.15 +case "$SLITAZ_ARCH" in 6.16 + arm*) DEPENDS="$DEPENDS expat fontconfig freetype jpeg libpng xorg-libXft" ;; 6.17 +esac 6.18 + 6.19 # Handle cross compilation. 6.20 case "$ARCH" in 6.21 - arm) BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXft-dev" ;; 6.22 + i?86) ARCH_ARGS="--with-archflags=i386" ;; 6.23 + arm) 6.24 + BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXft-dev" 6.25 + ARCH_ARGS="--x-includes=/cross/$ARCH/sysroot/usr/include" ;; 6.26 esac 6.27 6.28 # Rules to configure and make the package. 6.29 compile_rules() 6.30 { 6.31 - ./configure \ 6.32 + sed -i \ 6.33 + -e 's/$(LINKFLTK)/$(LINKSHARED)/' \ 6.34 + -e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile 6.35 + ./configure ${ARCH_ARGS} \ 6.36 --enable-shared \ 6.37 --enable-xft \ 6.38 --enable-threads \ 6.39 - --x-includes=/cross/arm/sysroot/usr/include \ 6.40 - --x-libraries=/cross/arm/sysroot/usr/lib \ 6.41 + --x-libraries=/cross/$ARCH/sysroot/usr/lib \ 6.42 $CONFIGURE_ARGS && 6.43 - make $MAKEFLAGS && 6.44 + make lib $MAKEFLAGS && 6.45 make DESTDIR=$DESTDIR install 6.46 } 6.47