wok-next view fltk-2.0.x/receipt @ rev 13008
Up cyrus-imapd (2.4.16)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 06 18:28:24 2012 +0200 (2012-06-06) |
parents | 71c9450cc295 |
children | 6b09507225ec |
line source
1 # SliTaz package receipt.
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 DEPENDS="expat fontconfig freetype jpeg xorg-libX11 xorg-libXau xorg-libXdmcp \
9 xorg-libXext xorg-libXft xorg-libXrender zlib libpng xorg-libXi \
10 xorg-libXinerama gcc-lib-base"
11 BUILD_DEPENDS="xorg-libXft-dev libglu-mesa mesa mesa-dev subversion autoconf"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://www.fltk.org/"
14 WGET_URL="subversion|http://svn.easysw.com/public/fltk/fltk/trunk"
15 BRANCH="${VERSION#r}"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 patch -p0 src/filename_list.cxx <<EOF
22 66c66
23 < int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
24 ---
25 > int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort);
26 EOF
27 autoconf
28 export LD_LIBRARY_PATH="/lib:/usr/lib:$src/lib"
29 ./configure \
30 --prefix=/usr \
31 --mandir=/usr/share/man \
32 --enable-shared \
33 --enable-xft \
34 $CONFIGURE_ARGS &&
35 make &&
36 cp -f fltk2-config /usr/bin &&
37 make DESTDIR=$PWD/_pkg install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
44 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
45 # Remove gl support --> fltk-2.0.x-gl
46 rm $fs/usr/lib/libfltk2*gl*
47 }