wok-6.x annotate fox14/receipt @ rev 24439

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 18:01:32 2022 +0000 (2022-02-13)
parents 2b9f96603415
children 00e3b45c063b
rev   line source
allan316@3740 1 # SliTaz package receipt.
allan316@3740 2
allan316@3740 3 PACKAGE="fox14"
allan316@3740 4 SOURCE="fox"
allan316@3740 5 VERSION="1.4.35"
allan316@3740 6 CATEGORY="x-window"
allan316@3740 7 SHORT_DESC="Fox toolkit."
allan316@3740 8 MAINTAINER="pankso@slitaz.org"
pascal@14996 9 LICENSE="LGPL2.1"
allan316@3740 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@14996 11 WEB_SITE="http://www.fox-toolkit.org/"
pascal@14996 12 WGET_URL="http://ftp.fox-toolkit.org/pub/$TARBALL"
pascal@14996 13 SUGGESTED="adie calculator pathfinder shutterbug"
pascal@14996 14
slaxemulator@6970 15 DEPENDS="libpng jpeg tiff xorg-libXft bzlib mesa libglu-mesa"
slaxemulator@9269 16 BUILD_DEPENDS="libpng jpeg tiff xorg-libXft bzlib \
pascal@9262 17 xorg-libXrender xorg-libXrender-dev fontconfig fontconfig-dev freetype freetype-dev \
pascal@14999 18 libpng-dev jpeg-dev tiff-dev xorg-libXft-dev mesa libglu-mesa expat-dev libxml2-dev"
allan316@3740 19
pascal@24439 20 # What is the latest version available today?
pascal@24439 21 current_version()
pascal@24439 22 {
pascal@24439 23 wget -O - ${WEB_SITE}/download.html 2>/dev/null | \
pascal@24439 24 sed '/fox-1\.4/!d;/tar/!d;s|.*fox-||;s|.tar.*||' | sort -Vr | sed q
pascal@24439 25 }
pascal@24439 26
allan316@3740 27 # Rules to configure and make the package.
allan316@3740 28 compile_rules()
allan316@3740 29 {
allan316@3740 30 cd $src
pascal@12784 31 sed -i 's/(gzFile\*)/(gzFile)/' src/FXGZStream.cpp
pascal@9261 32 ./configure LDFLAGS="-lXft -lfreetype -lfontconfig -lXrender" \
allan316@3740 33 --prefix=/usr \
allan316@3740 34 --mandir=/usr/share/man \
allan316@3740 35 --with-xft \
allan316@3740 36 $CONFIGURE_ARGS &&
gokhlayeh@11574 37 make $MAKEFLAGS &&
pascal@14996 38 make DESTDIR=$DESTDIR install
allan316@3740 39 }
allan316@3740 40
allan316@3740 41 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@3740 42 genpkg_rules()
allan316@3740 43 {
allan316@3740 44 mkdir -p $fs/usr/lib
pascal@14996 45 cp -a $install/usr/bin $fs/usr
pascal@14996 46 cp -a $install/usr/lib/*.so* $fs/usr/lib
allan316@3740 47 }