Advertisement
thebigkahune

openvoip.inc

Jun 22nd, 2022
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. VERSION_MAJ="${@d.getVar("PV").split("-")[0]}"
  2.  
  3. do_compile:prepend() {
  4. # make clean
  5. }
  6.  
  7. COMPATIBLE_MACHINE = "(x86_64|aarch64)"
  8.  
  9. BUILD_DIR:aarch64="lib_linux_aarch64"
  10. BUILD_DIR:x86_64="lib_linux_x86_64"
  11.  
  12. INSANE_SKIP += "pkgconfig"
  13.  
  14. SYSROOT_DIRS += "/usr/src"
  15.  
  16. do_install() {
  17. install -d ${D}${libdir}
  18.  
  19. #dbg
  20. install -d ${D}${libdir}/.debug
  21. install -m 0644 ${S}/${BUILD_DIR}/${LIB_NAME}.so.${PV}.debug ${D}${libdir}/.debug/
  22.  
  23. install -d ${D}${prefix}/src/${PN}
  24. cp -r ${S}/include ${D}${prefix}/src/${PN}/
  25. cp -r ${S}/src ${D}${prefix}/src/${PN}/
  26. cp ${S}/${PN}.pc ${D}${prefix}/src/${PN}/
  27. cp -r ${S}/make ${D}${prefix}/src/${PN}/
  28.  
  29. #staticdev
  30. install -m 0644 ${S}/${BUILD_DIR}/${LIB_NAME}_s.a ${D}${libdir}
  31.  
  32. #dev
  33. lnr ${D}${libdir}/${LIB_NAME}.so.${PV} ${D}${libdir}/${LIB_NAME}.so
  34. install -d ${D}${includedir}/${BPN}
  35. cp -r ${S}/include/* ${D}${includedir}/${BPN}
  36. install -d ${D}${libdir}/pkgconfig
  37. install -m 0644 ${S}/${PN}.pc ${D}${libdir}/pkgconfig
  38.  
  39. #reg
  40. install -m 0644 ${S}/${BUILD_DIR}/${LIB_NAME}.so.${PV} ${D}${libdir}
  41. lnr ${D}${libdir}/${LIB_NAME}.so.${PV} ${D}${libdir}/${LIB_NAME}.so.${VERSION_MAJ}
  42. }
  43.  
  44. FILES:${PN}-dbg += "${prefix}/src/${PN}/*"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement