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