From b66ea36a99bf249bacc9cd91be32f6fecac953e7 Mon Sep 17 00:00:00 2001 From: Roger Date: Tue, 6 Jan 2015 21:20:03 -0400 Subject: [PATCH] libuvc: add package Signed-off-by: Roger D --- libs/libuvc/Makefile | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 libs/libuvc/Makefile diff --git a/libs/libuvc/Makefile b/libs/libuvc/Makefile new file mode 100644 index 000000000..3c9b8b9ce --- /dev/null +++ b/libs/libuvc/Makefile @@ -0,0 +1,53 @@ +# +# Copyright (C) 2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libuvc + +PKG_VERSION=0.0.5-20140812-$(PKG_SOURCE_VERSION) +PKG_RELEASE:=1 +PKG_MAINTAINER:=Roger D + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/ktossell/libuvc.git +PKG_SOURCE_VERSION:=2c6403405872aa865999b95ba15944295adf6c38 + +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_LICENSE:=BSD + +PKG_INSTALL:=1 +CMAKE_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +define Package/libuvc + SECTION:=libs + CATEGORY:=Libraries + TITLE:=libuvc + DEPENDS:=+libusb-1.0 +libjpeg + URL:=https://int80k.com/libuvc +endef + +define Package/libuvc/description + This package contains libuvc is a cross-platform library for USB video devices, + built atop libusb. +endef + +define Package/libuvc/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuvc.so* $(1)/usr/lib/ +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/{include,lib} + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuvc.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libuvc))