wok annotate fltk-2.0.x/receipt @ rev 25808
created recipe for xmenu
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 19 16:09:37 2024 +0100 (10 days ago) |
parents | d66160614dc4 |
children |
rev | line source |
---|---|
pankso@2794 | 1 # SliTaz package receipt. |
pankso@2794 | 2 |
pankso@2794 | 3 PACKAGE="fltk-2.0.x" |
slaxemulator@8638 | 4 VERSION="r7725" |
pankso@2794 | 5 CATEGORY="system-tools" |
pankso@2794 | 6 SHORT_DESC="Fast Light Tool Kit (provide fluid)." |
pankso@2794 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15004 | 8 LICENSE="LGPL2" |
pankso@2794 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20669 | 10 WEB_SITE="https://www.fltk.org/" |
pascal@12762 | 11 WGET_URL="subversion|http://svn.easysw.com/public/fltk/fltk/trunk" |
pascal@12762 | 12 BRANCH="${VERSION#r}" |
pankso@2794 | 13 |
pascal@13796 | 14 DEPENDS="expat fontconfig freetype jpeg xorg-libX11 xorg-libXau xorg-libXdmcp \ |
pascal@13796 | 15 xorg-libXext xorg-libXft xorg-libXrender zlib libpng xorg-libXi \ |
pascal@13796 | 16 xorg-libXinerama gcc-lib-base" |
pascal@13796 | 17 BUILD_DEPENDS="xorg-libXft-dev libglu-mesa libglu-mesa-dev mesa mesa-dev \ |
pascal@15040 | 18 subversion autoconf" |
pascal@13796 | 19 |
pascal@25581 | 20 # What is the latest version available today? |
pascal@25581 | 21 current_version() |
pascal@25581 | 22 { |
pascal@25581 | 23 wget -O - https://github.com/fltk/fltk-legacy/commits/branch-2.0 2>/dev/null | \ |
pascal@25674 | 24 sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q' |
pascal@25581 | 25 } |
pascal@25581 | 26 |
pankso@2794 | 27 # Rules to configure and make the package. |
pankso@2794 | 28 compile_rules() |
pankso@2794 | 29 { |
pascal@15040 | 30 find -name Makefile | sed 's/Makefile/makedepend/' | xargs touch -d 197001010000 |
slaxemulator@8638 | 31 patch -p0 src/filename_list.cxx <<EOF |
slaxemulator@8638 | 32 66c66 |
slaxemulator@8638 | 33 < int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort); |
slaxemulator@8638 | 34 --- |
slaxemulator@8638 | 35 > int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort); |
slaxemulator@8638 | 36 EOF |
pascal@12762 | 37 autoconf |
pascal@12797 | 38 export LD_LIBRARY_PATH="/lib:/usr/lib:$src/lib" |
pankso@2794 | 39 ./configure \ |
pankso@2794 | 40 --prefix=/usr \ |
pankso@2794 | 41 --mandir=/usr/share/man \ |
pankso@2794 | 42 --enable-shared \ |
pankso@2794 | 43 --enable-xft \ |
pankso@2794 | 44 $CONFIGURE_ARGS && |
pankso@2794 | 45 make && |
pankso@2794 | 46 cp -f fltk2-config /usr/bin && |
pascal@13796 | 47 make DESTDIR=$DESTDIR install |
pankso@2794 | 48 } |
pankso@2794 | 49 |
pankso@2794 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2794 | 51 genpkg_rules() |
pankso@2794 | 52 { |
pankso@2794 | 53 mkdir -p $fs/usr/lib |
pascal@13796 | 54 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@2794 | 55 # Remove gl support --> fltk-2.0.x-gl |
pankso@2794 | 56 rm $fs/usr/lib/libfltk2*gl* |
pankso@2794 | 57 } |