Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 1 | DESCRIPTION = "A library to control Raspberry Pi GPIO channels" |
| 2 | HOMEPAGE = "https://projects.drogon.net/raspberry-pi/wiringpi/" |
| 3 | SECTION = "devel/libs" |
| 4 | LICENSE = "LGPLv3+" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02" |
| 6 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 7 | DEPENDS += "virtual/crypt" |
| 8 | |
| 9 | # tag 2.46 |
| 10 | SRCREV = "8d188fa0e00bb8c6ff6eddd07bf92857e9bd533a" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 11 | |
| 12 | S = "${WORKDIR}/git" |
| 13 | |
| 14 | SRC_URI = "git://git.drogon.net/wiringPi \ |
| 15 | file://0001-Add-initial-cross-compile-support.patch \ |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 16 | " |
| 17 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 18 | COMPATIBLE_MACHINE = "^rpi$" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 19 | |
Patrick Williams | b2e6a9b | 2017-02-23 20:31:26 -0600 | [diff] [blame] | 20 | CFLAGS_prepend = "-I${S}/wiringPi -I${S}/devLib " |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 21 | |
| 22 | EXTRA_OEMAKE += "'INCLUDE_DIR=${D}${includedir}' 'LIB_DIR=${D}${libdir}'" |
| 23 | EXTRA_OEMAKE += "'DESTDIR=${D}/usr' 'PREFIX=""'" |
| 24 | |
| 25 | do_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 | |
| 31 | do_install() { |
| 32 | oe_runmake -C devLib install |
| 33 | oe_runmake -C wiringPi install |
| 34 | oe_runmake -C gpio install |
| 35 | } |