wok annotate directfb/receipt @ rev 17080

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