Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DESCRIPTION = "pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO)."
- SECTION = "recipes-core"
- DEPENDS = ""
- RDEPENDS_${PN} += ""
- LICENSE = "UNLICENCED"
- LIC_FILES_CHKSUM = "file://UNLICENCE;md5=61287f92700ec1bdf13bc86d8228cd13"
- SRC_URI="git://github.com/joan2937/pigpio.git \
- file://mypigpio.pc"
- SRCREV = "934874be2fa34a525beb33e8cb75e378df587860"
- # Make sure our source directory (for the build) matches the directory structure in the tarball
- S = "${WORKDIR}/git"
- inherit pkgconfig
- TARGET_CC_ARCH += "${LDFLAGS}"
- do_compile(){
- oe_runmake CROSS_PREFIX=arm-poky-linux-gnueabi-
- }
- do_install(){
- oe_runmake install
- }
- do_install_append(){
- install -d ${D}${libdir}/pkgconfig
- install -m 0644 ${WORKDIR}/mypigpio.pc ${D}${libdir}/pkgconfig/pigpio.pc
- }
- FILES_${PN} += "/opt/pigpio"
- FILES_${PN}-doc += "/usr/man/man1/ /usr/man/man3/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement