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 | |
| 7 | # tag 2.29 |
| 8 | SRCREV = "d79506694d7ba1c3da865d095238289d6175057d" |
| 9 | |
| 10 | S = "${WORKDIR}/git" |
| 11 | |
| 12 | SRC_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 | |
| 17 | COMPATIBLE_MACHINE = "raspberrypi" |
| 18 | |
| 19 | CFLAGS_prepend = "-I${S}/wiringPi -I${S}/devLib" |
| 20 | |
| 21 | EXTRA_OEMAKE += "'INCLUDE_DIR=${D}${includedir}' 'LIB_DIR=${D}${libdir}'" |
| 22 | EXTRA_OEMAKE += "'DESTDIR=${D}/usr' 'PREFIX=""'" |
| 23 | |
| 24 | do_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 | |
| 30 | do_install() { |
| 31 | oe_runmake -C devLib install |
| 32 | oe_runmake -C wiringPi install |
| 33 | oe_runmake -C gpio install |
| 34 | } |