openCV: Add library openCV2.4.10
authorJialei Hao <schumy@wrtnode.com>
Sat, 31 Jan 2015 09:52:39 +0000 (17:52 +0800)
committerEtienne CHAMPETIER <champetier.etienne@gmail.com>
Sun, 1 Feb 2015 14:17:09 +0000 (15:17 +0100)
[Etienne CHAMPETIER: compile tested for ar71xx]
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
Signed-off-by: Jialei Hao <schumy@wrtnode.com>
libs/opencv/Makefile [new file with mode: 0644]
libs/opencv/README.md [new file with mode: 0644]

diff --git a/libs/opencv/Makefile b/libs/opencv/Makefile
new file mode 100644 (file)
index 0000000..20ba20c
--- /dev/null
@@ -0,0 +1,64 @@
+#
+# Copyright (C) 2013-2014 wrtnode.com
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=opencv
+PKG_VERSION:=2.4.10
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
+PKG_SOURCE_URL:=http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.10/
+PKG_MD5SUM:=ec63952d3a3dff965d5fdde765926821
+
+PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE_FILES:=LICENSE
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+
+define Package/opencv/Default/description
+ OpenCV (Open Source Computer Vision Library) is an open source computer
+ vision and machine learning software library. OpenCV was built to provide
+ a common infrastructure for computer vision applications and to accelerate
+ the use of machine perception in the commercial products. Being a
+ BSD-licensed product, OpenCV makes it easy for businesses to utilize
+ and modify the code.
+endef
+
+define Package/opencv
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=opencv-2.4.10
+  URL:=http://opencv.org/
+  MAINTAINER:=WRTnode Team <pub@wrtnode.com>
+  DEPENDS:=+libpthread +librt +libstdcpp +zlib +libjpeg
+endef
+
+
+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
+
+define Build/InstallDev
+       $(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/
+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))
diff --git a/libs/opencv/README.md b/libs/opencv/README.md
new file mode 100644 (file)
index 0000000..a5cdcdd
--- /dev/null
@@ -0,0 +1,23 @@
+Introduction
+===
+
+#### OpenCV: Open Source Computer Vision Library.OpenCV is based on (open source) issued cross-platform computer vision library, you can run on Linux, Windows and Mac OS operating systems.
+
+#### Resources
+
+* Homepage: <http://opencv.org>
+* Docs: <http://docs.opencv.org>
+* Q&A forum: <http://answers.opencv.org>
+* Issue tracking: <http://code.opencv.org>
+
+#### Contributing
+
+Please read before starting work on a pull request: <http://code.opencv.org/projects/opencv/wiki/How_to_contribute>
+
+Summary of guidelines:
+
+* One pull request per issue;
+* Choose the right base branch;
+* Include tests and documentation;
+* Clean up "oops" commits before submitting;
+* Follow the coding style guide.