wok-current rev 16512

Add wiringpi-piglow (small utility writtrn in C to handle PiGlow leds)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 24 21:18:26 2014 +0200 (2014-04-24)
parents 7b9df94be9aa
children 59d26358e983
files wiringpi-dev/receipt wiringpi-piglow/receipt wiringpi/receipt
line diff
     1.1 --- a/wiringpi-dev/receipt	Thu Apr 24 20:43:02 2014 +0200
     1.2 +++ b/wiringpi-dev/receipt	Thu Apr 24 21:18:26 2014 +0200
     1.3 @@ -8,6 +8,7 @@
     1.4  MAINTAINER="pankso@slitaz.org"
     1.5  LICENSE="LGPL"
     1.6  WEB_SITE="http://wiringpi.com/"
     1.7 +TAGS="raspberrypi rpi"
     1.8  HOST_ARCH="arm"
     1.9  
    1.10  WANTED="wiringpi"
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/wiringpi-piglow/receipt	Thu Apr 24 21:18:26 2014 +0200
     2.3 @@ -0,0 +1,21 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="wiringpi-piglow"
     2.7 +GITHASH="f18c8f7204d6354220fd6754578b3daa43734e1b"
     2.8 +VERSION="${GITHASH:0:7}"
     2.9 +CATEGORY="system-tools"
    2.10 +SHORT_DESC="The WiringPi Piglow utility (useful for SHell scripts)."
    2.11 +MAINTAINER="pankso@slitaz.org"
    2.12 +LICENSE="LGPL"
    2.13 +WEB_SITE="http://wiringpi.com/"
    2.14 +TAGS="raspberrypi rpi"
    2.15 +HOST_ARCH="arm"
    2.16 +
    2.17 +WANTED="wiringpi"
    2.18 +
    2.19 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.20 +genpkg_rules()
    2.21 +{
    2.22 +	mkdir -p $fs/usr/bin
    2.23 +	cp -a ${src}/examples/PiGlow/piglow $fs/usr/bin
    2.24 +}
     3.1 --- a/wiringpi/receipt	Thu Apr 24 20:43:02 2014 +0200
     3.2 +++ b/wiringpi/receipt	Thu Apr 24 21:18:26 2014 +0200
     3.3 @@ -10,8 +10,11 @@
     3.4  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     3.5  WEB_SITE="http://wiringpi.com/"
     3.6  WGET_URL="git|git://git.drogon.net/wiringPi"
     3.7 +TAGS="raspberrypi rpi"
     3.8  HOST_ARCH="arm"
     3.9  
    3.10 +RELATED="wiringpi-dev wiringpi-piglow"
    3.11 +
    3.12  # Rules to configure and make the package.
    3.13  compile_rules()
    3.14  {
    3.15 @@ -42,6 +45,14 @@
    3.16  	patch -p0 < ${stuff}/gpio-decodePin.patch
    3.17  	mkdir -p ${DESTDIR}/usr/bin
    3.18  	make && make install
    3.19 +	
    3.20 +	# Extra: PiGlow --> wiringpi-piglow
    3.21 +	cd ${src}/examples/PiGlow
    3.22 +	sed -i \
    3.23 +		-e s'#^INCLUDE.*#INCLUDE = -I. -I${DESTDIR}/usr/include#' \
    3.24 +		-e s'#^LDFLAGS.*#LDFLAGS= -L${DESTDIR}/usr/lib#' \
    3.25 +		-e s"#^CC.*#CC = ${HOST_SYSTEM}-gcc#" Makefile
    3.26 +	make
    3.27  }
    3.28  
    3.29  # SliTaz package testsuite