wok-next view fltk/receipt @ rev 19547
Add: SylFilter light spam filter (0.8)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Dec 06 23:38:50 2016 +0100 (2016-12-06) |
parents | 158b51df51d9 |
children | cc02c585c919 |
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="http://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"
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 }