wok annotate fltk/receipt @ rev 24749

cairo: modified lookup-symbol.c for binutils-2.37
author Hans-G?nter Theisgen
date Wed Mar 16 17:06:35 2022 +0100 (2022-03-16)
parents bfabe25c21ff
children
rev   line source
pankso@627 1 # SliTaz package receipt.
pankso@627 2
pankso@627 3 PACKAGE="fltk"
Hans-G?nter@24557 4 VERSION="1.3.8"
pankso@627 5 CATEGORY="system-tools"
pankso@627 6 SHORT_DESC="Fast Light Tool Kit (provide fluid)."
pankso@627 7 MAINTAINER="pankso@slitaz.org"
pascal@15004 8 LICENSE="LGPL2"
pascal@20669 9 WEB_SITE="https://www.fltk.org/"
Hans-G?nter@20926 10
Hans-G?nter@22765 11 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
Hans-G?nter@24557 12 WGET_URL="https://fltk.org/pub/fltk/$VERSION/$TARBALL"
pankso@627 13
Hans-G?nter@22765 14 DEPENDS="expat fontconfig freetype gcc-lib-base jpeg libglu-mesa libpng mesa
Hans-G?nter@22765 15 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft
Hans-G?nter@22765 16 xorg-libXrender zlib"
Hans-G?nter@24557 17 BUILD_DEPENDS="jpeg-dev libglu-mesa libglu-mesa-dev libpng-dev mesa mesa-dev
Hans-G?nter@22765 18 slitaz-tools xorg-libXft-dev xorg-libXinerama-dev"
Hans-G?nter@22765 19
Hans-G?nter@20926 20 HOST_ARCH="i486 arm"
pascal@13796 21
pankso@16357 22 # Handle SliTaz arch
pankso@16357 23 case "$SLITAZ_ARCH" in
pankso@16359 24 arm*) DEPENDS="expat fontconfig freetype jpeg libpng xorg-libXft" ;;
pankso@16357 25 esac
pankso@16357 26
pankso@16085 27 # Handle cross compilation.
pankso@16084 28 case "$ARCH" in
pascal@16364 29 #i?86)
pascal@16364 30 # ARCH_ARGS="--with-archflags=i386" ;;
pankso@16357 31 arm)
pankso@16357 32 BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXft-dev"
pankso@16358 33 ARCH_ARGS="--x-includes=/cross/$ARCH/sysroot/usr/include \
pankso@16358 34 --x-libraries=/cross/$ARCH/sysroot/usr/lib" ;;
pankso@16084 35 esac
pankso@16084 36
pascal@24439 37 # What is the latest version available today?
pascal@24439 38 current_version()
pascal@24439 39 {
pascal@24439 40 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24439 41 sed "/released on/!d;s|.*FLTK ||;s| released.*||" | sort -Vr | sed q
pascal@24439 42 }
pascal@24439 43
pankso@627 44 # Rules to configure and make the package.
pankso@627 45 compile_rules()
pankso@627 46 {
Hans-G?nter@20926 47 # By now (1.3.4.2) contained in sources
Hans-G?nter@20926 48 # patch -p0 < $stuff/Fl_XFont_On_Demand.patch
Hans-G?nter@20926 49
Hans-G?nter@22765 50 ./configure \
Hans-G?nter@22765 51 --enable-shared \
Hans-G?nter@24557 52 --enable-threads \
Hans-G?nter@22765 53 --enable-xft \
Hans-G?nter@24557 54 $ARCH_ARGS \
pascal@1492 55 $CONFIGURE_ARGS &&
Hans-G?nter@24557 56 make lib $MAKEFLAGS &&
Hans-G?nter@24557 57 make install DESTDIR=$DESTDIR
pankso@627 58 }
pankso@627 59
pankso@627 60 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@627 61 genpkg_rules()
pankso@627 62 {
Hans-G?nter@22765 63 mkdir -p $fs/usr/bin
Hans-G?nter@22765 64 mkdir -p $fs/usr/lib
Hans-G?nter@22765 65 mkdir -p $fs/usr/share/pixmaps
Hans-G?nter@22765 66
Hans-G?nter@22765 67 cp -a $install/usr/bin/fluid $fs/usr/bin
Hans-G?nter@22765 68 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22765 69 cp $src/fluid/icons/fluid-32.png $fs/usr/share/pixmaps/fluid.png
pankso@627 70 }