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