wok-6.x diff wiringpi/receipt @ 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 | fe06085e7586 |
children | 819e017f397d |
line diff
1.1 --- a/wiringpi/receipt Thu Apr 24 21:18:26 2014 +0200 1.2 +++ b/wiringpi/receipt Sun May 11 17:09:05 2014 +0200 1.3 @@ -7,13 +7,13 @@ 1.4 SHORT_DESC="GPIO access library written in C for the Raspberry Pi/BCM2835." 1.5 MAINTAINER="pankso@slitaz.org" 1.6 LICENSE="LGPL" 1.7 -TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.8 +TARBALL="$PACKAGE-$VERSION.tar.tgz" 1.9 WEB_SITE="http://wiringpi.com/" 1.10 -WGET_URL="git|git://git.drogon.net/wiringPi" 1.11 +WGET_URL="https://git.drogon.net/?p=wiringPi;a=snapshot;h=${GITHASH};sf=tgz" 1.12 TAGS="raspberrypi rpi" 1.13 HOST_ARCH="arm" 1.14 1.15 -RELATED="wiringpi-dev wiringpi-piglow" 1.16 +RELATED="wiringpi-dev wiringpi-piglow wiringpi-piface" 1.17 1.18 # Rules to configure and make the package. 1.19 compile_rules() 1.20 @@ -47,12 +47,21 @@ 1.21 make && make install 1.22 1.23 # Extra: PiGlow --> wiringpi-piglow 1.24 + echo "Compiling PiGlow example..." 1.25 cd ${src}/examples/PiGlow 1.26 sed -i \ 1.27 -e s'#^INCLUDE.*#INCLUDE = -I. -I${DESTDIR}/usr/include#' \ 1.28 -e s'#^LDFLAGS.*#LDFLAGS= -L${DESTDIR}/usr/lib#' \ 1.29 -e s"#^CC.*#CC = ${HOST_SYSTEM}-gcc#" Makefile 1.30 make 1.31 + 1.32 + # Extra: PiFace --> wiringpi-piface 1.33 + cd ${src}/examples/PiFace 1.34 + sed -i \ 1.35 + -e s'#^INCLUDE.*#INCLUDE = -I. -I${DESTDIR}/usr/include#' \ 1.36 + -e s'#^LDFLAGS.*#LDFLAGS= -L${DESTDIR}/usr/lib#' \ 1.37 + -e s"#^CC.*#CC = ${HOST_SYSTEM}-gcc#" Makefile 1.38 + make 1.39 } 1.40 1.41 # SliTaz package testsuite