summaryrefslogtreecommitdiff
path: root/package/v4l-utils
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-10-12 21:10:52 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-10-12 21:10:52 +0200
commit681a668edf704bbb000a49c835b3d71fa7035d86 (patch)
tree27df7d51e37260f63812466b31369c1a144cdc45 /package/v4l-utils
parent2d1f73d4334593134d3a47704a2614ffcae384ae (diff)
parent6c2bc15eb5c40548f6a98c37ab0b825b9c163343 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/v4l-utils')
-rw-r--r--package/v4l-utils/Makefile37
-rw-r--r--package/v4l-utils/patches/patch-Make_rules17
-rw-r--r--package/v4l-utils/patches/patch-utils_Makefile8
3 files changed, 62 insertions, 0 deletions
diff --git a/package/v4l-utils/Makefile b/package/v4l-utils/Makefile
new file mode 100644
index 000000000..72e23f0f4
--- /dev/null
+++ b/package/v4l-utils/Makefile
@@ -0,0 +1,37 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= v4l-utils
+PKG_VERSION:= 0.8.5
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 037bec9f68cfb0b84bcccb00d30e429b
+PKG_DESCR:= Video4Linux2 utilities
+PKG_SECTION:= multimedia
+PKG_SITES:= http://linuxtv.org/downloads/v4l-utils/
+
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+
+PKG_SUBPKGS:= V4L_UTILS LIBV4L
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,V4L_UTILS,v4l-utils,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBV4L,libv4l,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+
+v4l-utils-install:
+ $(INSTALL_DIR) $(IDIR_V4L_UTILS)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/v4l2-ctl \
+ $(IDIR_V4L_UTILS)/usr/bin
+
+libv4l-install:
+ $(INSTALL_DIR) $(IDIR_LIBV4L)/usr/lib/libv4l
+ $(CP) $(WRKINST)/usr/lib/libv4l*so* \
+ $(IDIR_LIBV4L)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libv4l/v4l{1compat,2convert}.so \
+ $(IDIR_LIBV4L)/usr/lib/libv4l
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/v4l-utils/patches/patch-Make_rules b/package/v4l-utils/patches/patch-Make_rules
new file mode 100644
index 000000000..f7bdb14f7
--- /dev/null
+++ b/package/v4l-utils/patches/patch-Make_rules
@@ -0,0 +1,17 @@
+--- v4l-utils-0.8.5.orig/Make.rules 2011-07-17 18:06:39.000000000 +0200
++++ v4l-utils-0.8.5/Make.rules 2011-09-18 20:20:32.000000000 +0200
+@@ -2,12 +2,12 @@ V4L_UTILS_VERSION=0.8.5
+
+ # These ones can be overriden from the cmdline
+
+-CFLAGS := -g -O1
++CFLAGS ?= -g -O1
+ CFLAGS += -Wall -Wpointer-arith
+ CXXFLAGS := $(CFLAGS)
+ CFLAGS += -Wstrict-prototypes -Wmissing-prototypes
+
+-PREFIX = /usr/local
++PREFIX = /usr
+ LIBDIR = $(PREFIX)/lib
+ # subdir below LIBDIR in which to install the libv4lx libc wrappers
+ LIBSUBDIR = libv4l
diff --git a/package/v4l-utils/patches/patch-utils_Makefile b/package/v4l-utils/patches/patch-utils_Makefile
new file mode 100644
index 000000000..daf4c67e9
--- /dev/null
+++ b/package/v4l-utils/patches/patch-utils_Makefile
@@ -0,0 +1,8 @@
+--- v4l-utils-0.8.5.orig/utils/Makefile 2011-07-17 18:06:39.000000000 +0200
++++ v4l-utils-0.8.5/utils/Makefile 2011-09-26 04:56:47.369377637 +0200
+@@ -1,4 +1,4 @@
+-SUBDIRS=libv4l2util libmedia_dev decode_tm6000 keytable rds v4l2-compliance v4l2-ctl v4l2-dbg v4l2-sysfs-path xc3028-firmware
++SUBDIRS=libv4l2util libmedia_dev v4l2-compliance v4l2-ctl v4l2-dbg
+
+ all install:
+ @for i in $(SUBDIRS); do \