wok view directfb/receipt @ rev 20844
created recipe for fluxcomp 1.4.4
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 21 13:50:05 2019 +0100 (2019-02-21) |
parents | d3eb5f4b53ea |
children | d40e85dce21f |
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="libpng libjpeg freetype tslib zlib"
16 BUILD_DEPENDS="libpng-dev jpeg-dev freetype-dev tslib-dev perl"
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 ./configure \
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 }