wok-current rev 16631

ARM: add wiringpi-piface
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 11 17:09:05 2014 +0200 (2014-05-11)
parents d6288bc06bc4
children 819e017f397d
files wiringpi-piface/receipt wiringpi/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/wiringpi-piface/receipt	Sun May 11 17:09:05 2014 +0200
     1.3 @@ -0,0 +1,25 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="wiringpi-piface"
     1.7 +GITHASH="f18c8f7204d6354220fd6754578b3daa43734e1b"
     1.8 +VERSION="${GITHASH:0:7}"
     1.9 +CATEGORY="system-tools"
    1.10 +SHORT_DESC="The WiringPi PiFace examples."
    1.11 +MAINTAINER="pankso@slitaz.org"
    1.12 +LICENSE="LGPL"
    1.13 +WEB_SITE="http://wiringpi.com/"
    1.14 +TAGS="raspberrypi rpi"
    1.15 +HOST_ARCH="arm"
    1.16 +
    1.17 +WANTED="wiringpi"
    1.18 +
    1.19 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.20 +genpkg_rules()
    1.21 +{
    1.22 +	mkdir -p $fs/usr/lib/wiringpi/piface
    1.23 +	cd ${src}/examples/PiFace
    1.24 +	for ex in $(ls *.c)
    1.25 +	do
    1.26 +		cp -a ${ex%.c} $fs/usr/lib/wiringpi/piface/${ex%.c}
    1.27 +	done
    1.28 +}
     2.1 --- a/wiringpi/receipt	Sun May 11 11:24:26 2014 +0200
     2.2 +++ b/wiringpi/receipt	Sun May 11 17:09:05 2014 +0200
     2.3 @@ -7,13 +7,13 @@
     2.4  SHORT_DESC="GPIO access library written in C for the Raspberry Pi/BCM2835."
     2.5  MAINTAINER="pankso@slitaz.org"
     2.6  LICENSE="LGPL"
     2.7 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
     2.8 +TARBALL="$PACKAGE-$VERSION.tar.tgz"
     2.9  WEB_SITE="http://wiringpi.com/"
    2.10 -WGET_URL="git|git://git.drogon.net/wiringPi"
    2.11 +WGET_URL="https://git.drogon.net/?p=wiringPi;a=snapshot;h=${GITHASH};sf=tgz"
    2.12  TAGS="raspberrypi rpi"
    2.13  HOST_ARCH="arm"
    2.14  
    2.15 -RELATED="wiringpi-dev wiringpi-piglow"
    2.16 +RELATED="wiringpi-dev wiringpi-piglow wiringpi-piface"
    2.17  
    2.18  # Rules to configure and make the package.
    2.19  compile_rules()
    2.20 @@ -47,12 +47,21 @@
    2.21  	make && make install
    2.22  	
    2.23  	# Extra: PiGlow --> wiringpi-piglow
    2.24 +	echo "Compiling PiGlow example..."
    2.25  	cd ${src}/examples/PiGlow
    2.26  	sed -i \
    2.27  		-e s'#^INCLUDE.*#INCLUDE = -I. -I${DESTDIR}/usr/include#' \
    2.28  		-e s'#^LDFLAGS.*#LDFLAGS= -L${DESTDIR}/usr/lib#' \
    2.29  		-e s"#^CC.*#CC = ${HOST_SYSTEM}-gcc#" Makefile
    2.30  	make
    2.31 +	
    2.32 +	# Extra: PiFace --> wiringpi-piface
    2.33 +	cd ${src}/examples/PiFace
    2.34 +	sed -i \
    2.35 +		-e s'#^INCLUDE.*#INCLUDE = -I. -I${DESTDIR}/usr/include#' \
    2.36 +		-e s'#^LDFLAGS.*#LDFLAGS= -L${DESTDIR}/usr/lib#' \
    2.37 +		-e s"#^CC.*#CC = ${HOST_SYSTEM}-gcc#" Makefile
    2.38 +	make
    2.39  }
    2.40  
    2.41  # SliTaz package testsuite