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

Update some web_site & wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 27 11:13:29 2023 +0000 (11 months ago)
parents a78610b2eb47
children a66f312c374b
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="https://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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://github.com/fltk/fltk-legacy/commits/branch-2.0 2>/dev/null | \
24 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 find -name Makefile | sed 's/Makefile/makedepend/' | xargs touch -d 197001010000
31 patch -p0 src/filename_list.cxx <<EOF
32 66c66
33 < int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
34 ---
35 > int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort);
36 EOF
37 autoconf
38 export LD_LIBRARY_PATH="/lib:/usr/lib:$src/lib"
39 ./configure \
40 --prefix=/usr \
41 --mandir=/usr/share/man \
42 --enable-shared \
43 --enable-xft \
44 $CONFIGURE_ARGS &&
45 make &&
46 cp -f fltk2-config /usr/bin &&
47 make DESTDIR=$DESTDIR install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/lib
54 cp -a $install/usr/lib/*.so* $fs/usr/lib
55 # Remove gl support --> fltk-2.0.x-gl
56 rm $fs/usr/lib/libfltk2*gl*
57 }