Advertisement
Guest User

Untitled

a guest
May 10th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.95 KB | None | 0 0
  1. DESCRIPTION = "pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO)."
  2. SECTION = "recipes-core"
  3. DEPENDS = ""
  4. RDEPENDS_${PN} += ""
  5. LICENSE = "UNLICENCED"
  6. LIC_FILES_CHKSUM = "file://UNLICENCE;md5=61287f92700ec1bdf13bc86d8228cd13"
  7.  
  8.  
  9. SRC_URI="git://github.com/joan2937/pigpio.git \
  10.                file://mypigpio.pc"
  11.  
  12. SRCREV = "934874be2fa34a525beb33e8cb75e378df587860"
  13.  
  14. # Make sure our source directory (for the build) matches the directory structure in the tarball
  15. S = "${WORKDIR}/git"
  16.  
  17.  
  18. inherit pkgconfig
  19.  
  20. TARGET_CC_ARCH += "${LDFLAGS}"
  21.  
  22.  
  23. do_compile(){
  24.         oe_runmake CROSS_PREFIX=arm-poky-linux-gnueabi-
  25. }
  26.  
  27. do_install(){
  28.         oe_runmake install
  29. }
  30.  
  31.  
  32. do_install_append(){
  33.         install -d ${D}${libdir}/pkgconfig
  34.         install -m 0644 ${WORKDIR}/mypigpio.pc ${D}${libdir}/pkgconfig/pigpio.pc
  35. }
  36.  
  37. FILES_${PN} += "/opt/pigpio"
  38. FILES_${PN}-doc += "/usr/man/man1/ /usr/man/man3/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement