wok diff wiringpi/receipt @ rev 16596

Add piclass-code-examples (with 8x8 examples)
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 07 11:14:26 2014 +0200 (2014-05-07)
parents 84d4534a5de3
children ebe935a13106
line diff
     1.1 --- a/wiringpi/receipt	Tue Apr 22 02:05:54 2014 +0200
     1.2 +++ b/wiringpi/receipt	Wed May 07 11:14:26 2014 +0200
     1.3 @@ -10,8 +10,11 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.5  WEB_SITE="http://wiringpi.com/"
     1.6  WGET_URL="git|git://git.drogon.net/wiringPi"
     1.7 +TAGS="raspberrypi rpi"
     1.8  HOST_ARCH="arm"
     1.9  
    1.10 +RELATED="wiringpi-dev wiringpi-piglow"
    1.11 +
    1.12  # Rules to configure and make the package.
    1.13  compile_rules()
    1.14  {
    1.15 @@ -42,6 +45,14 @@
    1.16  	patch -p0 < ${stuff}/gpio-decodePin.patch
    1.17  	mkdir -p ${DESTDIR}/usr/bin
    1.18  	make && make install
    1.19 +	
    1.20 +	# Extra: PiGlow --> wiringpi-piglow
    1.21 +	cd ${src}/examples/PiGlow
    1.22 +	sed -i \
    1.23 +		-e s'#^INCLUDE.*#INCLUDE = -I. -I${DESTDIR}/usr/include#' \
    1.24 +		-e s'#^LDFLAGS.*#LDFLAGS= -L${DESTDIR}/usr/lib#' \
    1.25 +		-e s"#^CC.*#CC = ${HOST_SYSTEM}-gcc#" Makefile
    1.26 +	make
    1.27  }
    1.28  
    1.29  # SliTaz package testsuite