[arch-commits] Commit in guvcview/repos (6 files)

Antonio Rojas arojas at archlinux.org
Tue Feb 16 07:37:46 UTC 2016


    Date: Tuesday, February 16, 2016 @ 08:37:46
  Author: arojas
Revision: 161814

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  guvcview/repos/community-staging-i686/
  guvcview/repos/community-staging-i686/PKGBUILD
    (from rev 161813, guvcview/trunk/PKGBUILD)
  guvcview/repos/community-staging-i686/guvcview-ffmpeg3.patch
    (from rev 161813, guvcview/trunk/guvcview-ffmpeg3.patch)
  guvcview/repos/community-staging-x86_64/
  guvcview/repos/community-staging-x86_64/PKGBUILD
    (from rev 161813, guvcview/trunk/PKGBUILD)
  guvcview/repos/community-staging-x86_64/guvcview-ffmpeg3.patch
    (from rev 161813, guvcview/trunk/guvcview-ffmpeg3.patch)

-------------------------------------------------+
 community-staging-i686/PKGBUILD                 |   38 ++++++++++++++++++++++
 community-staging-i686/guvcview-ffmpeg3.patch   |   37 +++++++++++++++++++++
 community-staging-x86_64/PKGBUILD               |   38 ++++++++++++++++++++++
 community-staging-x86_64/guvcview-ffmpeg3.patch |   37 +++++++++++++++++++++
 4 files changed, 150 insertions(+)

Copied: guvcview/repos/community-staging-i686/PKGBUILD (from rev 161813, guvcview/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2016-02-16 07:37:46 UTC (rev 161814)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Maxwell Pray a.k.a. Synthead <synthead at gmail.com>
+
+pkgname=guvcview
+pkgver=2.0.3
+pkgrel=1
+pkgdesc="A video viewer and capturer for the linux uvc driver"
+arch=('i686' 'x86_64')
+url="http://guvcview.sourceforge.net/"
+license=('GPL')
+depends=('portaudio' 'ffmpeg' 'gtk3' 'sdl2' 'gsl')
+makedepends=('pkg-config' 'intltool')
+optdepends=('pulseaudio: for PulseAudio support')
+options=('!docs' '!buildflags')
+source=("http://downloads.sourceforge.net/project/${pkgname}/source/${pkgname}-src-${pkgver}.tar.gz" guvcview-ffmpeg3.patch)
+md5sums=('994d1d08a013356de516771818774947'
+         '9db64a64ddca977cd89ddfb551ff2e8b')
+
+prepare() {
+  cd $pkgname-src-$pkgver
+# Fix build against ffmpeg 3.0
+  patch -p1 -i ../guvcview-ffmpeg3.patch
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-src-${pkgver}"
+
+  ./configure --prefix=/usr \
+              --disable-debian-menu
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-src-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install
+}

Copied: guvcview/repos/community-staging-i686/guvcview-ffmpeg3.patch (from rev 161813, guvcview/trunk/guvcview-ffmpeg3.patch)
===================================================================
--- community-staging-i686/guvcview-ffmpeg3.patch	                        (rev 0)
+++ community-staging-i686/guvcview-ffmpeg3.patch	2016-02-16 07:37:46 UTC (rev 161814)
@@ -0,0 +1,37 @@
+Description: Replace deprecated FFmpeg API
+Author: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
+Last-Update: <2015-11-02>
+
+--- a/gview_encoder/encoder.c
++++ b/gview_encoder/encoder.c
+@@ -1434,7 +1434,7 @@
+ 		/*convert default yuyv to y420p (libav input format)*/		
+ 		switch(video_codec_data->codec_context->pix_fmt)
+ 		{
+-			case PIX_FMT_YUVJ420P:
++			case AV_PIX_FMT_YUVJ420P:
+ 				yuv422to420p(encoder_ctx, input_frame);
+ 				break;
+ 			default:
+--- a/gview_v4l2core/jpeg_decoder.c
++++ b/gview_v4l2core/jpeg_decoder.c
+@@ -1436,7 +1436,7 @@
+ 		exit(-1);
+ 	}
+ 
+-	codec_data->context->pix_fmt = PIX_FMT_YUV422P;
++	codec_data->context->pix_fmt = AV_PIX_FMT_YUV422P;
+ 	codec_data->context->width = width;
+ 	codec_data->context->height = height;
+ 	//jpeg_ctx->context->dsp_mask = (FF_MM_MMX | FF_MM_MMXEXT | FF_MM_SSE);
+--- a/gview_v4l2core/uvc_h264.c
++++ b/gview_v4l2core/uvc_h264.c
+@@ -970,7 +970,7 @@
+ 	}
+ 	
+ 	h264_ctx->context->flags2 |= CODEC_FLAG2_FAST;
+-	h264_ctx->context->pix_fmt = PIX_FMT_YUV420P;
++	h264_ctx->context->pix_fmt = AV_PIX_FMT_YUV420P;
+ 	h264_ctx->context->width = width;
+ 	h264_ctx->context->height = height;
+ 	//h264_ctx->context->dsp_mask = (FF_MM_MMX | FF_MM_MMXEXT | FF_MM_SSE);

