2012-02-27 04:27:28 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009-2012 OpenWrt.org
|
2009-09-14 17:04:34 +00:00
|
|
|
# Copyright (C) 2009 David Cooper <dave@kupesoft.com>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2012-02-27 04:27:28 +00:00
|
|
|
PKG_NAME:=v4l-utils
|
|
|
|
PKG_VERSION:=0.8.6
|
2012-03-12 21:21:02 +00:00
|
|
|
PKG_RELEASE:=2
|
2009-09-14 17:04:34 +00:00
|
|
|
|
2012-02-27 04:27:28 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://www.linuxtv.org/downloads/v4l-utils
|
|
|
|
PKG_MD5SUM:=80062780ae90e5955473b09b31e9828a
|
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=argp-standalone
|
2009-09-14 17:04:34 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2012-02-27 04:27:28 +00:00
|
|
|
define Package/libv4l/Default
|
|
|
|
TITLE:=Video 4 Linux
|
|
|
|
URL:=http://www.linuxtv.org/
|
|
|
|
DEPENDS:=+libpthread
|
2009-09-14 17:04:34 +00:00
|
|
|
endef
|
|
|
|
|
2012-02-27 04:27:28 +00:00
|
|
|
define Package/libv4l/Default/description
|
2009-09-14 17:04:34 +00:00
|
|
|
libv4l is a collection of libraries which adds a thin abstraction layer on
|
|
|
|
top of video4linux2 devices. The purpose of this (thin) layer is to make it
|
|
|
|
easy for application writers to support a wide variety of devices without
|
|
|
|
having to write separate code for different devices in the same class. libv4l
|
|
|
|
consists of 3 different libraries: libv4lconvert, libv4l1 and libv4l2.
|
2010-03-29 20:39:51 +00:00
|
|
|
|
2009-09-14 17:04:34 +00:00
|
|
|
libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent
|
|
|
|
of the drivers for those devices supporting v4l1 compatibility (which many
|
|
|
|
v4l2 drivers do not).
|
|
|
|
|
|
|
|
libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the
|
|
|
|
application transparent libv4lconvert conversion where necessary.
|
|
|
|
endef
|
|
|
|
|
2012-02-27 04:27:28 +00:00
|
|
|
define Package/libv4l
|
|
|
|
$(call Package/libv4l/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= wrapper libraries
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libv4l/description
|
|
|
|
$(call Package/libv4l/Default/description)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/v4l-utils
|
|
|
|
$(call Package/libv4l/Default)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE+= utilities
|
|
|
|
DEPENDS+= +librt +libv4l +uclibcxx
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/v4l-utils/description
|
|
|
|
$(call Package/libv4l/Default/description)
|
|
|
|
This package contains the video4linux utilities.
|
|
|
|
endef
|
|
|
|
|
2009-09-14 17:04:34 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2012-02-27 04:27:28 +00:00
|
|
|
TARGET_CXX = $(STAGING_DIR)/host/bin/g++-uc
|
2009-09-14 17:04:34 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" PREFIX="/usr" \
|
2012-02-27 04:27:28 +00:00
|
|
|
DISABLE_LIBJPEG="1" \
|
2009-09-14 17:04:34 +00:00
|
|
|
$(CONFIGURE_VARS) \
|
|
|
|
all install
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" PREFIX="/usr" \
|
2012-02-27 04:27:28 +00:00
|
|
|
DISABLE_LIBJPEG="1" \
|
2009-09-14 17:04:34 +00:00
|
|
|
$(CONFIGURE_VARS) \
|
|
|
|
LINKTYPE="static" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2012-02-27 04:27:28 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-09-14 17:04:34 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libv4l{1,2,convert}.{a,so*} $(1)/usr/lib/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2009-09-14 17:04:34 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libv4l{1,2,convert}.pc $(1)/usr/lib/pkgconfig/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libv4l/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-10-05 19:19:03 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libv4l{1,2,convert}.so.* $(1)/usr/lib/
|
2009-09-14 17:04:34 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libv4l
|
2012-02-27 04:27:28 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libv4l/v4l{1compat,2convert}.so $(1)/usr/lib/libv4l/
|
2009-09-14 17:04:34 +00:00
|
|
|
endef
|
|
|
|
|
2012-02-27 04:27:28 +00:00
|
|
|
define Package/v4l-utils/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/rc_maps.cfg $(1)/etc/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/rc_keymaps $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/{cx18,ivtv}-ctl $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/decode_tm6000 $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ir-keytable $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/v4l2-{compliance,ctl,sysfs-path} $(1)/usr/bin/
|
|
|
|
endef
|
2009-09-14 17:04:34 +00:00
|
|
|
|
2012-02-27 04:27:28 +00:00
|
|
|
$(eval $(call BuildPackage,libv4l))
|
|
|
|
$(eval $(call BuildPackage,v4l-utils))
|