wok annotate directfb/receipt @ rev 25518

updated gvim 8.2 -> 9.0.0133 again
author Hans-G?nter Theisgen
date Thu Feb 23 11:06:30 2023 +0100 (20 months ago)
parents 05c8d8d9d934
children
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@24439 37 # What is the latest version available today?
pascal@24439 38 current_version()
pascal@24439 39 {
pascal@24439 40 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24439 41 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24439 42 }
pascal@24439 43
pascal@11220 44 # Rules to configure and make the package.
pascal@11220 45 compile_rules()
pascal@11220 46 {
Hans-G?nter@23754 47 ./autogen.sh \
Hans-G?nter@23754 48 --prefix=/usr \
Hans-G?nter@23754 49 --sysconfdir=/etc \
Hans-G?nter@23754 50 --with-dither-rgb16=none \
Hans-G?nter@23754 51 $CONFIGURE_ARGS \
Hans-G?nter@23754 52 $ARCH_ARGS &&
Hans-G?nter@20836 53 make -j 1 &&
Hans-G?nter@20836 54 make DESTDIR=$DESTDIR install
pascal@11220 55 }
pascal@11220 56
pascal@11220 57 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11220 58 genpkg_rules()
pascal@11220 59 {
Hans-G?nter@23754 60 mkdir -p $fs/usr/lib
Hans-G?nter@23754 61 mkdir -p $fs/usr/share
Hans-G?nter@23754 62
Hans-G?nter@23754 63 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23754 64 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@23754 65 cp -a $install/usr/lib/directfb-* $fs/usr/lib
Hans-G?nter@23754 66 cp -a $install/usr/share/directfb-* $fs/usr/share
pascal@11220 67 find $fs/usr/lib -name "*.*a" -exec rm '{}' \;
pascal@11220 68 }