wok-next view fltk/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 5669e8b3be70 |
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 libpng16-dev \
16 xorg-libX11-dev xorg-libICE-dev xorg-libSM-dev mesa-dev xorg-libXinerama-dev \
17 freetype-dev xorg-libXft-dev xorg-libXcursor-dev xorg-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 xorg-libX11 xorg-libXcursor \
63 xorg-libXext xorg-libXfixes xorg-libXft xorg-libXinerama \
64 xorg-libXrender"
65 ;;
66 fltk-checkers)
67 copy $PACKAGE*
68 CAT="games|FLTK Checkers game"
69 DEPENDS="fontconfig xorg-libX11 xorg-libXcursor xorg-libXext \
70 xorg-libXfixes xorg-libXft xorg-libXinerama xorg-libXrender"
71 ;;
72 fltk-sudoku)
73 copy $PACKAGE*
74 CAT="games|FLTK Sudoku game"
75 DEPENDS="alsa-lib fontconfig libjpeg-turbo libpng16 xorg-libX11 \
76 xorg-libXcursor xorg-libXext xorg-libXfixes xorg-libXft \
77 xorg-libXinerama xorg-libXrender"
78 ;;
79 fltk-colbrowser)
80 copy $PACKAGE* rgb.txt
81 CAT="graphics|FLTK Color browser"
82 DEPENDS="fontconfig xorg-libX11 xorg-libXcursor xorg-libXext \
83 xorg-libXfixes xorg-libXft xorg-libXinerama xorg-libXrender"
84 ;;
85 fltk-editor)
86 copy $PACKAGE*
87 CAT="development|FLTK text editor"
88 DEPENDS="fontconfig xorg-libX11 xorg-libXcursor xorg-libXext \
89 xorg-libXfixes xorg-libXft xorg-libXinerama xorg-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 libpng16 mesa \
98 xorg-libX11 xorg-libXcursor xorg-libXext xorg-libXfixes \
99 xorg-libXft xorg-libXinerama xorg-libXrender"
100 ;;
101 fltk-dev)
102 copy @dev @rm # remove examples in doc
103 DEPENDS="fltk"
104 ;;
105 esac
106 }