From c34f78dd37c2a2015d43de5d89748a2f8147ba1b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 31 Jan 2012 23:14:57 +0000 Subject: Tue Jan 31 23:14:56 UTC 2012 --- testing/zvbi/PKGBUILD | 38 +++++++++++++++++++++++++++++++++ testing/zvbi/fix-includes.patch | 36 +++++++++++++++++++++++++++++++ testing/zvbi/zvbi-0.2.33-libpng15.patch | 21 ++++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 testing/zvbi/PKGBUILD create mode 100644 testing/zvbi/fix-includes.patch create mode 100644 testing/zvbi/zvbi-0.2.33-libpng15.patch (limited to 'testing/zvbi') diff --git a/testing/zvbi/PKGBUILD b/testing/zvbi/PKGBUILD new file mode 100644 index 000000000..ed33f6a26 --- /dev/null +++ b/testing/zvbi/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 148369 2012-01-30 18:52:25Z ibiru $ +# Maintainer: +# Contributor: Alexander Baldeck +# Contributor: dorphell + +pkgname=zvbi +pkgver=0.2.33 +pkgrel=4 +pkgdesc="VBI capture and decoding library" +url="http://zapping.sourceforge.net/cgi-bin/view/ZVBI/WebHome" +arch=('i686' 'x86_64') +depends=('libpng' 'libx11') +license=('GPL') +options=('!libtool') +source=("http://downloads.sourceforge.net/sourceforge/zapping/${pkgname}-${pkgver}.tar.bz2" + 'fix-includes.patch' + 'zvbi-0.2.33-libpng15.patch') +md5sums=('1741a6045c3eedfb611d645f2da69ac8' + '38766bc59e1571133d0399f0102da653' + '4434de7addc438be8c5a33274146bd11') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + patch -Np1 -i "${srcdir}/fix-includes.patch" + patch -Np0 -i "${srcdir}/zvbi-0.2.33-libpng15.patch" + + ./configure --prefix=/usr \ + --disable-static \ + --mandir=/usr/share/man + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make DESTDIR="${pkgdir}" install +} diff --git a/testing/zvbi/fix-includes.patch b/testing/zvbi/fix-includes.patch new file mode 100644 index 000000000..28252649e --- /dev/null +++ b/testing/zvbi/fix-includes.patch @@ -0,0 +1,36 @@ +Add proper #includes so that we do not get undef errors to S_ISCHR +during linking. + +Signed-off-by: Alex Chiang +--- +--- zvbi-0.2.33.orig/src/io-dvb.c ++++ zvbi-0.2.33/src/io-dvb.c +@@ -29,6 +29,8 @@ + #include + #include + #include ++#include ++#include + + #ifndef HAVE_S64_U64 + /* Linux 2.6.x asm/types.h defines __s64 and __u64 only +--- zvbi-0.2.33.orig/src/io-v4l.c ++++ zvbi-0.2.33/src/io-v4l.c +@@ -42,6 +42,7 @@ static const char rcsid [] = + #include + #include /* timeval */ + #include /* fd_set, uid_t */ ++#include /* S_ISCHR */ + #include /* for (_)videodev.h */ + #include + +--- zvbi-0.2.33.orig/contrib/ntsc-cc.c ++++ zvbi-0.2.33/contrib/ntsc-cc.c +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include + #include + #ifdef HAVE_GETOPT_LONG + # include diff --git a/testing/zvbi/zvbi-0.2.33-libpng15.patch b/testing/zvbi/zvbi-0.2.33-libpng15.patch new file mode 100644 index 000000000..262677376 --- /dev/null +++ b/testing/zvbi/zvbi-0.2.33-libpng15.patch @@ -0,0 +1,21 @@ +Index: src/exp-gfx.c +=================================================================== +RCS file: /cvsroot/zapping/vbi/src/exp-gfx.c,v +retrieving revision 1.16 +diff -u -B -r1.16 exp-gfx.c +--- src/exp-gfx.c 24 Feb 2008 14:17:47 -0000 1.16 ++++ src/exp-gfx.c 15 Feb 2011 20:03:58 -0000 +@@ -1672,11 +1672,11 @@ + char title[80]; + unsigned int i; + +- if (setjmp (png_ptr->jmpbuf)) ++ if (setjmp (png_jmpbuf(png_ptr))) + return FALSE; + + png_set_write_fn (png_ptr, +- (voidp) gfx, ++ (png_voidp) gfx, + write_data, + flush_data); + -- cgit v1.2.3-54-g00ecf