wok-6.x view fltk-2.0.x/receipt @ rev 16617
libgd: it build with same receipt than december 2013 - but with error on libgd-config that may be present for a long time
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 08 20:04:50 2014 +0200 (2014-05-08) |
parents | caca9ffdff1c |
children | a78610b2eb47 |
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 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 DEPENDS="expat fontconfig freetype jpeg xorg-libX11 xorg-libXau xorg-libXdmcp \
15 xorg-libXext xorg-libXft xorg-libXrender zlib libpng xorg-libXi \
16 xorg-libXinerama gcc-lib-base"
17 BUILD_DEPENDS="xorg-libXft-dev libglu-mesa libglu-mesa-dev mesa mesa-dev \
18 subversion autoconf"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 find -name Makefile | sed 's/Makefile/makedepend/' | xargs touch -d 197001010000
25 patch -p0 src/filename_list.cxx <<EOF
26 66c66
27 < int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
28 ---
29 > int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort);
30 EOF
31 autoconf
32 export LD_LIBRARY_PATH="/lib:/usr/lib:$src/lib"
33 ./configure \
34 --prefix=/usr \
35 --mandir=/usr/share/man \
36 --enable-shared \
37 --enable-xft \
38 $CONFIGURE_ARGS &&
39 make &&
40 cp -f fltk2-config /usr/bin &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 # Remove gl support --> fltk-2.0.x-gl
50 rm $fs/usr/lib/libfltk2*gl*
51 }