wok-next view directfb/receipt @ rev 20458
Unlock x86_64 architecture
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 12:12:14 2018 +0200 (2018-03-02) |
parents | dd145c435e4b |
children | d43bf7aae921 |
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"
14 BUILD_DEPENDS="libpng12-dev jpeg-dev freetype-dev tslib-dev perl"
15 SPLIT="directfb-dev"
17 # Handle cross compilation.
18 case "$ARCH" in
19 arm)
20 BUILD_DEPENDS="libpng12-dev jpeg-dev freetype-dev"
21 ARCH_ARGS="--with-gfxdrivers=none --disable-x11"
22 export LDFLAGS="$LDFLAGS -L/cross/arm/sysroot/usr/lib"
23 export CPPFLAGS="$CPPFLAGS -I/cross/arm/sysroot/usr/include" ;;
24 esac
26 # Handle SliTaz arch installation.
27 case "$SLITAZ_ARCH" in
28 arm) DEPENDS="libpng12 libjpeg freetype zlib" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 ./configure \
35 --prefix=/usr \
36 --sysconfdir=/etc \
37 --with-dither-rgb16=none \
38 $CONFIGURE_ARGS $ARCH_ARGS &&
39 make && make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 case $PACKAGE in
46 directfb)
47 DEPENDS="libpng12 libjpeg freetype tslib zlib"
48 mkdir -p $fs/usr/lib $fs/usr/share
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 cp -a $install/usr/lib/directfb-* $fs/usr/lib
52 cp -a $install/usr/share/directfb-* $fs/usr/share
53 find $fs/usr/lib -name "*.*a" -exec rm '{}' \;
54 ;;
55 directfb-dev)
56 DEPENDS="pkg-config"
57 mkdir -p $fs/usr/lib
58 cp -a $install/usr/include $fs/usr
59 cp -a $install/usr/lib/*.*a $fs/usr/lib
60 cp -a $install/usr/lib/directfb-* $fs/usr/lib
61 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
62 find $fs/usr/lib -name "*.so*" -exec rm '{}' \;
63 ;;
64 esac
65 }