wok-next annotate directfb/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents 99d1d45ec006
children c4e53a39395a
rev   line source
pascal@20319 1 # SliTaz package receipt v2.
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
psychomaniak@19905 15 BUILD_DEPENDS="libpng12-dev jpeg-dev freetype-dev tslib-dev perl"
pascal@20319 16 SPLIT="directfb-dev"
pascal@15579 17
pankso@15969 18 # Handle cross compilation.
pankso@15969 19 case "$ARCH" in
pankso@15969 20 arm)
al@20454 21 BUILD_DEPENDS="libpng12-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
al@20454 29 arm) DEPENDS="libpng12 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@20319 46 case $PACKAGE in
pascal@20319 47 directfb)
pascal@20319 48 DEPENDS="libpng12 libjpeg freetype tslib zlib"
pascal@20319 49 mkdir -p $fs/usr/lib $fs/usr/share
pascal@20319 50 cp -a $install/usr/bin $fs/usr
pascal@20319 51 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@20319 52 cp -a $install/usr/lib/directfb-* $fs/usr/lib
pascal@20319 53 cp -a $install/usr/share/directfb-* $fs/usr/share
pascal@20319 54 find $fs/usr/lib -name "*.*a" -exec rm '{}' \;
pascal@20319 55 ;;
pascal@20319 56 directfb-dev)
pascal@20319 57 DEPENDS="pkg-config"
pascal@20319 58 mkdir -p $fs/usr/lib
pascal@20319 59 cp -a $install/usr/include $fs/usr
pascal@20319 60 cp -a $install/usr/lib/*.*a $fs/usr/lib
pascal@20319 61 cp -a $install/usr/lib/directfb-* $fs/usr/lib
pascal@20319 62 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
pascal@20319 63 find $fs/usr/lib -name "*.so*" -exec rm '{}' \;
pascal@20319 64 ;;
pascal@20319 65 esac
pascal@11220 66 }