wok-current view directfb/receipt @ rev 22734

updated discount and discount-dev (2.2.5 -> 2.2.6)
author Hans-G?nter Theisgen
date Thu Jan 23 17:26:34 2020 +0100 (2020-01-23)
parents e978ec150de3
children 3fdf0e2152ae
line source
1 # SliTaz package receipt.
3 PACKAGE="directfb"
4 VERSION="1.7.7"
5 CATEGORY="system-tools"
6 SHORT_DESC="Thin library that provides hardware graphics acceleration."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://www.directfb.org/"
11 SOURCE="DirectFB"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="http://sources.buildroot.net/$TARBALL"
15 DEPENDS="freetype libpng libjpeg tslib zlib"
16 BUILD_DEPENDS="autoconf automake fluxcomp freetype-dev jpeg-dev libpng-dev libtool perl tslib-dev"
17 HOST_ARCH="i486 arm"
19 # Handle cross compilation.
20 case "$ARCH" in
21 arm)
22 BUILD_DEPENDS="libpng-dev jpeg-dev freetype-dev"
23 ARCH_ARGS="--with-gfxdrivers=none --disable-x11"
24 export LDFLAGS="$LDFLAGS -L/cross/arm/sysroot/usr/lib"
25 export CPPFLAGS="$CPPFLAGS -I/cross/arm/sysroot/usr/include" ;;
26 esac
28 # Handle SliTaz arch installation.
29 case "$SLITAZ_ARCH" in
30 arm) DEPENDS="libpng libjpeg freetype zlib" ;;
31 esac
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 ./autogen.sh \
37 --prefix=/usr \
38 --sysconfdir=/etc \
39 --with-dither-rgb16=none \
40 $CONFIGURE_ARGS $ARCH_ARGS &&
41 make -j 1 &&
42 make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib $fs/usr/share
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 cp -a $install/usr/lib/directfb-* $fs/usr/lib
52 cp -a $install/usr/share/directfb-* $fs/usr/share
53 find $fs/usr/lib -name "*.*a" -exec rm '{}' \;
54 }