wok-current view fltk/receipt @ rev 20675
iron: update /usr/bin/iron symlink
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 24 22:11:16 2019 +0100 (2019-01-24) |
parents | a78610b2eb47 |
children | b36d3d58ef5c |
line source
1 # SliTaz package receipt.
3 PACKAGE="fltk"
4 VERSION="1.3.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Fast Light Tool Kit (provide fluid)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2"
9 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
10 WEB_SITE="https://www.fltk.org/"
11 WGET_URL="http://fltk.org/pub/fltk/$VERSION/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="expat fontconfig freetype libpng jpeg xorg-libX11 xorg-libXau xorg-libXdmcp \
15 xorg-libXext xorg-libXft xorg-libXrender zlib gcc-lib-base mesa libglu-mesa"
16 BUILD_DEPENDS="jpeg-dev libpng-dev libglu-mesa libglu-mesa-dev mesa mesa-dev \
17 xorg-libXinerama-dev xorg-libXft-dev slitaz-tools"
19 # Handle SliTaz arch
20 case "$SLITAZ_ARCH" in
21 arm*) DEPENDS="expat fontconfig freetype jpeg libpng xorg-libXft" ;;
22 esac
24 # Handle cross compilation.
25 case "$ARCH" in
26 #i?86)
27 # ARCH_ARGS="--with-archflags=i386" ;;
28 arm)
29 BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXft-dev"
30 ARCH_ARGS="--x-includes=/cross/$ARCH/sysroot/usr/include \
31 --x-libraries=/cross/$ARCH/sysroot/usr/lib" ;;
32 esac
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 patch -p0 < $stuff/Fl_XFont_On_Demand.patch
38 ./configure ${ARCH_ARGS} \
39 --enable-shared \
40 --enable-xft \
41 --enable-threads \
42 $CONFIGURE_ARGS &&
43 make lib $MAKEFLAGS &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share/pixmaps
51 cp -a $install/usr/bin/fluid $fs/usr/bin
52 cp -a $install/usr/lib/*.so* $fs/usr/lib
53 cp $src/fluid/icons/fluid-32.png $fs/usr/share/pixmaps/fluid.png
54 }