diff options
| -rw-r--r-- | meta-oe/recipes-support/opencv/opencv_4.12.0.bb | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv_4.12.0.bb b/meta-oe/recipes-support/opencv/opencv_4.12.0.bb index d1ab87b06f..27499caa92 100644 --- a/meta-oe/recipes-support/opencv/opencv_4.12.0.bb +++ b/meta-oe/recipes-support/opencv/opencv_4.12.0.bb | |||
| @@ -200,11 +200,6 @@ do_install:append() { | |||
| 200 | mv ${D}/usr/lib/* ${D}/${libdir}/ | 200 | mv ${D}/usr/lib/* ${D}/${libdir}/ |
| 201 | rm -rf ${D}/usr/lib | 201 | rm -rf ${D}/usr/lib |
| 202 | fi | 202 | fi |
| 203 | # remove build host path to improve reproducibility | ||
| 204 | if [ -f ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake ]; then | ||
| 205 | sed -e 's@${STAGING_DIR_HOST}@@g' \ | ||
| 206 | -i ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake | ||
| 207 | fi | ||
| 208 | # remove setup_vars_opencv4.sh as its content is confusing and useless | 203 | # remove setup_vars_opencv4.sh as its content is confusing and useless |
| 209 | if [ -f ${D}${bindir}/setup_vars_opencv4.sh ]; then | 204 | if [ -f ${D}${bindir}/setup_vars_opencv4.sh ]; then |
| 210 | rm -rf ${D}${bindir}/setup_vars_opencv4.sh | 205 | rm -rf ${D}${bindir}/setup_vars_opencv4.sh |
| @@ -222,3 +217,13 @@ do_install:append() { | |||
| 222 | mv ${D}/${bindir}/shape ${D}/${bindir}/opencv_shape | 217 | mv ${D}/${bindir}/shape ${D}/${bindir}/opencv_shape |
| 223 | fi | 218 | fi |
| 224 | } | 219 | } |
| 220 | |||
| 221 | do_install:append:class-target() { | ||
| 222 | # remove build host path to improve reproducibility | ||
| 223 | if [ -f ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake ]; then | ||
| 224 | sed -e 's@${STAGING_DIR_HOST}@@g' \ | ||
| 225 | -i ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake | ||
| 226 | fi | ||
| 227 | } | ||
| 228 | |||
| 229 | BBCLASSEXTEND = "native" | ||
