mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
package/opencv3: fix OPENCV3_CLEAN_INSTALL_{DOC, CMAKE}
opencv3 does not install anything in $(TARGET_DIR)/usr/share/OpenCV/doc
so drop OPENCV3_CLEAN_INSTALL_DOC
However it installs its licence files in
$(TARGET_DIR)/usr/share/licenses/opencv3 so add
OPENCV3_CLEAN_INSTALL_LICENSE
Moreover, the cmake hook does not catch all cmake files and missed the
valgrind files so update OPENCV3_CLEAN_INSTALL_CMAKE and add
OPENCV3_CLEAN_INSTALL_VALGRIND to delete those files:
OpenCVConfig.cmake OpenCVConfig-version.cmake OpenCVModules.cmake OpenCVModules-release.cmake valgrind_3rdparty.supp valgrind.supp
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 436f4804b2)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
2ef3e19b7b
commit
65864c4cf4
@@ -353,16 +353,21 @@ OPENCV3_CONF_OPTS += \
|
||||
endif
|
||||
|
||||
# Installation hooks:
|
||||
define OPENCV3_CLEAN_INSTALL_DOC
|
||||
$(RM) -fr $(TARGET_DIR)/usr/share/OpenCV/doc
|
||||
define OPENCV3_CLEAN_INSTALL_LICENSE
|
||||
$(RM) -fr $(TARGET_DIR)/usr/share/licenses/opencv3
|
||||
endef
|
||||
OPENCV3_POST_INSTALL_TARGET_HOOKS += OPENCV3_CLEAN_INSTALL_DOC
|
||||
OPENCV3_POST_INSTALL_TARGET_HOOKS += OPENCV3_CLEAN_INSTALL_LICENSE
|
||||
|
||||
define OPENCV3_CLEAN_INSTALL_CMAKE
|
||||
$(RM) -f $(TARGET_DIR)/usr/share/OpenCV/OpenCVConfig*.cmake
|
||||
$(RM) -f $(TARGET_DIR)/usr/share/OpenCV/OpenCV*.cmake
|
||||
endef
|
||||
OPENCV3_POST_INSTALL_TARGET_HOOKS += OPENCV3_CLEAN_INSTALL_CMAKE
|
||||
|
||||
define OPENCV3_CLEAN_INSTALL_VALGRIND
|
||||
$(RM) -f $(TARGET_DIR)/usr/share/OpenCV/valgrind*
|
||||
endef
|
||||
OPENCV3_POST_INSTALL_TARGET_HOOKS += OPENCV3_CLEAN_INSTALL_VALGRIND
|
||||
|
||||
ifneq ($(BR2_PACKAGE_OPENCV3_INSTALL_DATA),y)
|
||||
define OPENCV3_CLEAN_INSTALL_DATA
|
||||
$(RM) -fr $(TARGET_DIR)/usr/share/OpenCV/haarcascades \
|
||||
|
||||
Reference in New Issue
Block a user