wok-next view fltk/receipt @ rev 20148

uclibc-cross-compiler-x86_64: receipt v2 (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 01 13:41:29 2017 +0100 (2017-11-01)
parents e1759a3c14ec
children 0159f236d2ed
line source
1 # SliTaz package receipt v2.
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 BUILD_DEPENDS="jpeg-dev libpng-dev libglu-mesa libglu-mesa-dev mesa mesa-dev \
15 xorg-libXinerama-dev xorg-libXft-dev"
16 SPLIT="fltk-dev fltk-doc"
18 # Handle cross compilation.
19 case "$ARCH" in
20 #i?86)
21 # ARCH_ARGS="--with-archflags=i386" ;;
22 arm)
23 BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXft-dev"
24 ARCH_ARGS="--x-includes=/cross/$ARCH/sysroot/usr/include \
25 --x-libraries=/cross/$ARCH/sysroot/usr/lib" ;;
26 esac
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 patch -p0 < $stuff/Fl_XFont_On_Demand.patch
32 ./configure ${ARCH_ARGS} \
33 --enable-shared \
34 --enable-xft \
35 --enable-threads \
36 $CONFIGURE_ARGS &&
37 make lib $MAKEFLAGS &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 case $PACKAGE in
45 fltk)
46 # Handle SliTaz arch
47 case "$SLITAZ_ARCH" in
48 arm*) DEPENDS="expat fontconfig freetype jpeg libpng \
49 xorg-libXft" ;;
50 *) DEPENDS="expat fontconfig freetype libpng jpeg xorg-libX11 \
51 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft \
52 xorg-libXrender zlib gcc-lib-base mesa libglu-mesa"
53 esac
54 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share/pixmaps
55 cp -a $install/usr/bin/fluid $fs/usr/bin
56 cp -a $install/usr/lib/*.so* $fs/usr/lib
57 cp $src/fluid/icons/fluid-32.png $fs/usr/share/pixmaps/fluid.png
58 ;;
59 fltk-dev)
60 CAT="development|Fast Light Tool Kit devel files."
61 DEPENDS="fltk"
62 mkdir -p $fs/usr/bin $fs/usr/lib
63 cp -a $install/usr/bin/fltk-config $fs/usr/bin
64 cp -a $install/usr/lib/*.*a $fs/usr/lib
65 cp -a $install/usr/include $fs/usr
66 ;;
67 fltk-doc)
68 CAT="development|Fast Light Tool Kit documentation and examples."
69 mkdir -p $fs/usr/share
70 cp -a $install/usr/share/doc $fs/usr/share
71 ;;
72 esac
73 }