blob: 9d2206bc1cbb0c56e166055a9611ec4e8b51a895 [file] [log] [blame]
Patrick Williams8b8bc412016-08-17 15:02:23 -05001DESCRIPTION = "A library to control Raspberry Pi GPIO channels"
2HOMEPAGE = "https://projects.drogon.net/raspberry-pi/wiringpi/"
3SECTION = "devel/libs"
4LICENSE = "LGPLv3+"
5LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02"
6
7# tag 2.29
8SRCREV = "d79506694d7ba1c3da865d095238289d6175057d"
9
10S = "${WORKDIR}/git"
11
12SRC_URI = "git://git.drogon.net/wiringPi \
13 file://0001-Add-initial-cross-compile-support.patch \
14 file://0001-include-asm-ioctl.h-directly-for-_IOC_SIZEBITS.patch \
15 "
16
17COMPATIBLE_MACHINE = "raspberrypi"
18
19CFLAGS_prepend = "-I${S}/wiringPi -I${S}/devLib"
20
21EXTRA_OEMAKE += "'INCLUDE_DIR=${D}${includedir}' 'LIB_DIR=${D}${libdir}'"
22EXTRA_OEMAKE += "'DESTDIR=${D}/usr' 'PREFIX=""'"
23
24do_compile() {
25 oe_runmake -C devLib
26 oe_runmake -C wiringPi
27 oe_runmake -C gpio 'LDFLAGS=${LDFLAGS} -L${S}/wiringPi -L${S}/devLib'
28}
29
30do_install() {
31 oe_runmake -C devLib install
32 oe_runmake -C wiringPi install
33 oe_runmake -C gpio install
34}