Guest User

PJSIP recip yocto

a guest
Apr 4th, 2017
292
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DESCRIPTION = "Open source SIP stack and media stack for presence, im/instant \
  2. messaging, and multimedia communication"
  3. SECTION = "libs"
  4. HOMEPAGE = "http://www.pjsip.org/"
  5. # there are various 3rd party sources which may or may not be part of the
  6. # build, there license term vary or are not explicitely specified.
  7. LICENSE = "GPLv2+ & Proprietary"
  8.  
  9. DEPENDS = "alsa-lib libv4l openssl util-linux"
  10.  
  11. PARALLEL_MAKE = ""
  12.  
  13. SRC_URI = "http://www.pjsip.org/release/${PV}/pjproject-${PV}.tar.bz2 "
  14. SRC_URI[md5sum] = "c347a672679e7875ce572e18517884b2"
  15. SRC_URI[sha256sum] = "2f5a1da1c174d845871c758bd80fbb580fca7799d3cfaa0d3c4e082b5161c7b4"
  16. LIC_FILES_CHKSUM = "file://README.txt;endline=16;md5=e7413c72dd9334edfa7dc723eed8644b"
  17.  
  18. S = "${WORKDIR}/pjproject-${PV}"
  19.  
  20. inherit autotools-brokensep pkgconfig pythonnative
  21.  
  22. EXTRA_OECONF += "STAGING_DIR=${STAGING_DIR_NATIVE}"
  23. # webrtc fails compiling, emmintrin.h missing (the file is x86 specific, sse2)
  24. EXTRA_OECONF_arm += " --disable-libwebrtc"
  25.  
  26. do_configure_prepend () {
  27. export LD="${CC}"
  28. echo "export CFLAGS += -fPIC" > user.mak
  29. echo "export LDFLAGS += -fuse-ld=bfd" >> user.mak
  30. }
  31.  
  32. do_compile_append() {
  33. export BUILD_SYS
  34. export HOST_SYS
  35. export STAGING_INCDIR
  36. export STAGING_LIBDIR
  37. cd ${S}/pjsip-apps/src/python
  38. oe_runmake
  39. }
  40.  
  41. do_compile_prepend() {
  42. oe_runmake dep
  43. }
  44.  
  45. do_install_prepend() {
  46. install -d ${D}/usr/bin
  47. install -m 755 ${S}/pjsip-apps/bin/pj* ${D}/usr/bin
  48. install -d ${D}/usr/pjsip-python
  49. cp -r ${S}/pjsip-apps/src/python/* ${D}/usr/pjsip-python --no-preserve=ownership
  50.  
  51. }
  52.  
  53. do_install_append() {
  54. # remove the absolute path to the host's include dir
  55. sed -i 's:\-I/usr/include::' ${D}/usr/lib/pkgconfig/libpjproject.pc
  56. # remove the fdebug-prefix-map options
  57. sed -i 's:\-fdebug-prefix-map[a-zA-Z0-9\._\/=\-]*::g' ${D}/usr/lib/pkgconfig/libpjproject.pc
  58. }
RAW Paste Data