wok diff xstroke/receipt @ rev 16488

libgd: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 23 07:18:07 2014 +0000 (2014-04-23)
parents
children 6135577f4d08
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xstroke/receipt	Wed Apr 23 07:18:07 2014 +0000
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="xstroke"
     1.7 +VERSION="0.6"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="Full-screen gesture recognition program for X."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://cworth.org/~cworth/papers/xstroke/"
    1.14 +WGET_URL="http://davesource.com/Projects/xstroke/xstroke.tar.gz"
    1.15 +HOST_ARCH="i486 arm"
    1.16 +
    1.17 +DEPENDS="xorg-libX11"
    1.18 +BUILD_DEPENDS="xorg-libX11-dev"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	case "$ARCH" in
    1.24 +		i?86) sysroot="" ;;
    1.25 +		arm*) sysroot="/cross/$ARCH/sysroot" ;;
    1.26 +	esac
    1.27 +	sed -i \
    1.28 +		-e s"#^CC.*#CC = ${HOST_SYSTEM}-gcc#" \
    1.29 +		-e s"#^INCLUDE.*#INCLUDE = -I${sysroot}/usr/include#" \
    1.30 +		-e s"#^LDFLAGS.*#LDFLAGS = -L${sysroot}/usr/lib#" Makefile &&
    1.31 +	make xstroke
    1.32 +}
    1.33 +
    1.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 +genpkg_rules()
    1.36 +{
    1.37 +	mkdir -p $fs/usr/bin $fs/usr/share/doc/${PACKAGE}
    1.38 +	cp -a ${src}/${PACKAGE} $fs/usr/bin
    1.39 +	cp -a ${src}/${PACKAGE}.man \
    1.40 +		$fs/usr/share/doc/${PACKAGE}/${PACKAGE}.txt
    1.41 +}