wok annotate directfb/receipt @ rev 18928

Add webdiapo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 25 16:42:59 2016 +0100 (2016-02-25)
parents 17e313b5b9c1
children eb396f946524
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/"
pascal@17869 12 WGET_URL="http://www.directfb.org/downloads/Core/$SOURCE-${VERSION%.*}/$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"
pascal@17670 23 export LDFLAGS="$LDFLAGS -L/cross/arm/sysroot/usr/lib"
pascal@17670 24 export CPPFLAGS="$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 }