blob: f1b01dbe588434074b628b57ced96b121bfa94e2 [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
Brad Bishop6e60e8b2018-02-01 10:27:11 -05007# tag 2.44
8SRCREV = "96344ff7125182989f98d3be8d111952a8f74e15"
Patrick Williams8b8bc412016-08-17 15:02:23 -05009
10S = "${WORKDIR}/git"
11
12SRC_URI = "git://git.drogon.net/wiringPi \
13 file://0001-Add-initial-cross-compile-support.patch \
Patrick Williams8b8bc412016-08-17 15:02:23 -050014 "
15
Brad Bishopd7bf8c12018-02-25 22:55:05 -050016COMPATIBLE_MACHINE = "^rpi$"
Patrick Williams8b8bc412016-08-17 15:02:23 -050017
Patrick Williamsb2e6a9b2017-02-23 20:31:26 -060018CFLAGS_prepend = "-I${S}/wiringPi -I${S}/devLib "
Patrick Williams8b8bc412016-08-17 15:02:23 -050019
20EXTRA_OEMAKE += "'INCLUDE_DIR=${D}${includedir}' 'LIB_DIR=${D}${libdir}'"
21EXTRA_OEMAKE += "'DESTDIR=${D}/usr' 'PREFIX=""'"
22
23do_compile() {
24 oe_runmake -C devLib
25 oe_runmake -C wiringPi
26 oe_runmake -C gpio 'LDFLAGS=${LDFLAGS} -L${S}/wiringPi -L${S}/devLib'
27}
28
29do_install() {
30 oe_runmake -C devLib install
31 oe_runmake -C wiringPi install
32 oe_runmake -C gpio install
33}