No Description

Makefile 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #
  2. # Copyright (C) 2013-2014 wrtnode.com
  3. # Copyright (C) 2015 OpenWrt.org
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=opencv
  10. PKG_VERSION:=2.4.10
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
  13. PKG_SOURCE_URL:=http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.10/
  14. PKG_MD5SUM:=ec63952d3a3dff965d5fdde765926821
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=LICENSE
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/opencv/Default/description
  20. OpenCV (Open Source Computer Vision Library) is an open source computer
  21. vision and machine learning software library. OpenCV was built to provide
  22. a common infrastructure for computer vision applications and to accelerate
  23. the use of machine perception in the commercial products. Being a
  24. BSD-licensed product, OpenCV makes it easy for businesses to utilize
  25. and modify the code.
  26. endef
  27. define Package/opencv
  28. SECTION:=libs
  29. CATEGORY:=Libraries
  30. TITLE:=opencv-2.4.10
  31. URL:=http://opencv.org/
  32. MAINTAINER:=WRTnode Team <pub@wrtnode.com>
  33. DEPENDS:=+libpthread +librt +libstdcpp +zlib +libjpeg
  34. endef
  35. PKG_INSTALL:=1
  36. CMAKE_OPTIONS += -DBUILD_opencv_gpu:BOOL=OFF \
  37. -DWITH_1394:BOOL=OFF -DBUILD_opencv_stitching:BOOL=OFF \
  38. -DBUILD_opencv_superres:BOOL=OFF -DBUILD_opencv_ts:BOOL=OFF \
  39. -DBUILD_opencv_highgui:BOOL=OFF \
  40. -DBUILD_opencv_videostab:BOOL=OFF \
  41. -DWITH_FFMPEG:BOOL=OFF \
  42. -DWITH_GSTREAMER:BOOL=OFF \
  43. -DWITH_LIBV4L:BOOL=OFF \
  44. -DWITH_PNG:BOOL=OFF \
  45. -DWITH_TIFF:BOOL=OFF \
  46. define Build/InstallDev
  47. $(INSTALL_DIR) $(1)/usr/include
  48. $(CP) $(PKG_INSTALL_DIR)/usr/include/opencv $(1)/usr/include/
  49. $(CP) $(PKG_INSTALL_DIR)/usr/include/opencv2 $(1)/usr/include/
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopencv* $(1)/usr/lib/
  52. endef
  53. define Package/opencv/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopencv* $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,opencv))