iotivity-example_git.bb 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. SUMMARY = "Iotivity Example"
  2. DESCRIPTION = "Minimalist Iotivity Client/Server application that controle single LED resource using GPIO"
  3. HOMEPAGE = "https://notabug.org/tizen/iotivity-example"
  4. SECTION = "apps"
  5. LICENSE = "Apache-2.0"
  6. LIC_FILES_CHKSUM = "file://COPYING;md5=3b83ef96387f14655fc854ddc3c6bd57"
  7. hash = "8865ad69215cbf4c04365b1f673793b48cc175df"
  8. SRC_URI = "git://notabug.org/tizen/iotivity-example/;branch=master;tag=${hash};protocol=http"
  9. S = "${WORKDIR}/git"
  10. LOCAL_OPT_DIR = "/opt"
  11. LOCAL_OPT_DIR_D = "${D}${LOCAL_OPT_DIR}"
  12. DEPENDS += "iotivity "
  13. config_mraa="1"
  14. DEPENDS += "mraa"
  15. RDEPENDS_${PN} += "mraa"
  16. DEPENDS_${PN} += "iotivity-resource-dev iotivity-resource-thin-staticdev iotivity-service-dev iotivity-service-staticdev"
  17. BBCLASSEXTEND = "native nativesdk"
  18. do_configure() {
  19. }
  20. do_compile() {
  21. cd ${S}
  22. LANG=C
  23. export LANG
  24. unset DISPLAY
  25. LD_AS_NEEDED=1; export LD_AS_NEEDED ;
  26. oe_runmake all \
  27. config_mraa=${config_mraa}
  28. }
  29. do_install() {
  30. export RPM_BUILD_ROOT=${D}
  31. cd ${S}
  32. LANG=C
  33. export LANG
  34. unset DISPLAY
  35. rm -rf ${D}
  36. install -d ${D}
  37. oe_runmake \
  38. install \
  39. DESTDIR=${LOCAL_OPT_DIR_D} \
  40. config_mraa=${config_mraa} \
  41. #eol
  42. }
  43. FILES_${PN} += "${LOCAL_OPT_DIR}/${PN}/client"
  44. FILES_${PN} += "${LOCAL_OPT_DIR}/${PN}/server"
  45. FILES_${PN}-dbg = "${LOCAL_OPT_DIR}/${PN}/.debug"
  46. RDEPENDS_${PN} += "iotivity-resource"
  47. BBCLASSEXTEND = "native nativesdk"