wok-current view libpifacedigital/receipt @ rev 16603
Small fix to libmcp23s17 + libpifacedigital
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 07 17:53:40 2014 +0200 (2014-05-07) |
parents | 99f5993b3248 |
children | 2f2f071b10df |
line source
1 # SliTaz package receipt.
3 PACKAGE="libpifacedigital"
4 VERSION="0.2.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="A simple library for controlling PiFace Digital."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.piface.org.uk"
11 WGET_URL="https://github.com/piface/libpifacedigital/archive/v${VERSION}.tar.gz"
12 HOST_ARCH="arm"
14 TAGS="raspberrypi rpi"
15 DEPENDS="i2c-tools libmcp23s17"
16 BUILD_DEPENDS="libmcp23s17"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i \
22 -e s"/^CC=gcc/CC=${HOST_SYSTEM}-gcc/" \
23 -e s"/gcc -o/${HOST_SYSTEM}-gcc -o/" \
24 -e s"/^CFLAGS=.*/CFLAGS=-c -Wall $CFLAGS/" \
25 -e s"#INCPATHS=.*#INCPATHS=/usr/include#" \
26 -e s"#LIBPATHS=.*#LIBPATHS=/usr/lib#" Makefile
27 make && make example &&
28 make pifacedigital
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/include
35 cp -a ${src}/${PACKAGE}.a ${fs}/usr/lib
36 cp -a ${src}/pifacedigital ${fs}/usr/bin
37 cp -a ${src}/example ${fs}/usr/bin/pifacedigital-example
38 cp -a ${src}/src/pifacedigital.h ${fs}/usr/include
39 }