Advertisement
Guest User

Untitled

a guest
Mar 26th, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. SUMMARY = "Wrapper package for OpenCV python bindings."
  2. HOMEPAGE = "https://github.com/opencv/opencv-python"
  3. LICENSE = "Apache-2.0"
  4. LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
  5.  
  6. # Installing aarch64 specific wheels, could be changed in the future
  7. COMPATIBLE_MACHINE = "^$"
  8. COMPATIBLE_MACHINE:aarch64 = "^(aarch64)$"
  9.  
  10. SRC_URI = "https://files.pythonhosted.org/packages/b7/06/da0bf9d42418d252055c51db8197fb7370795dec738e8c3fdb96c31583ed/opencv_python_headless-4.7.0.72-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"
  11.  
  12. SRC_URI[md5sum] = "153fe6b6bb3eeadd99b165493abac7fb"
  13. SRC_URI[sha256sum] = "f448aea686069474e701223a2ed192df95f501a092b5e06e39171b4927564692"
  14.  
  15. INSANE_SKIP:${PN}:append = " already-stripped file-rdeps"
  16.  
  17. inherit python3-dir
  18.  
  19. DEPENDS += "unzip-native"
  20.  
  21. RDEPENDS:${PN} += "python3-numpy"
  22.  
  23. do_install() {
  24. install -d ${D}${PYTHON_SITEPACKAGES_DIR}
  25.  
  26. unzip ${WORKDIR}/opencv_python_headless-4*_aarch64.whl -d ${D}${PYTHON_SITEPACKAGES_DIR}/
  27. }
  28.  
  29. FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}/*"
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement