Advertisement
Guest User

camke recipe

a guest
Aug 22nd, 2013
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. DESCRIPTION = "Helloworld application"
  2. SECTION = "examples"
  3. LICENSE = "CLOSED"
  4. #LIC_FILES_CHKSUM = "file://README;md5=02f5e4d592a9fd9395282e8c0453e0bc"
  5. PR = "r0"
  6.  
  7. require cmake.inc
  8.  
  9. inherit cmake
  10.  
  11. DEPENDS += "curl expat zlib libarchive ncurses"
  12.  
  13. SRC_URI = "git://https://github.com/zafrullahsyed/cameracapture.git;protocol=https;tag=v0.1"
  14.  
  15. # Strip ${prefix} from ${docdir}, set result into docdir_stripped
  16. python () {
  17. prefix=d.getVar("prefix", True)
  18. docdir=d.getVar("docdir", True)
  19.  
  20. if not docdir.startswith(prefix):
  21. raise bb.build.FuncFailed('docdir must contain prefix as its prefix')
  22.  
  23. docdir_stripped = docdir[len(prefix):]
  24. if len(docdir_stripped) > 0 and docdir_stripped[0] == '/':
  25. docdir_stripped = docdir_stripped[1:]
  26.  
  27. d.setVar("docdir_stripped", docdir_stripped)
  28. }
  29.  
  30. EXTRA_OECMAKE=" \
  31. -DCMAKE_DOC_DIR=${docdir_stripped}/cmake-${CMAKE_MAJOR_VERSION} \
  32. -DCMAKE_USE_SYSTEM_LIBRARIES=1 \
  33. -DKWSYS_CHAR_IS_SIGNED=1 \
  34. -DBUILD_CursesDialog=0 \
  35. ${@base_contains('DISTRO_FEATURES', 'largefile', '-DKWSYS_LFS_WORKS=1', '-DKWSYS_LFS_DISABLE=1', d)} \
  36. "
  37.  
  38. FILES_${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION}"
  39. FILES_${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}"
  40.  
  41. BBCLASSEXTEND = "nativesdk"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement