wok-current view fltk-2.0.x/receipt @ rev 11298
Fix: pidgin menu icon
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sat Nov 12 18:20:29 2011 +0000 (2011-11-12) |
parents | 6c6f7eaf52c5 |
children | 71c9450cc295 |
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"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://www.fltk.org/"
14 WGET_URL="http://ftp.easysw.com/pub/fltk/snapshots/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 patch -p0 src/filename_list.cxx <<EOF
21 66c66
22 < int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
23 ---
24 > int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort);
25 EOF
27 ./configure \
28 --prefix=/usr \
29 --mandir=/usr/share/man \
30 --enable-shared \
31 --enable-xft \
32 $CONFIGURE_ARGS &&
33 make &&
34 cp -f fltk2-config /usr/bin &&
35 make DESTDIR=$PWD/_pkg install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib
42 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
43 # Remove gl support --> fltk-2.0.x-gl
44 rm $fs/usr/lib/libfltk2*gl*
45 }