wok-next view fltk/receipt @ rev 21078
Update png and Xorg in dependencies.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Dec 22 04:52:35 2018 +0200 (2018-12-22) |
parents | d5aab818505e |
children | 262dccc5e3ed |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="fltk"
4 VERSION="1.3.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="Fast Light Tool Kit"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="LGPL2"
9 WEB_SITE="http://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="http://fltk.org/pub/fltk/$VERSION/$TARBALL"
15 BUILD_DEPENDS="alsa-lib-dev libjpeg-turbo-dev zlib-dev libpng-dev \
16 libx11-dev libice-dev libsm-dev mesa-dev libxinerama-dev \
17 freetype-dev libxft-dev libxcursor-dev xprop"
18 SPLIT="$PACKAGE-blocks $PACKAGE-checkers $PACKAGE-sudoku $PACKAGE-colbrowser \
19 $PACKAGE-editor $PACKAGE-doc $PACKAGE $PACKAGE-dev"
20 COOKOPTS="!menus"
22 compile_rules() {
23 sed -i -e '/cat./d' documentation/Makefile
25 ./configure \
26 --enable-shared \
27 --enable-xft \
28 --enable-threads \
29 $CONFIGURE_ARGS &&
30 sed -i 's| -shared | -Wl,-Os,--as-needed\0|g' makeinclude &&
31 sed -i s'#"rgb.txt"#"/usr/share/fltk/rgb.txt"#' test/colbrowser.cxx &&
32 make $MAKEFLAGS &&
33 make DESTDIR=$install install || return 1
35 sed -i '/mimelnk/d' fluid/Makefile
36 make -C fluid install-linux || return 1
38 make -C test install-linux || return 1
40 for game in blocks checkers sudoku; do
41 for file in \
42 /usr/bin/$game \
43 /usr/share/icons/hicolor/128x128/apps/$game.png \
44 /usr/share/icons/hicolor/32x32/apps/$game.png \
45 /usr/share/applications/$game.desktop; do
46 mv $install$file $install${file/$game/fltk-$game}
47 done
48 sed -i 's|Exec=|Exec=fltk-|; s|Icon=|Icon=fltk-|; /TryExec/d' \
49 $install/usr/share/applications/fltk-$game.desktop
50 done
52 install -m755 $src/test/colbrowser $install/usr/bin/fltk-colbrowser
53 install -m755 $src/test/editor $install/usr/bin/fltk-editor
54 install -Dm644 $src/test/rgb.txt $install/usr/share/fltk/rgb.txt
55 }
57 genpkg_rules() {
58 case $PACKAGE in
59 fltk-blocks)
60 copy $PACKAGE*
61 CAT="games|FLTK Blocks game"
62 DEPENDS="alsa-lib fontconfig libx11 libxcursor \
63 libxext libxfixes libxft libxinerama \
64 libxrender"
65 ;;
66 fltk-checkers)
67 copy $PACKAGE*
68 CAT="games|FLTK Checkers game"
69 DEPENDS="fontconfig libx11 libxcursor libxext \
70 libxfixes libxft libxinerama libxrender"
71 ;;
72 fltk-sudoku)
73 copy $PACKAGE*
74 CAT="games|FLTK Sudoku game"
75 DEPENDS="alsa-lib fontconfig libjpeg-turbo libpng libx11 \
76 libxcursor libxext libxfixes libxft \
77 libxinerama libxrender"
78 ;;
79 fltk-colbrowser)
80 copy $PACKAGE* rgb.txt
81 CAT="graphics|FLTK Color browser"
82 DEPENDS="fontconfig libx11 libxcursor libxext \
83 libxfixes libxft libxinerama libxrender"
84 ;;
85 fltk-editor)
86 copy $PACKAGE*
87 CAT="development|FLTK text editor"
88 DEPENDS="fontconfig libx11 libxcursor libxext \
89 libxfixes libxft libxinerama libxrender"
90 ;;
91 fltk-doc)
92 copy doc/
93 CAT="development|FLTK documentation and examples"
94 ;;
95 fltk)
96 copy @std @rm
97 DEPENDS="fontconfig libjpeg-turbo libpng mesa \
98 libx11 libxcursor libxext libxfixes \
99 libxft libxinerama libxrender"
100 ;;
101 fltk-dev)
102 copy @dev @rm # remove examples in doc
103 DEPENDS="fltk"
104 ;;
105 esac
106 }