wok-next view fltk-2.0.x/receipt @ rev 21116
Update libxfce4util, xfconf, libxfce4ui
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jan 14 00:11:29 2019 +0200 (2019-01-14) |
parents | d5aab818505e |
children | 262dccc5e3ed |
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="devel@slitaz.org"
8 LICENSE="LGPL2"
9 WEB_SITE="http://www.fltk.org/index.php"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="subversion|http://svn.easysw.com/public/fltk/fltk/trunk"
13 BRANCH="${VERSION#r}"
15 BUILD_DEPENDS="libxft-dev glu glu-dev mesa mesa-dev \
16 subversion autoconf xorg-dev libpng12-dev"
17 SPLIT="$PACKAGE-dev $PACKAGE-fluid2 $PACKAGE-gl"
19 compile_rules() {
20 sed -i 's/0xAA\([,}]\)/-86\1/g' src/UpBox.cxx
21 find -name Makefile | sed 's/Makefile/makedepend/' | xargs touch -d 197001010000
22 patch -p0 src/filename_list.cxx <<EOF
23 66c66
24 < int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
25 ---
26 > int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort);
27 EOF
28 autoconf
29 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=$install install
40 }
42 genpkg_rules() {
43 case $PACKAGE in
44 fltk-2.0.x)
45 DEPENDS="expat fontconfig freetype jpeg libx11 \
46 libxau libxdmcp libxext libxft \
47 libxrender zlib libpng12 libxi \
48 libxinerama gcc-lib-base"
49 mkdir -p $fs/usr/lib
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 # Remove gl support --> fltk-2.0.x-gl
52 rm $fs/usr/lib/libfltk2*gl*
53 ;;
54 *-dev)
55 DEPENDS="fltk-2.0.x"
56 mkdir -p $fs/usr/bin $fs/usr/lib
57 cp -a $install/usr/bin/fltk2-config $fs/usr/bin
58 cp -a $install/usr/lib/*.*a $fs/usr/lib
59 cp -a $install/usr/include $fs/usr
60 ;;
61 *-fluid2)
62 CAT="development|designer"
63 DEPENDS="fltk-2.0.x"
64 mkdir -p $fs/usr/bin
65 cp -a $install/usr/bin/fluid2 $fs/usr/bin
66 ;;
67 *-gl)
68 CAT="x-window|GL library"
69 DEPENDS="mesa glu expat fontconfig libxft \
70 libxi libxinerama libxext gcc-lib-base"
71 mkdir -p $fs/usr/lib
72 cp -a $install/usr/lib/libfltk2*gl*.so* $fs/usr/lib
73 ;;
74 esac
75 }