--- dv4l-1.0.orig/debian/control +++ dv4l-1.0/debian/control @@ -0,0 +1,21 @@ +Source: dv4l +Section: graphics +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Nobuhiro Iwamatsu +Dm-Upload-Allowed: yes +Build-Depends: cdbs, debhelper (>= 7), autotools-dev, dpatch, + libraw1394-dev, libiec61883-dev, libdv-dev +Standards-Version: 3.8.0.1 +Homepage: http://dv4l.berlios.de/ + +Package: dv4l +Section: graphics +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: vloopback-source +Description: Redirect V4L API to access a camcorder from a V4L program + dv4l enables programs to access a dv1394 (Firewire) camcorder by using + the video4linux (V4L) API. dv4lstart uses the LD_PRELOAD facility to + intercept calls to the V4L API and make the camcorder's videostream available. + --- dv4l-1.0.orig/debian/lintian-override +++ dv4l-1.0/debian/lintian-override @@ -0,0 +1,2 @@ +dv4l: no-shlibs-control-file usr/lib/dv4l/libdv4l.so +dv4l: postinst-must-call-ldconfig usr/lib/dv4l/libdv4l.so --- dv4l-1.0.orig/debian/rules +++ dv4l-1.0/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/dpatch.mk +include /usr/share/dpatch/dpatch.make + +DEB_CONFIGURE_NORMAL_ARGS = --prefix=/usr --libdir=/lib/dv4l \ + --datarootdir=/share + +install/dv4l:: + install -m 0644 -D debian/lintian-override \ + debian/dv4l/usr/share/lintian/overrides/dv4l + +clean:: + rm -rf *.so *.o *.d config.status dv4l.o dv4l \ + dv4lstart config.log Makefile config.h version.h --- dv4l-1.0.orig/debian/dirs +++ dv4l-1.0/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/lib +usr/share/man --- dv4l-1.0.orig/debian/changelog +++ dv4l-1.0/debian/changelog @@ -0,0 +1,26 @@ +dv4l (1.0-2ubuntu2) karmic; urgency=low + + * No change rebuild for libraw1394 transition + + -- Scott Kitterman Sun, 06 Sep 2009 01:06:33 -0400 + +dv4l (1.0-2ubuntu1) karmic; urgency=low + + * Fix invalid EOL backslash in build-depends LP: #393105 + + -- Bhavani Shankar Wed, 08 Jul 2009 21:14:39 +0530 + +dv4l (1.0-2) unstable; urgency=low + + * Fix build error in some architecture. (Closes: #522344) + - Remove sa_restorer from init_sig function. + (patches/05_remove_sa_restorer.dpatch) + + -- Nobuhiro Iwamatsu Fri, 03 Apr 2009 07:50:48 +0900 + +dv4l (1.0-1) unstable; urgency=low + + * Initial release (Closes: #503748) + * Add "DM-Upload-Allowed: yes" to debian/control + + -- Nobuhiro Iwamatsu Wed, 28 Jan 2009 19:40:44 +0900 --- dv4l-1.0.orig/debian/README.Debian +++ dv4l-1.0/debian/README.Debian @@ -0,0 +1,54 @@ +dv4l for Debian +--------------- + +- DV4Linux - Limitations (Copy from: http://dv4l.berlios.de/limits.html) + - dv4lstart + dv4lstart has currently these limitations: + + * The V4L application must not be statically linked to libc, or have + the 's' (set user/group ID on execution) bit enabled. + * Only RGB24 and YUV420P palettes are supported. + * dv4lstart does not support adjustment of color, brightness and similar + parameters. + * Using dv4lstart adds a little overhead to all library calls that are + used in the V4L API. + * It supports only a single dv1394 camera. + + - dv4l + Currently, dv4l has some limitations: + + * Only RGB24 and YUV420P palettes are supported. + * Not all v4l programs work with dv4l. Skype v2.0beta seems to have trouble + with the vloopback driver. GQCam, Kopete, and probably others work only + in a slow mode where the video frames are copied twice. + * dv4l does not support adjustment of color, brightness and similar + parameters. + * Using dv4l is inherently slower than using other methods to access + a camera. + * It supports only a single dv1394 camera. + + - dv4l or dv4lstart? + dv4l requires the vloopback kernel module. + dv4lstart add a little overhead to every library call that might be used to access V4L. Applications using unusual ways to access the V4L API might not work. + skype (2.0.0.27 beta) runs only with dv4lstart + Other programs can be used with any of dv4l and dv4lstart. + +- How to test dv4l (use effectv) + 1. install vloopback kernel module and effectv + # apt-get update ; apt-get install vloopback-source effectv + # m-a a-i vloopback + + 2. Connect DVcam to your PC + 3. sudo dv4lstart effectv + +- How to use dv4l on ustream + 1. install vloopback kernel module, iceweasel and flashplugin-nonfree + # apt-get update ; apt-get install vloopback-source iceweasel flashplugin-nonfree + # m-a a-i vloopback + + 2. Connect DVcam to your PC + 3. Start iceweasel with dv4lstart + # sudo dv4lstart iceweasel + 4. Connect to ustream + + -- Nobuhiro Iwamatsu Sun, 26 Oct 2008 18:38:20 +0900 --- dv4l-1.0.orig/debian/compat +++ dv4l-1.0/debian/compat @@ -0,0 +1 @@ +7 --- dv4l-1.0.orig/debian/copyright +++ dv4l-1.0/debian/copyright @@ -0,0 +1,20 @@ +This package was debianized by Nobuhiro Iwamatsu on +Sun, 26 Oct 2008 18:38:20 +0900. + +It was downloaded from + http://dv4l.berlios.de/index.html + +Upstream Author: + + Wolfgang Beck + +Copyright: + + Copyright (C) 2007 Free Software Foundation, Inc. + +License: + GPLv2 + Please see `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2008, Nobuhiro Iwamatsu and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- dv4l-1.0.orig/debian/patches/00list +++ dv4l-1.0/debian/patches/00list @@ -0,0 +1,5 @@ +01_add_DESTDIR_PATH +02_add_script_path +03_fix_rootdir_valuename +04_change_window_size +05_remove_sa_restorer --- dv4l-1.0.orig/debian/patches/03_fix_rootdir_valuename.dpatch +++ dv4l-1.0/debian/patches/03_fix_rootdir_valuename.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_fix_rootdir_valuename.dpatch by Nobuhiro Iwamatsu +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix datarootdir value + +@DPATCH@ +diff -urNad dv4l-1.0~/Makefile.in dv4l-1.0/Makefile.in +--- dv4l-1.0~/Makefile.in 2008-11-28 23:33:32.000000000 +0900 ++++ dv4l-1.0/Makefile.in 2008-11-28 23:34:43.000000000 +0900 +@@ -19,7 +19,7 @@ + CFLAGS := -Wall -O3 -MMD + LDFLAGS := -lraw1394 -liec61883 -ldv + +-datarot=@datarootdir@ ++datarootdir=@datarootdir@ + bindir=@prefix@@bindir@ + mandir=@prefix@@mandir@ + --- dv4l-1.0.orig/debian/patches/04_change_window_size.dpatch +++ dv4l-1.0/debian/patches/04_change_window_size.dpatch @@ -0,0 +1,89 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_change_window_size.dpatch by Nobuhiro Iwamatsu +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add resize stuff + +@DPATCH@ +diff -urNad dv4l-1.0~/interdv4l.c dv4l-1.0/interdv4l.c +--- dv4l-1.0~/interdv4l.c 2008-11-28 22:52:19.000000000 +0900 ++++ dv4l-1.0/interdv4l.c 2008-11-28 22:53:15.000000000 +0900 +@@ -85,6 +85,8 @@ + int vnoredir; + int vminor; + int vrgbonly; ++ int rsize_w; ++ int rsize_h; + time_t vtime; + } vid_context_t; + +@@ -391,6 +393,14 @@ + + dv4l_env = getenv("DV4L_RGBONLY"); + vctx.vrgbonly = (dv4l_env != NULL); ++ ++ dv4l_env = getenv("DV4L_WIDTH"); ++ if (dv4l_env != NULL) ++ vctx.rsize_w = atoi(dv4l_env); ++ ++ dv4l_env = getenv("DV4L_HEIGHT"); ++ if (dv4l_env != NULL) ++ vctx.rsize_h = atoi(dv4l_env); + } + + if(strcmp(name, "LD_PRELOAD") == 0) { +@@ -726,8 +736,19 @@ + vctx.vcap.maxheight = 0; \ + log("#2 dv4l open vfd %d fake_fd %d\n", vctx.vfd, fake_fd); \ + get_camsize(&vctx); \ +- vctx.vwin.width = vctx.vcap.maxwidth; \ +- vctx.vwin.height = vctx.vcap.maxheight; \ ++ /* window rsize */ \ ++ if ((vctx.rsize_w > 0) && \ ++ (vctx.rsize_w < vctx.vcap.maxwidth)) \ ++ vctx.vwin.width = vctx.rsize_w; \ ++ else \ ++ vctx.vwin.width = vctx.vcap.maxwidth; \ ++ \ ++ if ((vctx.rsize_h > 0) && \ ++ (vctx.rsize_h < vctx.vcap.maxheight)) \ ++ vctx.vwin.height = vctx.rsize_h; \ ++ else \ ++ vctx.vwin.height = vctx.vcap.maxheight; \ ++ \ + debug("#3 dv4l open\n"); \ + iec61883_dv_set_buffers(iec61883_dv_fb_get_dv(vctx.viec), 1000); \ + if(iec61883_dv_fb_start(vctx.viec, 63) < 0) { \ +diff -urNad dv4l-1.0~/mkdv4lstart dv4l-1.0/mkdv4lstart +--- dv4l-1.0~/mkdv4lstart 2008-11-28 22:52:39.000000000 +0900 ++++ dv4l-1.0/mkdv4lstart 2008-11-28 22:52:39.000000000 +0900 +@@ -25,6 +25,12 @@ + echo " choosing YUV palettes. Try this option if you get low" + echo " frame rates." + echo ++ echo " -w, --width" ++ echo " Set window width." ++ echo ++ echo " -h, --height" ++ echo " Set window height." ++ echo + echo " -v, --verbose " + echo " Set the amount of debugging messages. A level of 0 means no" + echo " output at all, 1 is the default, 3 enables all messages." +@@ -46,6 +52,16 @@ + DV4L_RGBONLY=1 + export DV4L_RGBONLY + ;; ++ -w | --width) ++ shift ++ DV4L_WIDTH=\$1 ++ export DV4L_WIDTH ++ ;; ++ -h | --height) ++ shift ++ DV4L_HEIGHT=\$1 ++ export DV4L_HEIGHT ++ ;; + -v | --verbose) + shift + DV4L_VERBOSE=\$1 --- dv4l-1.0.orig/debian/patches/02_add_script_path.dpatch +++ dv4l-1.0/debian/patches/02_add_script_path.dpatch @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_add_script_path.dpatch by Nobuhiro Iwamatsu +## +## DP: Add script path to mkdv4lstart + +@DPATCH@ +diff -urNad dv4l-1.0~/mkdv4lstart dv4l-1.0/mkdv4lstart +--- dv4l-1.0~/mkdv4lstart 2008-02-13 05:01:13.000000000 +0900 ++++ dv4l-1.0/mkdv4lstart 2008-10-27 23:44:01.000000000 +0900 +@@ -1,6 +1,7 @@ + #!/bin/sh + + cat > dv4lstart << EOF ++#!/bin/sh + # export LD_DEBUG=bindings + # export DV4L_VERBOSE=3 + export LD_PRELOAD="$1/libdv4l.so" --- dv4l-1.0.orig/debian/patches/01_add_DESTDIR_PATH.dpatch +++ dv4l-1.0/debian/patches/01_add_DESTDIR_PATH.dpatch @@ -0,0 +1,37 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_add_DESTDIR_PATH.dpatch by Nobuhiro Iwamatsu +## +## DP: Add DESTDIR PATH to Makefile.in + +@DPATCH@ +diff -urNad dv4l-1.0~/Makefile.in dv4l-1.0/Makefile.in +--- dv4l-1.0~/Makefile.in 2008-10-31 20:34:38.000000000 +0900 ++++ dv4l-1.0/Makefile.in 2008-10-31 20:36:34.000000000 +0900 +@@ -77,17 +77,17 @@ + rm -f *.o core dv4l dv4lstart libdv4l.so + + install: dv4l dv4lstart libdv4l.so +- install -D -m 0750 -g video dv4l $(bindir) +- install -D -m 0644 dv4l.1 $(mandir)/man1 +- install -D -m 0644 dv4lstart.1 $(mandir)/man1 +- install -D -m 0755 libdv4l.so @prefix@@libdir@ +- install -D -m 0755 dv4lstart @prefix@@bindir@ ++ install -D -m 0750 -g video dv4l $(DESTDIR)$(bindir)/dv4l ++ install -D -m 0644 dv4l.1 $(DESTDIR)$(mandir)/man1/dv4l.1 ++ install -D -m 0644 dv4lstart.1 $(DESTDIR)$(mandir)/man1/dv4lstart.1 ++ install -D -m 0755 libdv4l.so $(DESTDIR)@prefix@@libdir@/libdv4l.so ++ install -D -m 0755 dv4lstart $(DESTDIR)@prefix@@bindir@/dv4lstart + + uninstall: +- rm -f $(bindir)/dv4l +- rm -f $(mandir)/man1/dv4l.1 +- rm -f $(mandir)/man1/dv4lstart.1 +- rm -f @prefix@@bindir@/dv4lstart +- rm -f @prefix@@libdir@/libdv4l.so ++ rm -f $(DESTDIR)$(bindir)/dv4l ++ rm -f $(DESTDIR)$(mandir)/man1/dv4l.1 ++ rm -f $(DESTDIR)$(mandir)/man1/dv4lstart.1 ++ rm -f $(DESTDIR)@prefix@@bindir@/dv4lstart ++ rm -f $(DESTDIR)@prefix@@libdir@/libdv4l.so + + -include *.d --- dv4l-1.0.orig/debian/patches/05_remove_sa_restorer.dpatch +++ dv4l-1.0/debian/patches/05_remove_sa_restorer.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 99_remove_sa_restorer.dpatch by Nobuhiro Iwamatsu +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Remove sa_restorer from init_sig. +## sa_restorer is obsolete. And package building failed in Alpha, hppa, ia64. + +@DPATCH@ +diff -urNad dv4l-1.0~/dv4l.c dv4l-1.0/dv4l.c +--- dv4l-1.0~/dv4l.c 2008-02-13 05:01:13.000000000 +0900 ++++ dv4l-1.0/dv4l.c 2009-04-03 07:31:34.000000000 +0900 +@@ -556,7 +556,6 @@ + act.sa_flags = SA_SIGINFO; + sigemptyset(&act.sa_mask); + sigaddset(&act.sa_mask, SIGIO); +- act.sa_restorer = NULL; + if(sigaction(SIGIO, &act, &old_sigio) == -1) { + perror("sigaction"); + return -1;