wok-next view 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 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="directfb"
4 VERSION="1.4.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Thin library that provides hardware graphics acceleration."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 SOURCE="DirectFB"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.directfb.org/"
12 WGET_URL="http://www.directfb.org/downloads/Core/$SOURCE-${VERSION%.*}/$TARBALL"
13 HOST_ARCH="i486 arm"
15 BUILD_DEPENDS="libpng12-dev jpeg-dev freetype-dev tslib-dev perl"
16 SPLIT="directfb-dev"
18 # Handle cross compilation.
19 case "$ARCH" in
20 arm)
21 BUILD_DEPENDS="libpng12-dev jpeg-dev freetype-dev"
22 ARCH_ARGS="--with-gfxdrivers=none --disable-x11"
23 export LDFLAGS="$LDFLAGS -L/cross/arm/sysroot/usr/lib"
24 export CPPFLAGS="$CPPFLAGS -I/cross/arm/sysroot/usr/include" ;;
25 esac
27 # Handle SliTaz arch installation.
28 case "$SLITAZ_ARCH" in
29 arm) DEPENDS="libpng12 libjpeg freetype zlib" ;;
30 esac
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 ./configure \
36 --prefix=/usr \
37 --sysconfdir=/etc \
38 --with-dither-rgb16=none \
39 $CONFIGURE_ARGS $ARCH_ARGS &&
40 make && make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 case $PACKAGE in
47 directfb)
48 DEPENDS="libpng12 libjpeg freetype tslib zlib"
49 mkdir -p $fs/usr/lib $fs/usr/share
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 cp -a $install/usr/lib/directfb-* $fs/usr/lib
53 cp -a $install/usr/share/directfb-* $fs/usr/share
54 find $fs/usr/lib -name "*.*a" -exec rm '{}' \;
55 ;;
56 directfb-dev)
57 DEPENDS="pkg-config"
58 mkdir -p $fs/usr/lib
59 cp -a $install/usr/include $fs/usr
60 cp -a $install/usr/lib/*.*a $fs/usr/lib
61 cp -a $install/usr/lib/directfb-* $fs/usr/lib
62 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
63 find $fs/usr/lib -name "*.so*" -exec rm '{}' \;
64 ;;
65 esac
66 }