wok annotate directfb-examples/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents 05c8d8d9d934
children
rev   line source
pankso@15996 1 # SliTaz package receipt.
pankso@15996 2
pankso@15996 3 PACKAGE="directfb-examples"
Hans-G?nter@20837 4 VERSION="1.7.0"
pankso@15996 5 CATEGORY="system-tools"
pankso@15996 6 SHORT_DESC="DirectFB examples."
pankso@15996 7 MAINTAINER="pankso@slitaz.org"
pascal@16660 8 LICENSE="MIT"
pascal@23974 9 WEB_SITE="https://www.directfb.org/"
Hans-G?nter@20837 10
pankso@15996 11 SOURCE="DirectFB-examples"
pankso@15996 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@20837 13 WGET_URL="http://sources.buildroot.net/$PACKAGE/$TARBALL"
pankso@15996 14
pankso@15996 15 DEPENDS="directfb"
pankso@15996 16 BUILD_DEPENDS="directfb-dev"
Hans-G?nter@20837 17 HOST_ARCH="i486 arm"
pankso@15996 18
pankso@15996 19 # Handle cross compilation.
pankso@15996 20 case "$ARCH" in
pankso@15996 21 arm)
Hans-G?nter@20847 22 export LDFLAGS="$LDFLAGS -L/cross/arm/sysroot/usr/lib"
pascal@17670 23 export CPPFLAGS="$CPPFLAGS -I/cross/arm/sysroot/usr/include/directfb" ;;
pankso@15996 24 esac
pankso@15996 25
pascal@24439 26 # What is the latest version available today?
pascal@24439 27 current_version()
pascal@24439 28 {
pascal@24439 29 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24439 30 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q
pascal@24439 31 }
pascal@24439 32
pankso@15996 33 # Rules to configure and make the package.
pankso@15996 34 compile_rules()
pankso@15996 35 {
pankso@15996 36 ./configure \
pankso@15996 37 --prefix=/usr \
pankso@15996 38 $CONFIGURE_ARGS &&
Hans-G?nter@20837 39 make -j 1 &&
Hans-G?nter@20850 40 make -j 1 DESTDIR=$DESTDIR install
pankso@15996 41 }
pankso@15996 42
pankso@15996 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@15996 44 genpkg_rules()
pankso@15996 45 {
pankso@15996 46 mkdir -p $fs/usr/lib $fs/usr/share
pankso@15996 47 cp -a $install/usr/bin $fs/usr
pankso@15996 48 cp -a $install/usr/share/directfb-* $fs/usr/share
pankso@15996 49 }
pankso@15996 50
pankso@15996 51 testsuite()
pankso@15996 52 {
pankso@15999 53 readelf -h $install/usr/bin/spacedream
pankso@15996 54 }