wok annotate directfb/receipt @ rev 24264

updated perl-tk (804.034 -> 804.036)
author Hans-G?nter Theisgen
date Sun Jan 02 10:23:39 2022 +0100 (2022-01-02)
parents e79e7e35ca5c
children bfabe25c21ff
rev   line source
pascal@11220 1 # SliTaz package receipt.
pascal@11220 2
pascal@11220 3 PACKAGE="directfb"
Hans-G?nter@20836 4 VERSION="1.7.7"
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@23974 9 WEB_SITE="https://www.directfb.org/"
Hans-G?nter@20836 10
pascal@11220 11 SOURCE="DirectFB"
pascal@11220 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@20836 13 WGET_URL="http://sources.buildroot.net/$TARBALL"
pascal@11220 14
Hans-G?nter@23754 15 DEPENDS="freetype libjpeg libpng tslib zlib"
Hans-G?nter@23754 16 BUILD_DEPENDS="autoconf automake fluxcomp freetype-dev gcc83-lib-base
Hans-G?nter@23754 17 jpeg-dev libpng-dev libtool perl tslib-dev"
Hans-G?nter@23754 18
Hans-G?nter@20836 19 HOST_ARCH="i486 arm"
pascal@15579 20
pankso@15969 21 # Handle cross compilation.
pankso@15969 22 case "$ARCH" in
pankso@15969 23 arm)
pankso@15996 24 BUILD_DEPENDS="libpng-dev jpeg-dev freetype-dev"
pankso@15996 25 ARCH_ARGS="--with-gfxdrivers=none --disable-x11"
pascal@17670 26 export LDFLAGS="$LDFLAGS -L/cross/arm/sysroot/usr/lib"
pascal@17670 27 export CPPFLAGS="$CPPFLAGS -I/cross/arm/sysroot/usr/include" ;;
Hans-G?nter@23755 28 i?86)
Hans-G?nter@23755 29 export LDFLAGS="$LDFLAGS -lstdc++"
pankso@15969 30 esac
pankso@15969 31
pankso@15969 32 # Handle SliTaz arch installation.
pankso@15969 33 case "$SLITAZ_ARCH" in
pankso@15996 34 arm) DEPENDS="libpng libjpeg freetype zlib" ;;
pankso@15969 35 esac
pankso@15969 36
pascal@11220 37 # Rules to configure and make the package.
pascal@11220 38 compile_rules()
pascal@11220 39 {
Hans-G?nter@23754 40 ./autogen.sh \
Hans-G?nter@23754 41 --prefix=/usr \
Hans-G?nter@23754 42 --sysconfdir=/etc \
Hans-G?nter@23754 43 --with-dither-rgb16=none \
Hans-G?nter@23754 44 $CONFIGURE_ARGS \
Hans-G?nter@23754 45 $ARCH_ARGS &&
Hans-G?nter@20836 46 make -j 1 &&
Hans-G?nter@20836 47 make DESTDIR=$DESTDIR install
pascal@11220 48 }
pascal@11220 49
pascal@11220 50 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11220 51 genpkg_rules()
pascal@11220 52 {
Hans-G?nter@23754 53 mkdir -p $fs/usr/lib
Hans-G?nter@23754 54 mkdir -p $fs/usr/share
Hans-G?nter@23754 55
Hans-G?nter@23754 56 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23754 57 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@23754 58 cp -a $install/usr/lib/directfb-* $fs/usr/lib
Hans-G?nter@23754 59 cp -a $install/usr/share/directfb-* $fs/usr/share
pascal@11220 60 find $fs/usr/lib -name "*.*a" -exec rm '{}' \;
pascal@11220 61 }