wok view fltk-2.0.x/receipt @ rev 14730

Up xorg-xf86-video-ati (7.1.0), xorg-xf86-video-fbdev (0.4.3), xorg-xf86-video-geode (2.11.14), xorg-xf86-video-i740 (1.3.4), xorg-xf86-video-neomagic (1.2.7), xorg-xf86-video-nv (2.1.20), xorg-xf86-video-s3 (0.6.5), xorg-xf86-video-trident (1.3.6), xorg-xf86-video-vesa (2.3.2), xorg-xf86-video-vmware (13.0.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 13 10:45:31 2013 +0200 (2013-06-13)
parents 1bc9f8436e90
children a00bf44ed23d
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.fltk.org/"
10 WGET_URL="subversion|http://svn.easysw.com/public/fltk/fltk/trunk"
11 BRANCH="${VERSION#r}"
13 DEPENDS="expat fontconfig freetype jpeg xorg-libX11 xorg-libXau xorg-libXdmcp \
14 xorg-libXext xorg-libXft xorg-libXrender zlib libpng xorg-libXi \
15 xorg-libXinerama gcc-lib-base"
16 BUILD_DEPENDS="xorg-libXft-dev libglu-mesa libglu-mesa-dev mesa mesa-dev \
17 subversion autoconf"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
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 mkdir -p $fs/usr/lib
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 # Remove gl support --> fltk-2.0.x-gl
48 rm $fs/usr/lib/libfltk2*gl*
49 }