@ -9,16 +9,23 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := opencv
PKG_NAME := opencv
PKG_VERSION := 3.1.0
PKG_RELEASE := 3
PKG_VERSION := 4.1.1
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .zip
PKG_SOURCE_URL := http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/$( PKG_VERSION) /
PKG_HASH := 1f6990249fdb82804fff40e96fa6d99949023ab0e3277eae4bd459b374e622a4
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL := https://github.com/opencv/opencv
PKG_SOURCE_VERSION := $( PKG_VERSION)
PKG_MIRROR_HASH := c8587820421d2f22acdafe4712d068ae490897dc445bdb4aa128ecaa8e65d3a1
PKG_MAINTAINER :=
PKG_LICENSE := BSD-3-Clause
PKG_LICENSE := BSD-3-Clause
PKG_LICENSE_FILES := LICENSE
PKG_LICENSE_FILES := LICENSE
CMAKE_INSTALL := 1
CMAKE_BINARY_SUBDIR := build
PKG_BUILD_PARALLEL := 1
PKG_USE_MIPS16 := 0
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
@ -35,14 +42,12 @@ define Package/opencv
SECTION:= libs
SECTION:= libs
CATEGORY:= Libraries
CATEGORY:= Libraries
TITLE:= OpenCV
TITLE:= OpenCV
URL:= http://opencv.org/
MAINTAINER:= WRTnode Team <pub@wrtnode.com>
DEPENDS:= +libpthread +librt +libstdcpp +zlib +libjpeg
URL:= https://opencv.org/
DEPENDS:= +libpthread +librt +libatomic +libstdcpp +zlib +libjpeg
e n d e f
e n d e f
PKG_INSTALL := 1
CMAKE_OPTIONS += -DBUILD_opencv_gpu:BOOL= OFF \
CMAKE_OPTIONS += \
-DBUILD_opencv_gpu:BOOL= OFF \
-DWITH_1394:BOOL= OFF -DBUILD_opencv_stitching: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_highgui:BOOL= OFF \
@ -56,15 +61,7 @@ CMAKE_OPTIONS += -DBUILD_opencv_gpu:BOOL=OFF \
-DCMAKE_VERBOSE:BOOL= OFF \
-DCMAKE_VERBOSE:BOOL= OFF \
-DENABLE_PRECOMPILED_HEADERS= OFF
-DENABLE_PRECOMPILED_HEADERS= OFF
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include
$( CP) $( PKG_INSTALL_DIR) /usr/include/opencv $( 1) /usr/include/
$( CP) $( PKG_INSTALL_DIR) /usr/include/opencv2 $( 1) /usr/include/
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libopencv* $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/opencv.pc $( 1) /usr/lib/pkgconfig/
e n d e f
TARGET_LDFLAGS += -latomic
d e f i n e P a c k a g e / o p e n c v / i n s t a l l
d e f i n e P a c k a g e / o p e n c v / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /usr/lib