wok view fox/receipt @ rev 25696

created recipe for dool
author Hans-G?nter Theisgen
date Sat May 11 17:17:55 2024 +0100 (6 months ago)
parents bfabe25c21ff
children
line source
1 # SliTaz package receipt.
3 PACKAGE="fox"
4 VERSION="1.6.57"
5 CATEGORY="x-window"
6 SHORT_DESC="Fox toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://www.fox-toolkit.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://fox-toolkit.org/ftp/$TARBALL"
14 SUGGESTED="adie calculator pathfinder shutterbug"
15 DEPENDS="bzlib jbigkit jpeg libdrm libglu-mesa libpng mesa tiff
16 xorg-libXcursor xorg-libXdamage xorg-libXft xorg-libXrandr
17 xorg-libXxf86vm"
18 BUILD_DEPENDS="expat-dev fontconfig-dev freetype-dev jpeg-dev
19 libglu-mesa-dev libpng-dev libxml2-dev mesa-dev
20 tiff-dev xorg-libXft-dev"
22 HOST_ARCH="i486 arm"
24 # Handle SliTaz arch.
25 case "$SLITAZ_ARCH" in
26 arm) BUILD_DEPENDS="libjpeg libpng tiff xorg-libXft" ;;
27 esac
29 # Handle cross compilation.
30 case "$ARCH" in
31 arm)
32 BUILD_DEPENDS="jpeg-dev libpng-dev tiff-dev xorg-libXft-dev"
33 ARCH_ARGS="--with-opengl=no" ;;
34 esac
36 # What is the latest version available today?
37 current_version()
38 {
39 wget -O - ${WEB_SITE}/download.html 2>/dev/null | \
40 sed '/fox-[0-9]/!d;/tar/!d;s|.*fox-||;s|.tar.*||' | sort -Vr | sed q
41 }
43 # Rules to configure and make the package.
44 compile_rules()
45 {
46 ./configure \
47 --prefix=/usr \
48 --mandir=/usr/share/man \
49 --with-xft \
50 $CONFIGURE_ARGS \
51 $ARCH_ARGS &&
52 make $MAKEFLAGS &&
53 make DESTDIR=$DESTDIR install
54 }
56 testsuite()
57 {
58 readelf -h $install/usr/bin/adie || exit 1
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs/usr/lib
65 cp -a $install/usr/lib/*.so* $fs/usr/lib
66 }