# HG changeset patch # User Christopher Rogers # Date 1291122495 0 # Node ID 638685c83b667e751ba0553c699325e0d3095bc8 # Parent 098353dab7535b190a12f372d29c13ed37ba9328 Add zvbi. VBI capture and decoding library. diff -r 098353dab753 -r 638685c83b66 zvbi-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zvbi-dev/receipt Tue Nov 30 13:08:15 2010 +0000 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="zvbi-dev" +VERSION="0.2.33" +CATEGORY="development" +SHORT_DESC="devel files for zvbi" +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="zvbi" +WEB_SITE="http://zapping.sourceforge.net/cgi-bin/view/ZVBI/WebHome" +WANTED="zvbi" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $_pkg/usr/include $fs/usr + cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib +} + diff -r 098353dab753 -r 638685c83b66 zvbi/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zvbi/receipt Tue Nov 30 13:08:15 2010 +0000 @@ -0,0 +1,36 @@ +# SliTaz package receipt. + +PACKAGE="zvbi" +VERSION="0.2.33" +CATEGORY="multimedia" +SHORT_DESC="VBI capture and decoding library." +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="libpng xorg-libX11" +BUILD_DEPENDS="libpng-dev xorg-libX11-dev zlib-dev" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://zapping.sourceforge.net/cgi-bin/view/ZVBI/WebHome" +WGET_URL="$SF_MIRROR/zapping/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + patch -Np1 -i ../stuff/fix-includes.patch + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --disable-static \ + $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib +} + diff -r 098353dab753 -r 638685c83b66 zvbi/stuff/fix-includes.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zvbi/stuff/fix-includes.patch Tue Nov 30 13:08:15 2010 +0000 @@ -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