wok-next view fltk/receipt @ rev 20249

lincity-ng: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 07 12:01:40 2017 +0100 (2017-11-07)
parents 6645caf6acbf
children dd145c435e4b
line source
1 # SliTaz package receipt v2.
3 PACKAGE="fltk"
4 VERSION="1.3.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Fast Light Tool Kit (provide fluid)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2"
9 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
10 WEB_SITE="http://www.fltk.org/"
11 WGET_URL="http://fltk.org/pub/fltk/$VERSION/$TARBALL"
12 HOST_ARCH="i486 arm"
14 BUILD_DEPENDS="jpeg-dev libpng-dev libglu-mesa libglu-mesa-dev mesa mesa-dev \
15 xorg-libXinerama-dev xorg-libXft-dev \
16 xorg-libXft fontconfig xorg-libX11-dev xorg-libXinerama \
17 xorg-libXfixes"
18 SPLIT="fltk-dev fltk-doc fltk-blocks fltk-checkers fltk-colbrowser fltk-editor \
19 fltk-sudoku"
21 # Handle cross compilation.
22 case "$ARCH" in
23 #i?86)
24 # ARCH_ARGS="--with-archflags=i386" ;;
25 arm)
26 BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXft-dev"
27 ARCH_ARGS="--x-includes=/cross/$ARCH/sysroot/usr/include \
28 --x-libraries=/cross/$ARCH/sysroot/usr/lib" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 patch -p0 < $stuff/Fl_XFont_On_Demand.patch
35 ./configure ${ARCH_ARGS} \
36 --enable-shared \
37 --enable-xft \
38 --enable-threads \
39 $CONFIGURE_ARGS &&
40 make lib $MAKEFLAGS &&
41 make DESTDIR=$DESTDIR install &&
42 cd test
43 [ -x ./blocks ] || make blocks
44 [ -x ./checkers ] || make checkers
45 rm -f colbrowser
46 sed -i s'#"rgb.txt"#"/usr/share/fltk/rgb.txt"#' colbrowser.cxx &&
47 make colbrowser
48 [ -x ./editor ] || make editor
49 [ -x ./sudoku ] || make sudoku
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 case $PACKAGE in
56 fltk)
57 # Handle SliTaz arch
58 case "$SLITAZ_ARCH" in
59 arm*) DEPENDS="expat fontconfig freetype jpeg libpng \
60 xorg-libXft" ;;
61 *) DEPENDS="expat fontconfig freetype libpng jpeg xorg-libX11 \
62 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft \
63 xorg-libXrender zlib gcc-lib-base mesa libglu-mesa"
64 esac
65 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share/pixmaps
66 cp -a $install/usr/bin/fluid $fs/usr/bin
67 cp -a $install/usr/lib/*.so* $fs/usr/lib
68 cp $src/fluid/icons/fluid-32.png $fs/usr/share/pixmaps/fluid.png
69 ;;
70 fltk-dev)
71 CAT="development|Fast Light Tool Kit devel files."
72 DEPENDS="fltk xorg-libX11-dev xorg-libXinerama"
73 mkdir -p $fs/usr/bin $fs/usr/lib
74 cp -a $install/usr/bin/fltk-config $fs/usr/bin
75 cp -a $install/usr/lib/*.*a $fs/usr/lib
76 cp -a $install/usr/include $fs/usr
77 ;;
78 fltk-doc)
79 CAT="development|Fast Light Tool Kit documentation and examples."
80 mkdir -p $fs/usr/share
81 cp -a $install/usr/share/doc $fs/usr/share
82 ;;
83 fltk-blocks)
84 CAT="games|FLTK Blocks game."
85 DEPENDS="fltk"
86 mkdir -p $fs/usr/games $fs/usr/share/pixmaps \
87 $fs/usr/share/applications
88 cp -a ${src}/test/blocks $fs/usr/games/$PACKAGE
89 cp ${src}/test/desktop/blocks-32.png \
90 $fs/usr/share/pixmaps/$PACKAGE.png
91 cp $stuff/$PACKAGE.desktop $fs/usr/share/applications
92 ;;
93 fltk-checkers)
94 CAT="games|FLTK Checkers game."
95 DEPENDS="fltk"
96 mkdir -p $fs/usr/games $fs/usr/share/pixmaps \
97 $fs/usr/share/applications
98 cp -a ${src}/test/checkers $fs/usr/games/$PACKAGE
99 cp ${src}/test/desktop/checkers-32.png \
100 $fs/usr/share/pixmaps/$PACKAGE.png
101 cp $stuff/$PACKAGE.desktop $fs/usr/share/applications
102 ;;
103 fltk-colbrowser)
104 CAT="graphics|FLT Color browser."
105 DEPENDS="fltk xorg-libXinerama"
106 mkdir -p $fs/usr/bin $fs/usr/share/fltk \
107 $fs/usr/share/applications
108 cp -a ${src}/test/colbrowser ${fs}/usr/bin/$PACKAGE
109 cp ${src}/test/rgb.txt ${fs}/usr/share/fltk
110 cp $stuff/$PACKAGE.desktop $fs/usr/share/applications
111 ;;
112 fltk-editor)
113 CAT="development|Fast Light Tool Kit text editor."
114 DEPENDS="fltk"
115 mkdir -p $fs/usr/bin $fs/usr/share/applications
116 cp -a ${src}/test/editor $fs/usr/bin/$PACKAGE
117 cp $stuff/$PACKAGE.desktop $fs/usr/share/applications
118 ;;
119 fltk-sudoku)
120 CAT="games|FLTK Sudoku game."
121 DEPENDS="fltk"
122 mkdir -p $fs/usr/games $fs/usr/share/pixmaps \
123 $fs/usr/share/applications
124 cp -a ${src}/test/sudoku $fs/usr/games/$PACKAGE
125 cp ${src}/test/desktop/sudoku-32.png \
126 $fs/usr/share/pixmaps/$PACKAGE.png
127 cp $stuff/$PACKAGE.desktop $fs/usr/share/applications
128 ;;
129 esac
130 }