wok view fltk-2.0.x/receipt @ rev 14869
Up: perl-pango (1.224)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Mon Jul 22 19:47:37 2013 -0300 (2013-07-22) |
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 }