wok view fltk/receipt @ rev 19352
Up ncdu (1.11)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Jul 24 19:13:10 2016 +0100 (2016-07-24) |
parents | 5922ffb18ae9 |
children | 9e2e108fff96 |
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 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="expat fontconfig freetype jpeg libpng xorg-libXft" ;;
21 esac
23 # Handle cross compilation.
24 case "$ARCH" in
25 #i?86)
26 # ARCH_ARGS="--with-archflags=i386" ;;
27 arm)
28 BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXft-dev"
29 ARCH_ARGS="--x-includes=/cross/$ARCH/sysroot/usr/include \
30 --x-libraries=/cross/$ARCH/sysroot/usr/lib" ;;
31 esac
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 sed -i \
37 -e 's/$(LINKFLTK)/$(LINKSHARED)/' \
38 -e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile
39 ./configure ${ARCH_ARGS} \
40 --enable-shared \
41 --enable-xft \
42 --enable-threads \
43 $CONFIGURE_ARGS &&
44 make lib $MAKEFLAGS &&
45 make DESTDIR=$DESTDIR install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share/pixmaps
52 cp -a $install/usr/bin/fluid $fs/usr/bin
53 cp -a $install/usr/lib/*.so* $fs/usr/lib
54 cp $src/fluid/icons/fluid-32.png $fs/usr/share/pixmaps/fluid.png
55 }