wok-next view directfb/receipt @ rev 20577
More fix libtool
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 14 03:34:33 2018 +0300 (2018-04-14) |
parents | 757d032c55c7 |
children | 3bec5f368ce1 |
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 WEB_SITE="http://www.directfb.org/"
11 SOURCE="DirectFB"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="http://www.directfb.org/downloads/Core/$SOURCE-${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS_arm="libpng12-dev jpeg-dev freetype-dev"
16 BUILD_DEPENDS="libpng12-dev jpeg-dev freetype-dev tslib-dev perl"
17 SPLIT="directfb-dev"
20 compile_rules() {
21 case "$ARCH" in
22 arm)
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 ;;
27 esac
28 ./configure \
29 --with-dither-rgb16=none \
30 $ARCH_ARGS \
31 $CONFIGURE_ARGS &&
32 fix libtool &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 directfb)
40 copy @std
41 DEPENDS="libpng12 libjpeg freetype tslib zlib"
42 case "$SLITAZ_ARCH" in
43 arm) DEPENDS="libpng12 libjpeg freetype zlib" ;;
44 esac
45 ;;
46 *-dev)
47 copy @dev
48 ;;
49 esac
50 }