wok-current rev 13961

Add: guvcview (1.5.0, newer versions uses gtk3, so skipping them for now)
author Claudinei Pereira <claudinei@slitaz.org>
date Wed Jan 30 22:52:46 2013 -0200 (2013-01-30)
parents 934d6099191f
children eb0cfcbf7d5b
files guvcview/receipt guvcview/stuff/guvcview.desktop guvcview/stuff/v412_formats.patch guvcview/stuff/vcodecs.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/guvcview/receipt	Wed Jan 30 22:52:46 2013 -0200
     1.3 @@ -0,0 +1,35 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="guvcview"
     1.7 +SOURCE="guvcview-src"
     1.8 +VERSION="1.5.0"
     1.9 +CATEGORY="multimedia"
    1.10 +SHORT_DESC="A simple GTK interface for capturing and viewing video from webcams."
    1.11 +MAINTAINER="claudinei@slitaz.org"
    1.12 +LICENSE="GNU General Public Licence"
    1.13 +WEB_SITE="http://guvcview.sourceforge.net"
    1.14 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.16 +
    1.17 +DEPENDS="gtk+ libsdl libpng portaudio libv4l ffmpeg libgudev"
    1.18 +BUILD_DEPENDS="gtk+-dev libsdl-dev libpng-dev portaudio-dev libv4l-dev \
    1.19 +ffmpeg-dev libgudev-dev"
    1.20 +
    1.21 +# Rules to configure and make the package.
    1.22 +compile_rules()
    1.23 +{
    1.24 +	patch -p0 < $stuff/v412_formats.patch
    1.25 +	patch -p0 < $stuff/vcodecs.patch
    1.26 +	./configure --prefix=/usr $CONFIGURE_ARGS && 
    1.27 +	make && 
    1.28 +	make install
    1.29 +}
    1.30 +
    1.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.32 +genpkg_rules()
    1.33 +{
    1.34 +	mkdir -p $fs/usr/share/pixmaps $fs/usr/bin $fs/usr/share/menu
    1.35 +	cp -a $install/usr/bin/* $fs/usr/bin
    1.36 +	cp -a $install/usr/share/pixmaps/* $fs/usr/share/pixmaps
    1.37 +	cp -a $install/usr/share/menu/* $fs/usr/share/menu
    1.38 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/guvcview/stuff/guvcview.desktop	Wed Jan 30 22:52:46 2013 -0200
     2.3 @@ -0,0 +1,12 @@
     2.4 +[Desktop Entry]
     2.5 +Version=1.0
     2.6 +Name=guvcview
     2.7 +GenericName=GTK UVC video viewer
     2.8 +Comment=A video viewer and capturer for the linux uvc driver
     2.9 +TryExec=guvcview
    2.10 +Exec=guvcview
    2.11 +Icon=/usr/share/pixmaps/guvcview/guvcview.png
    2.12 +Terminal=false
    2.13 +Type=Application
    2.14 +Categories=Video;AudioVideo;
    2.15 +StartupNotify=true
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/guvcview/stuff/v412_formats.patch	Wed Jan 30 22:52:46 2013 -0200
     3.3 @@ -0,0 +1,14 @@
     3.4 +--- src/v4l2_formats.c.old
     3.5 ++++ src/v4l2_formats.c
     3.6 +@@ -20,10 +20,7 @@
     3.7 + #                                                                               #
     3.8 + ********************************************************************************/
     3.9 + 
    3.10 +-#include <glib/gprintf.h>
    3.11 +-#include <glib/gstdio.h>
    3.12 +-#include <glib/gutils.h>
    3.13 +-#include <glib/gtestutils.h>
    3.14 ++#include <glib.h>
    3.15 + #include <fcntl.h>
    3.16 + #include <string.h>
    3.17 + #include <sys/types.h>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/guvcview/stuff/vcodecs.patch	Wed Jan 30 22:52:46 2013 -0200
     4.3 @@ -0,0 +1,13 @@
     4.4 +--- src/vcodecs.c.old
     4.5 ++++ src/vcodecs.c
     4.6 +@@ -30,6 +30,10 @@
     4.7 + #include <glib/gi18n.h>
     4.8 + #include <linux/videodev2.h>
     4.9 + 
    4.10 ++#define CODEC_FLAG2_BPYRAMID 0
    4.11 ++#define CODEC_FLAG2_WPRED 0
    4.12 ++#define CODEC_FLAG2_FASTPSKIP 0
    4.13 ++
    4.14 + static BITMAPINFOHEADER mkv_codecPriv =
    4.15 + {
    4.16 + 	.biSize = 0x00000028, //40 bytes