wok-6.x view directfb/receipt @ rev 17670

Add missing -ltinfo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 17 09:42:47 2015 +0100 (2015-02-17)
parents f730b5689911
children d3eb5f4b53ea
line source
1 # SliTaz package receipt.
3 PACKAGE="directfb"
4 VERSION="1.4.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Thin library that provides hardware graphics acceleration."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 SOURCE="DirectFB"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.directfb.org/"
12 WGET_URL="http://www.directfb.org/downloads/Core/$SOURCE-1.4/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="libpng libjpeg freetype tslib zlib"
16 BUILD_DEPENDS="libpng-dev jpeg-dev freetype-dev tslib-dev perl"
18 # Handle cross compilation.
19 case "$ARCH" in
20 arm)
21 BUILD_DEPENDS="libpng-dev jpeg-dev freetype-dev"
22 ARCH_ARGS="--with-gfxdrivers=none --disable-x11"
23 export LDFLAGS="$LDFLAGS -L/cross/arm/sysroot/usr/lib"
24 export CPPFLAGS="$CPPFLAGS -I/cross/arm/sysroot/usr/include" ;;
25 esac
27 # Handle SliTaz arch installation.
28 case "$SLITAZ_ARCH" in
29 arm) DEPENDS="libpng libjpeg freetype zlib" ;;
30 esac
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 ./configure \
36 --prefix=/usr \
37 --sysconfdir=/etc \
38 --with-dither-rgb16=none \
39 $CONFIGURE_ARGS $ARCH_ARGS &&
40 make && make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib $fs/usr/share
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 cp -a $install/usr/lib/directfb-* $fs/usr/lib
50 cp -a $install/usr/share/directfb-* $fs/usr/share
51 find $fs/usr/lib -name "*.*a" -exec rm '{}' \;
52 }