wok annotate fox14/receipt @ rev 25035

Up libqcow (20210419)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 20 18:11:13 2022 +0000 (2022-05-20)
parents bfabe25c21ff
children
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@24978 12 WGET_URL="http://fox-toolkit.org/ftp/$TARBALL"
pascal@24978 13
pascal@14996 14 SUGGESTED="adie calculator pathfinder shutterbug"
pascal@14996 15
slaxemulator@6970 16 DEPENDS="libpng jpeg tiff xorg-libXft bzlib mesa libglu-mesa"
slaxemulator@9269 17 BUILD_DEPENDS="libpng jpeg tiff xorg-libXft bzlib \
pascal@9262 18 xorg-libXrender xorg-libXrender-dev fontconfig fontconfig-dev freetype freetype-dev \
pascal@14999 19 libpng-dev jpeg-dev tiff-dev xorg-libXft-dev mesa libglu-mesa expat-dev libxml2-dev"
allan316@3740 20
pascal@24439 21 # What is the latest version available today?
pascal@24439 22 current_version()
pascal@24439 23 {
pascal@24439 24 wget -O - ${WEB_SITE}/download.html 2>/dev/null | \
pascal@24439 25 sed '/fox-1\.4/!d;/tar/!d;s|.*fox-||;s|.tar.*||' | sort -Vr | sed q
pascal@24439 26 }
pascal@24439 27
allan316@3740 28 # Rules to configure and make the package.
allan316@3740 29 compile_rules()
allan316@3740 30 {
allan316@3740 31 cd $src
pascal@12784 32 sed -i 's/(gzFile\*)/(gzFile)/' src/FXGZStream.cpp
pascal@9261 33 ./configure LDFLAGS="-lXft -lfreetype -lfontconfig -lXrender" \
allan316@3740 34 --prefix=/usr \
allan316@3740 35 --mandir=/usr/share/man \
allan316@3740 36 --with-xft \
allan316@3740 37 $CONFIGURE_ARGS &&
gokhlayeh@11574 38 make $MAKEFLAGS &&
pascal@14996 39 make DESTDIR=$DESTDIR install
allan316@3740 40 }
allan316@3740 41
allan316@3740 42 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@3740 43 genpkg_rules()
allan316@3740 44 {
allan316@3740 45 mkdir -p $fs/usr/lib
pascal@14996 46 cp -a $install/usr/bin $fs/usr
pascal@14996 47 cp -a $install/usr/lib/*.so* $fs/usr/lib
allan316@3740 48 }