wok view fltk/receipt @ rev 16358
fltk: small fix
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 13 21:11:12 2014 +0200 (2014-04-13) |
parents | c9be5d5dedf9 |
children | d25604c40abc |
line source
1 # SliTaz package receipt.
3 PACKAGE="fltk"
4 VERSION="1.3.2"
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 libpng gcc-lib-base mesa libglu-mesa"
16 BUILD_DEPENDS="jpeg-dev libpng-dev libglu-mesa libglu-mesa-dev mesa mesa-dev"
18 # Handle SliTaz arch
19 case "$SLITAZ_ARCH" in
20 arm*) DEPENDS="$DEPENDS expat fontconfig freetype jpeg libpng xorg-libXft" ;;
21 esac
23 # Handle cross compilation.
24 case "$ARCH" in
25 i?86) ARCH_ARGS="--with-archflags=i386" ;;
26 arm)
27 BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXft-dev"
28 ARCH_ARGS="--x-includes=/cross/$ARCH/sysroot/usr/include \
29 --x-libraries=/cross/$ARCH/sysroot/usr/lib" ;;
30 esac
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 sed -i \
36 -e 's/$(LINKFLTK)/$(LINKSHARED)/' \
37 -e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile
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 }