wok-next view fltk-2.0.x/receipt @ rev 20983
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Sep 28 13:48:52 2018 +0300 (2018-09-28) |
parents | a4aa43fbd3eb |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="fltk-2.0.x"
4 VERSION="r7725"
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.tar.bz2"
10 WEB_SITE="http://www.fltk.org/"
11 WGET_URL="subversion|http://svn.easysw.com/public/fltk/fltk/trunk"
12 BRANCH="${VERSION#r}"
14 BUILD_DEPENDS="xorg-libXft-dev glu glu-dev mesa mesa-dev \
15 subversion autoconf xorg-dev libpng12-dev"
16 SPLIT="fltk-2.0.x-dev fltk-2.0.x-fluid2 fltk-2.0.x-gl"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/0xAA\([,}]\)/-86\1/g' src/UpBox.cxx
22 find -name Makefile | sed 's/Makefile/makedepend/' | xargs touch -d 197001010000
23 patch -p0 src/filename_list.cxx <<EOF
24 66c66
25 < int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
26 ---
27 > int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort);
28 EOF
29 autoconf
30 export LD_LIBRARY_PATH="/lib:/usr/lib:$src/lib"
31 ./configure \
32 --prefix=/usr \
33 --mandir=/usr/share/man \
34 --enable-shared \
35 --enable-xft \
36 $CONFIGURE_ARGS &&
37 make &&
38 cp -f fltk2-config /usr/bin &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 case $PACKAGE in
46 fltk-2.0.x)
47 DEPENDS="expat fontconfig freetype jpeg xorg-libX11 \
48 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft \
49 xorg-libXrender zlib libpng12 xorg-libXi \
50 xorg-libXinerama gcc-lib-base"
51 mkdir -p $fs/usr/lib
52 cp -a $install/usr/lib/*.so* $fs/usr/lib
53 # Remove gl support --> fltk-2.0.x-gl
54 rm $fs/usr/lib/libfltk2*gl*
55 ;;
56 fltk-2.0.x-dev)
57 CAT="development|Fast Light Tool Kit devel files (FLZK 2.0)."
58 DEPENDS="fltk-2.0.x"
59 mkdir -p $fs/usr/bin $fs/usr/lib
60 cp -a $install/usr/bin/fltk2-config $fs/usr/bin
61 cp -a $install/usr/lib/*.*a $fs/usr/lib
62 cp -a $install/usr/include $fs/usr
63 ;;
64 fltk-2.0.x-fluid2)
65 CAT="development|Fast Light Tool Kit designer 2.0 serie."
66 DEPENDS="fltk-2.0.x"
67 mkdir -p $fs/usr/bin
68 cp -a $install/usr/bin/fluid2 $fs/usr/bin
69 ;;
70 fltk-2.0.x-gl)
71 CAT="x-window|Fast Light Tool Kit GL library."
72 DEPENDS="mesa glu expat fontconfig xorg-libXft \
73 xorg-libXi xorg-libXinerama xorg-libXext gcc-lib-base"
74 mkdir -p $fs/usr/lib
75 cp -a $install/usr/lib/libfltk2*gl*.so* $fs/usr/lib
76 ;;
77 esac
78 }