blob: e78c58a29e218b89ac09889eadcfd84206d1c0fa [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 Bishop1a4b7ee2018-12-16 17:11:34 -08007DEPENDS += "virtual/crypt"
8
9# tag 2.46
10SRCREV = "8d188fa0e00bb8c6ff6eddd07bf92857e9bd533a"
Patrick Williams8b8bc412016-08-17 15:02:23 -050011
12S = "${WORKDIR}/git"
13
14SRC_URI = "git://git.drogon.net/wiringPi \
15 file://0001-Add-initial-cross-compile-support.patch \
Patrick Williams8b8bc412016-08-17 15:02:23 -050016 "
17
Brad Bishopd7bf8c12018-02-25 22:55:05 -050018COMPATIBLE_MACHINE = "^rpi$"
Patrick Williams8b8bc412016-08-17 15:02:23 -050019
Patrick Williamsb2e6a9b2017-02-23 20:31:26 -060020CFLAGS_prepend = "-I${S}/wiringPi -I${S}/devLib "
Patrick Williams8b8bc412016-08-17 15:02:23 -050021
22EXTRA_OEMAKE += "'INCLUDE_DIR=${D}${includedir}' 'LIB_DIR=${D}${libdir}'"
23EXTRA_OEMAKE += "'DESTDIR=${D}/usr' 'PREFIX=""'"
24
25do_compile() {
26 oe_runmake -C devLib
27 oe_runmake -C wiringPi
28 oe_runmake -C gpio 'LDFLAGS=${LDFLAGS} -L${S}/wiringPi -L${S}/devLib'
29}
30
31do_install() {
32 oe_runmake -C devLib install
33 oe_runmake -C wiringPi install
34 oe_runmake -C gpio install
35}