wok-next view fltk/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents 262dccc5e3ed
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="fltk"
4 VERSION="1.3.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="Fast Light Tool Kit"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="LGPL2"
9 WEB_SITE="https://www.fltk.org/index.php"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/fltk.html"
12 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
13 WGET_URL="https://fltk.org/pub/fltk/$VERSION/$TARBALL"
15 BUILD_DEPENDS="alsa-lib-dev freetype-dev libice-dev libjpeg-turbo-dev
16 libpng-dev libsm-dev libx11-dev libxcursor-dev libxft-dev
17 libxinerama-dev mesa-dev xprop zlib-dev"
18 SPLIT="$PACKAGE-blocks $PACKAGE-checkers $PACKAGE-sudoku
19 $PACKAGE-colbrowser $PACKAGE-editor $PACKAGE-doc
20 $PACKAGE $PACKAGE-dev"
22 COOKOPTS="!menus"
24 compile_rules()
25 {
26 sed -i -e '/cat./d' \
27 documentation/Makefile
29 ./configure \
30 --enable-shared \
31 --enable-xft \
32 --enable-threads \
33 $CONFIGURE_ARGS &&
34 sed -i 's| -shared | -Wl,-Os,--as-needed\0|g' \
35 makeinclude &&
36 sed -i s'#"rgb.txt"#"/usr/share/fltk/rgb.txt"#' \
37 test/colbrowser.cxx &&
39 make $MAKEFLAGS &&
40 make DESTDIR=$install install || return 1
42 sed -i '/mimelnk/d' fluid/Makefile
43 make -C fluid install-linux || return 1
45 make -C test install-linux || return 1
47 for game in blocks checkers sudoku
48 do
49 for file in \
50 /usr/bin/$game \
51 /usr/share/icons/hicolor/128x128/apps/$game.png \
52 /usr/share/icons/hicolor/32x32/apps/$game.png \
53 /usr/share/applications/$game.desktop
54 do
55 mv $install$file $install${file/$game/fltk-$game}
56 done
57 sed -i 's|Exec=|Exec=fltk-|; s|Icon=|Icon=fltk-|; /TryExec/d' \
58 $install/usr/share/applications/fltk-$game.desktop
59 done
61 install -m755 $src/test/colbrowser $install/usr/bin/fltk-colbrowser
62 install -m755 $src/test/editor $install/usr/bin/fltk-editor
63 install -Dm644 $src/test/rgb.txt $install/usr/share/fltk/rgb.txt
64 }
66 genpkg_rules()
67 {
68 case $PACKAGE in
69 fltk-blocks)
70 copy $PACKAGE*
71 CAT="games|FLTK Blocks game"
72 DEPENDS="alsa-lib fontconfig libx11 libxcursor \
73 libxext libxfixes libxft libxinerama \
74 libxrender"
75 ;;
76 fltk-checkers)
77 copy $PACKAGE*
78 CAT="games|FLTK Checkers game"
79 DEPENDS="fontconfig libx11 libxcursor libxext \
80 libxfixes libxft libxinerama libxrender"
81 ;;
82 fltk-sudoku)
83 copy $PACKAGE*
84 CAT="games|FLTK Sudoku game"
85 DEPENDS="alsa-lib fontconfig libjpeg-turbo libpng
86 libx11 libxcursor libxext libxfixes
87 libxft libxinerama libxrender"
88 ;;
89 fltk-colbrowser)
90 copy $PACKAGE* rgb.txt
91 CAT="graphics|FLTK Color browser"
92 DEPENDS="fontconfig libx11 libxcursor libxext \
93 libxfixes libxft libxinerama libxrender"
94 ;;
95 fltk-editor)
96 copy $PACKAGE*
97 CAT="development|FLTK text editor"
98 DEPENDS="fontconfig libx11 libxcursor libxext \
99 libxfixes libxft libxinerama libxrender"
100 ;;
101 fltk-doc)
102 copy doc/
103 CAT="development|FLTK documentation and examples"
104 ;;
105 fltk)
106 copy @std @rm
107 DEPENDS="fontconfig libjpeg-turbo libpng mesa \
108 libx11 libxcursor libxext libxfixes \
109 libxft libxinerama libxrender"
110 ;;
111 fltk-dev)
112 copy @dev @rm # remove examples in doc
113 DEPENDS="fltk"
114 ;;
115 esac
116 }