wok-next view libpifacedigital/receipt @ rev 21597
updated dosbox (0.74-2 -> 0.74.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 24 14:18:09 2020 +0100 (2020-06-24) |
parents | c4e53a39395a |
children |
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="devel@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="http://www.piface.org.uk/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/piface/libpifacedigital/archive/v$VERSION.tar.gz"
14 BUILD_DEPENDS="libmcp23s17"
16 compile_rules() {
17 sed \
18 -e "s/^CC=gcc/CC=${HOST_SYSTEM}-gcc/" \
19 -e "s/gcc -o/${HOST_SYSTEM}-gcc -o/" \
20 -e "s/^CFLAGS=.*/CFLAGS=-c -Wall $CFLAGS/" \
21 -e "s#INCPATHS=.*#INCPATHS=/usr/include#" \
22 -e "s#LIBPATHS=.*#LIBPATHS=/usr/lib#" \
23 -i Makefile
25 make &&
26 make example &&
27 make pifacedigital
28 }
30 genpkg_rules() {
31 mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/include
32 cp -a $src/$PACKAGE.a $fs/usr/lib
33 cp -a $src/pifacedigital $fs/usr/bin
34 cp -a $src/example $fs/usr/bin/pifacedigital-test
35 cp -a $src/src/pifacedigital.h $fs/usr/include
36 DEPENDS="i2c-tools libmcp23s17"
37 TAGS="raspberrypi rpi"
38 }