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

fltk-2.0.x: update WGET_URL
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 12 13:10:28 2012 +0200 (2012-05-12)
parents 14855891b705
children 1bc9f8436e90
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 ./configure \
29 --prefix=/usr \
30 --mandir=/usr/share/man \
31 --enable-shared \
32 --enable-xft \
33 $CONFIGURE_ARGS &&
34 make &&
35 cp -f fltk2-config /usr/bin &&
36 make DESTDIR=$PWD/_pkg install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
44 # Remove gl support --> fltk-2.0.x-gl
45 rm $fs/usr/lib/libfltk2*gl*
46 }