summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-05-26 15:50:36 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-06-22 14:55:36 +0200
commit76af57209b78ee6eb452e23d749c39c69c217541 (patch)
tree1f1b84956f5c7dc9b7f0bd9ae0ef8e9269e4f18a
parentcd3d60e1576ec4b01150f66544c6f180f2bac429 (diff)
downloadptxdist-76af57209b78ee6eb452e23d749c39c69c217541.tar.gz
ptxdist-76af57209b78ee6eb452e23d749c39c69c217541.tar.xz
v4l-utils: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/v4l-utils.in29
-rw-r--r--rules/v4l-utils.make77
2 files changed, 106 insertions, 0 deletions
diff --git a/rules/v4l-utils.in b/rules/v4l-utils.in
new file mode 100644
index 000000000..1ba6049aa
--- /dev/null
+++ b/rules/v4l-utils.in
@@ -0,0 +1,29 @@
+## SECTION=multimedia_libs
+
+menuconfig V4L_UTILS
+ tristate
+ prompt "v4l-utils"
+ select LIBC_RT if V4L_UTILS_LIBV4LCONVERT
+ select LIBC_M if V4L_UTILS_LIBV4LCONVERT
+ select LIBC_PTHREAD if V4L_UTILS_LIBV4L2
+ help
+ Linux V4L2 and DVB API utilities and v4l libraries (libv4l).
+
+if V4L_UTILS
+
+config V4L_UTILS_LIBV4L1
+ bool
+ select V4L_UTILS_LIBV4L2
+ prompt "install libv4l1"
+
+config V4L_UTILS_LIBV4L2
+ bool
+ select V4L_UTILS_LIBV4LCONVERT
+ prompt "install libv4l2"
+
+config V4L_UTILS_LIBV4LCONVERT
+ bool
+ prompt "install libv4lconvert"
+
+endif
+
diff --git a/rules/v4l-utils.make b/rules/v4l-utils.make
new file mode 100644
index 000000000..ad8dce25f
--- /dev/null
+++ b/rules/v4l-utils.make
@@ -0,0 +1,77 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_V4L_UTILS) += v4l-utils
+
+#
+# Paths and names
+#
+V4L_UTILS_VERSION := 0.8.3
+V4L_UTILS_MD5 := f25ad639717d7411a58f10a9e378d7db
+V4L_UTILS := v4l-utils-$(V4L_UTILS_VERSION)
+V4L_UTILS_SUFFIX := tar.bz2
+V4L_UTILS_URL := http://linuxtv.org/downloads/v4l-utils/$(V4L_UTILS).$(V4L_UTILS_SUFFIX)
+V4L_UTILS_SOURCE := $(SRCDIR)/$(V4L_UTILS).$(V4L_UTILS_SUFFIX)
+V4L_UTILS_DIR := $(BUILDDIR)/$(V4L_UTILS)
+V4L_UTILS_LICENSE := unknown
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+V4L_UTILS_CONF_TOOL := NO
+V4L_UTILS_MAKE_ENV := $(CROSS_ENV)
+V4L_UTILS_INSTALL_OPT := PREFIX=/usr install
+
+# just the libs for now
+V4L_UTILS_SUBDIR := lib
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/v4l-utils.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, v4l-utils)
+ @$(call install_fixup, v4l-utils,PRIORITY,optional)
+ @$(call install_fixup, v4l-utils,SECTION,base)
+ @$(call install_fixup, v4l-utils,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, v4l-utils,DESCRIPTION,missing)
+
+ifdef PTXCONF_V4L_UTILS_LIBV4L1
+ @$(call install_lib, v4l-utils, 0, 0, 0644, libv4l1)
+ @$(call install_lib, v4l-utils, 0, 0, 0644, libv4l/v4l1compat)
+endif
+ifdef PTXCONF_V4L_UTILS_LIBV4L2
+ @$(call install_lib, v4l-utils, 0, 0, 0644, libv4l2)
+ @$(call install_lib, v4l-utils, 0, 0, 0644, libv4l/v4l2convert)
+endif
+ifdef PTXCONF_V4L_UTILS_LIBV4LCONVERT
+ @$(call install_lib, v4l-utils, 0, 0, 0644, libv4lconvert)
+endif
+
+
+ @$(call install_finish, v4l-utils)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/v4l-utils.clean:
+# @$(call targetinfo)
+# @$(call clean_pkg, V4L_UTILS)
+
+# vim: syntax=make