From 9fe9596e31e1ee1450655af643fcf3be234a06c3 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Mon, 2 Feb 2015 11:56:32 +0100 Subject: [PATCH] opencv: disable unwanted components/features explicitly Signed-off-by: Nicolas Thill --- libs/opencv/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libs/opencv/Makefile b/libs/opencv/Makefile index 20ba20c3f..9abc8ad5a 100644 --- a/libs/opencv/Makefile +++ b/libs/opencv/Makefile @@ -1,5 +1,6 @@ # # Copyright (C) 2013-2014 wrtnode.com +# Copyright (C) 2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=opencv PKG_VERSION:=2.4.10 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip PKG_SOURCE_URL:=http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.10/ @@ -45,7 +46,14 @@ PKG_INSTALL:=1 CMAKE_OPTIONS += -DBUILD_opencv_gpu:BOOL=OFF \ -DWITH_1394:BOOL=OFF -DBUILD_opencv_stitching:BOOL=OFF \ - -DBUILD_opencv_superres:BOOL=OFF -DBUILD_opencv_ts:BOOL=OFF + -DBUILD_opencv_superres:BOOL=OFF -DBUILD_opencv_ts:BOOL=OFF \ + -DBUILD_opencv_highgui:BOOL=OFF \ + -DBUILD_opencv_videostab:BOOL=OFF \ + -DWITH_FFMPEG:BOOL=OFF \ + -DWITH_GSTREAMER:BOOL=OFF \ + -DWITH_LIBV4L:BOOL=OFF \ + -DWITH_PNG:BOOL=OFF \ + -DWITH_TIFF:BOOL=OFF \ define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include @@ -58,7 +66,6 @@ endef define Package/opencv/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopencv* $(1)/usr/lib/ - endef $(eval $(call BuildPackage,opencv))