Copied: guvcview/repos/community-staging-x86_64/PKGBUILD (from rev 161813, guvcview/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2016-02-16 07:37:46 UTC (rev 161814)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Maxwell Pray a.k.a. Synthead <synthead at gmail.com>
+
+pkgname=guvcview
+pkgver=2.0.3
+pkgrel=1
+pkgdesc="A video viewer and capturer for the linux uvc driver"
+arch=('i686' 'x86_64')
+url="http://guvcview.sourceforge.net/"
+license=('GPL')
+depends=('portaudio' 'ffmpeg' 'gtk3' 'sdl2' 'gsl')
+makedepends=('pkg-config' 'intltool')
+optdepends=('pulseaudio: for PulseAudio support')
+options=('!docs' '!buildflags')
+source=("http://downloads.sourceforge.net/project/${pkgname}/source/${pkgname}-src-${pkgver}.tar.gz" guvcview-ffmpeg3.patch)
+md5sums=('994d1d08a013356de516771818774947'
+         '9db64a64ddca977cd89ddfb551ff2e8b')
+
+prepare() {
+  cd $pkgname-src-$pkgver
+# Fix build against ffmpeg 3.0
+  patch -p1 -i ../guvcview-ffmpeg3.patch
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-src-${pkgver}"
+
+  ./configure --prefix=/usr \
+              --disable-debian-menu
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-src-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install
+}

Copied: guvcview/repos/community-staging-x86_64/guvcview-ffmpeg3.patch (from rev 161813, guvcview/trunk/guvcview-ffmpeg3.patch)
===================================================================
--- community-staging-x86_64/guvcview-ffmpeg3.patch	                        (rev 0)
+++ community-staging-x86_64/guvcview-ffmpeg3.patch	2016-02-16 07:37:46 UTC (rev 161814)
@@ -0,0 +1,37 @@
+Description: Replace deprecated FFmpeg API
+Author: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
+Last-Update: <2015-11-02>
+
+--- a/gview_encoder/encoder.c
++++ b/gview_encoder/encoder.c
+@@ -1434,7 +1434,7 @@
+ 		/*convert default yuyv to y420p (libav input format)*/		
+ 		switch(video_codec_data->codec_context->pix_fmt)
+ 		{
+-			case PIX_FMT_YUVJ420P:
++			case AV_PIX_FMT_YUVJ420P:
+ 				yuv422to420p(encoder_ctx, input_frame);
+ 				break;
+ 			default:
+--- a/gview_v4l2core/jpeg_decoder.c
++++ b/gview_v4l2core/jpeg_decoder.c
+@@ -1436,7 +1436,7 @@
+ 		exit(-1);
+ 	}
+ 
+-	codec_data->context->pix_fmt = PIX_FMT_YUV422P;
++	codec_data->context->pix_fmt = AV_PIX_FMT_YUV422P;
+ 	codec_data->context->width = width;
+ 	codec_data->context->height = height;
+ 	//jpeg_ctx->context->dsp_mask = (FF_MM_MMX | FF_MM_MMXEXT | FF_MM_SSE);
+--- a/gview_v4l2core/uvc_h264.c
++++ b/gview_v4l2core/uvc_h264.c
+@@ -970,7 +970,7 @@
+ 	}
+ 	
+ 	h264_ctx->context->flags2 |= CODEC_FLAG2_FAST;
+-	h264_ctx->context->pix_fmt = PIX_FMT_YUV420P;
++	h264_ctx->context->pix_fmt = AV_PIX_FMT_YUV420P;
+ 	h264_ctx->context->width = width;
+ 	h264_ctx->context->height = height;
+ 	//h264_ctx->context->dsp_mask = (FF_MM_MMX | FF_MM_MMXEXT | FF_MM_SSE);



More information about the arch-commits mailing list