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

Add some LGPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 22:18:41 2013 +0000 (2013-08-10)
parents 6b09507225ec
children caca9ffdff1c
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 patch -p0 src/filename_list.cxx <<EOF
25 66c66
26 < int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
27 ---
28 > int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort);
29 EOF
30 autoconf
31 export LD_LIBRARY_PATH="/lib:/usr/lib:$src/lib"
32 ./configure \
33 --prefix=/usr \
34 --mandir=/usr/share/man \
35 --enable-shared \
36 --enable-xft \
37 $CONFIGURE_ARGS &&
38 make &&
39 cp -f fltk2-config /usr/bin &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 # Remove gl support --> fltk-2.0.x-gl
49 rm $fs/usr/lib/libfltk2*gl*
50 }