wok-next view fltk/receipt @ rev 20502

Swap: current mesa (which is developing and change it's version) is just mesa, while old mesa is mesa12 now (will be removed if no one old package require it).
Also, change long names to its origins: libglu-mesa -> glu, libglw-mesa -> glw, all variations with libegl -> mesa-libegl (because it is part of mesa package).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 16 00:27:34 2018 +0200 (2018-03-16)
parents 6d173c4b9591
children 757d032c55c7
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="pankso@slitaz.org"
8 LICENSE="LGPL2"
9 WEB_SITE="http://www.fltk.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/x/fltk.html"
12 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
13 WGET_URL="http://fltk.org/pub/fltk/$VERSION/$TARBALL"
15 BUILD_DEPENDS_arm="jpeg-dev libpng16-dev xorg-libXft-dev"
16 BUILD_DEPENDS="alsa-lib-dev libjpeg-turbo-dev zlib-dev libpng16-dev \
17 xorg-libX11-dev xorg-libICE-dev xorg-libSM-dev mesa-dev xorg-libXinerama-dev \
18 freetype-dev xorg-libXft-dev xorg-libXcursor-dev xorg-xprop"
19 SPLIT="fltk-blocks fltk-checkers fltk-sudoku fltk-colbrowser fltk-editor \
20 fltk-doc fltk fltk-dev"
21 COOKOPTS="!menus"
23 compile_rules() {
24 case "$ARCH" in
25 arm) ARCH_ARGS="--x-includes=/cross/$ARCH/sysroot/usr/include \
26 --x-libraries=/cross/$ARCH/sysroot/usr/lib";;
27 *) ARCH_ARGS='';;
28 esac
30 sed -i -e '/cat./d' documentation/Makefile
32 fix ld
33 ./configure \
34 --enable-shared \
35 --enable-xft \
36 --enable-threads \
37 $ARCH_ARGS \
38 $CONFIGURE_ARGS &&
39 sed -i 's| -shared | -Wl,-Os,--as-needed\0|g' makeinclude &&
40 sed -i s'#"rgb.txt"#"/usr/share/fltk/rgb.txt"#' test/colbrowser.cxx &&
41 make $MAKEFLAGS &&
42 make DESTDIR=$DESTDIR install || return 1
44 sed -i '/mimelnk/d' fluid/Makefile
45 make -C fluid install-linux || return 1
47 make -C test install-linux || return 1
49 for game in blocks checkers sudoku; do
50 for file in \
51 /usr/bin/$game \
52 /usr/share/icons/hicolor/128x128/apps/$game.png \
53 /usr/share/icons/hicolor/32x32/apps/$game.png \
54 /usr/share/applications/$game.desktop; 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 case $PACKAGE in
68 fltk-blocks)
69 copy $PACKAGE*
70 CAT="games|FLTK Blocks game"
71 DEPENDS="alsa-lib fontconfig xorg-libX11 xorg-libXcursor \
72 xorg-libXext xorg-libXfixes xorg-libXft xorg-libXinerama \
73 xorg-libXrender"
74 ;;
75 fltk-checkers)
76 copy $PACKAGE*
77 CAT="games|FLTK Checkers game"
78 DEPENDS="fontconfig xorg-libX11 xorg-libXcursor xorg-libXext \
79 xorg-libXfixes xorg-libXft xorg-libXinerama xorg-libXrender"
80 ;;
81 fltk-sudoku)
82 copy $PACKAGE*
83 CAT="games|FLTK Sudoku game"
84 DEPENDS="alsa-lib fontconfig libjpeg-turbo libpng16 xorg-libX11 \
85 xorg-libXcursor xorg-libXext xorg-libXfixes xorg-libXft \
86 xorg-libXinerama xorg-libXrender"
87 ;;
88 fltk-colbrowser)
89 copy $PACKAGE* rgb.txt
90 CAT="graphics|FLTK Color browser"
91 DEPENDS="fontconfig xorg-libX11 xorg-libXcursor xorg-libXext \
92 xorg-libXfixes xorg-libXft xorg-libXinerama xorg-libXrender"
93 ;;
94 fltk-editor)
95 copy $PACKAGE*
96 CAT="development|FLTK text editor"
97 DEPENDS="fontconfig xorg-libX11 xorg-libXcursor xorg-libXext \
98 xorg-libXfixes xorg-libXft xorg-libXinerama xorg-libXrender"
99 ;;
100 fltk-doc)
101 copy doc/
102 CAT="development|FLTK documentation and examples"
103 ;;
104 fltk)
105 copy @std @rm
106 case "$SLITAZ_ARCH" in
107 arm*)
108 DEPENDS="expat fontconfig freetype jpeg libpng16 \
109 xorg-libXft" ;;
110 *)
111 DEPENDS="fontconfig libjpeg-turbo libpng16 mesa \
112 xorg-libX11 xorg-libXcursor xorg-libXext xorg-libXfixes \
113 xorg-libXft xorg-libXinerama xorg-libXrender"
114 esac
115 ;;
116 fltk-dev)
117 copy @dev @rm # remove examples in doc
118 DEPENDS="fltk"
119 ;;
120 esac
121 }