wok view directfb-examples/receipt @ rev 24643

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