Skip to contentSkip to conversation

libv4l: Add new package libv4l

PATCH New Klaus Schwarzkopf 2 participants 2 messages Mar 7, 2011 – Apr 5, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libv4l: Add new package libv4l

---
 package/Config.in        |    1 +
 package/libv4l/Config.in |   11 +++++++++++
 package/libv4l/libv4l.mk |   30 ++++++++++++++++++++++++++++++
 3 files changed, 42 insertions(+), 0 deletions(-)
 create mode 100644 package/libv4l/Config.in
 create mode 100644 package/libv4l/libv4l.mk
package/Config.in +1 -0
index f459c1b..18d7a6c 100644
@@ -96,6 +96,7 @@ source "package/rrdtool/Config.in"
 comment "graphic libraries"
 source "package/directfb/Config.in"
 source "package/directfb-examples/Config.in"
+source "package/libv4l/Config.in"
 source "package/divine/Config.in"
 source "package/fbdump/Config.in"
 source "package/fbgrab/Config.in"
package/libv4l/Config.in new file +11 -0
new file mode 100644
index 0000000..1620b93
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBV4L
+	bool "libv4l"
+	depends on BR2_LARGEFILE
+	help
+	  libv4l is an accompanying collection of libraries that adds a thin
+	  abstraction layer on top of video4linux2 (V4L2) devices.
+
+	  http://freshmeat.net/projects/libv4l
+
+comment "libv4l requires a toolchain with LARGEFILE support"
+        depends on !BR2_LARGEFILE
package/libv4l/libv4l.mk new file +30 -0
new file mode 100644
index 0000000..12c998d
@@ -0,0 +1,30 @@
+#############################################################
+#
+# libv4l
+#
+#############################################################
+LIBV4L_VERSION = 0.8.3
+LIBV4L_SOURCE = v4l-utils-$(LIBV4L_VERSION).tar.bz2
+LIBV4L_SITE = http://linuxtv.org/downloads/v4l-utils/
+LIBV4L_INSTALL_STAGING = YES
+LIBV4L_INSTALL_TARGET = YES
+LIBV4L_MAKE_OPTS = PREFIX=/usr
+
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+	LIBV4L_MAKE_OPTS += LINKTYPE=static
+endif
+
+define LIBV4L_BUILD_CMDS
+	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/lib $(LIBV4L_MAKE_OPTS)
+endef
+
+define LIBV4L_INSTALL_STAGING_CMDS
+	$(MAKE) -C $(@D)/lib DESTDIR=$(STAGING_DIR) $(LIBV4L_MAKE_OPTS) install
+endef
+
+define LIBV4L_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D)/lib DESTDIR=$(TARGET_DIR) $(LIBV4L_MAKE_OPTS) install
+endef
+
+$(eval $(call GENTARGETS,package,libv4l))
+
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 libv4l: Add new package libv4l

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Klaus" == Klaus Schwarzkopf <[email protected]> writes:

Klaus> Signed-off-by: Klaus Schwarzkopf <[email protected]>

Committed, thanks.

I moved it to the hardware section though, as that imho makes more sense.

Signature · 1 line
Bye, Peter Korsgaard