2 # Copyright (C) 2013-2014 wrtnode.com
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).zip
15 PKG_SOURCE_URL
:=http
://sourceforge.net
/projects
/opencvlibrary
/files
/opencv-unix
/2.4.10/
16 PKG_MD5SUM
:=ec63952d3a3dff965d5fdde765926821
18 PKG_LICENSE
:=BSD-3-Clause
19 PKG_LICENSE_FILES
:=LICENSE
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/cmake.mk
25 define Package
/opencv
/Default
/description
26 OpenCV
(Open Source Computer Vision Library
) is an open source computer
27 vision and machine learning software library. OpenCV was built to provide
28 a common infrastructure for computer vision applications and to accelerate
29 the use of machine perception in the commercial products. Being a
30 BSD-licensed product
, OpenCV makes it easy for businesses to utilize
38 URL
:=http
://opencv.org
/
39 MAINTAINER
:=WRTnode Team
<pub@wrtnode.com
>
40 DEPENDS
:=+libpthread
+librt
+libstdcpp
+zlib
+libjpeg
46 CMAKE_OPTIONS
+= -DBUILD_opencv_gpu
:BOOL
=OFF \
47 -DWITH_1394
:BOOL
=OFF
-DBUILD_opencv_stitching
:BOOL
=OFF \
48 -DBUILD_opencv_superres
:BOOL
=OFF
-DBUILD_opencv_ts
:BOOL
=OFF
50 define Build
/InstallDev
51 $(INSTALL_DIR
) $(1)/usr
/include
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/opencv
$(1)/usr
/include/
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/opencv2
$(1)/usr
/include/
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libopencv
* $(1)/usr
/lib
/
58 define Package
/opencv
/install
59 $(INSTALL_DIR
) $(1)/usr
/lib
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libopencv
* $(1)/usr
/lib
/
64 $(eval
$(call BuildPackage
,opencv
))