wok-current view directfb/receipt @ rev 25594

Use default gcc 6.3 for asunder
author Stanislas Leduc <shann@slitaz.org>
date Thu Aug 31 19:10:51 2023 +0000 (16 months ago)
parents 05c8d8d9d934
children
line source
1 # SliTaz package receipt.
3 PACKAGE="directfb"
4 VERSION="1.7.7"
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="https://www.directfb.org/"
11 SOURCE="DirectFB"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="http://sources.buildroot.net/$TARBALL"
15 DEPENDS="freetype libjpeg libpng tslib zlib"
16 BUILD_DEPENDS="autoconf automake fluxcomp freetype-dev gcc83-lib-base
17 jpeg-dev libpng-dev libtool perl tslib-dev"
19 HOST_ARCH="i486 arm"
21 # Handle cross compilation.
22 case "$ARCH" in
23 arm)
24 BUILD_DEPENDS="libpng-dev jpeg-dev freetype-dev"
25 ARCH_ARGS="--with-gfxdrivers=none --disable-x11"
26 export LDFLAGS="$LDFLAGS -L/cross/arm/sysroot/usr/lib"
27 export CPPFLAGS="$CPPFLAGS -I/cross/arm/sysroot/usr/include" ;;
28 i?86)
29 export LDFLAGS="$LDFLAGS -lstdc++"
30 esac
32 # Handle SliTaz arch installation.
33 case "$SLITAZ_ARCH" in
34 arm) DEPENDS="libpng libjpeg freetype zlib" ;;
35 esac
37 # What is the latest version available today?
38 current_version()
39 {
40 wget -O - ${WGET_URL%/*} 2>/dev/null | \
41 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
42 }
44 # Rules to configure and make the package.
45 compile_rules()
46 {
47 ./autogen.sh \
48 --prefix=/usr \
49 --sysconfdir=/etc \
50 --with-dither-rgb16=none \
51 $CONFIGURE_ARGS \
52 $ARCH_ARGS &&
53 make -j 1 &&
54 make DESTDIR=$DESTDIR install
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/lib
61 mkdir -p $fs/usr/share
63 cp -a $install/usr/bin $fs/usr
64 cp -a $install/usr/lib/*.so* $fs/usr/lib
65 cp -a $install/usr/lib/directfb-* $fs/usr/lib
66 cp -a $install/usr/share/directfb-* $fs/usr/share
67 find $fs/usr/lib -name "*.*a" -exec rm '{}' \;
68 }