* Teletext support for zapping.
svn path=/nixpkgs/trunk/; revision=719
This commit is contained in:
parent
d9cebb072f
commit
91184df3b2
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
buildinputs="$pkgconfig $perl $python $x11 $libgnomeui \
|
buildinputs="$pkgconfig $perl $python $x11 $libgnomeui \
|
||||||
$libglade $scrollkeeper $esound $gettext"
|
$libglade $scrollkeeper $esound $gettext $zvbi $libjpeg $libpng"
|
||||||
. $stdenv/setup || exit 1
|
. $stdenv/setup || exit 1
|
||||||
|
|
||||||
# !!! hack; this is because $linuxHeaders/config.h includes some
|
# !!! hack; this is because $linuxHeaders/config.h includes some
|
||||||
|
|
|
@ -1,12 +1,19 @@
|
||||||
{ stdenv, fetchurl, pkgconfig, perl, python, x11, libgnomeui
|
{ teletextSupport ? true
|
||||||
, libglade, scrollkeeper, esound, gettext }:
|
, jpegSupport ? true
|
||||||
|
, pngSupport ? true
|
||||||
|
, stdenv, fetchurl, pkgconfig, perl, python, x11, libgnomeui
|
||||||
|
, libglade, scrollkeeper, esound, gettext
|
||||||
|
, zvbi ? null, libjpeg ? null, libpng ? null }:
|
||||||
|
|
||||||
assert !isNull pkgconfig && !isNull perl && !isNull python &&
|
assert !isNull pkgconfig && !isNull perl && !isNull python &&
|
||||||
!isNull x11 && !isNull libgnomeui && !isNull libglade &&
|
!isNull x11 && !isNull libgnomeui && !isNull libglade &&
|
||||||
!isNull scrollkeeper && !isNull esound && !isNull gettext;
|
!isNull scrollkeeper && !isNull esound && !isNull gettext;
|
||||||
|
|
||||||
# !!! zvbi library
|
assert teletextSupport -> !isNull zvbi && zvbi.pngSupport
|
||||||
# !!! arts, jpeg, png, rte
|
&& pngSupport && zvbi.libpng == libpng;
|
||||||
|
|
||||||
|
assert jpegSupport -> !isNull libjpeg;
|
||||||
|
assert pngSupport -> !isNull libpng;
|
||||||
|
|
||||||
derivation {
|
derivation {
|
||||||
name = "zapping-0.7cvs6";
|
name = "zapping-0.7cvs6";
|
||||||
|
@ -18,6 +25,10 @@ derivation {
|
||||||
md5 = "cdedc0088c70f4520c37066ec05cb996";
|
md5 = "cdedc0088c70f4520c37066ec05cb996";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
teletextSupport = teletextSupport;
|
||||||
|
jpegSupport = jpegSupport;
|
||||||
|
pngSupport = pngSupport;
|
||||||
|
|
||||||
stdenv = stdenv;
|
stdenv = stdenv;
|
||||||
pkgconfig = pkgconfig;
|
pkgconfig = pkgconfig;
|
||||||
perl = perl;
|
perl = perl;
|
||||||
|
@ -28,4 +39,7 @@ derivation {
|
||||||
scrollkeeper = scrollkeeper;
|
scrollkeeper = scrollkeeper;
|
||||||
esound = esound;
|
esound = esound;
|
||||||
gettext = gettext;
|
gettext = gettext;
|
||||||
|
zvbi = if teletextSupport then zvbi else null;
|
||||||
|
libjpeg = if jpegSupport then libjpeg else null;
|
||||||
|
libpng = if pngSupport then libpng else null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
buildinputs="$x11 $libpng"
|
||||||
|
. $stdenv/setup || exit 1
|
||||||
|
|
||||||
|
tar xvfj $src || exit 1
|
||||||
|
cd zvbi-* || exit 1
|
||||||
|
./configure --prefix=$out || exit 1
|
||||||
|
make || exit 1
|
||||||
|
make install || exit 1
|
||||||
|
strip -S $out/lib/*.a || exit 1
|
|
@ -0,0 +1,19 @@
|
||||||
|
{ pngSupport ? true
|
||||||
|
, stdenv, fetchurl, x11, libpng ? null}:
|
||||||
|
|
||||||
|
assert !isNull x11;
|
||||||
|
assert pngSupport -> !isNull libpng;
|
||||||
|
|
||||||
|
derivation {
|
||||||
|
name = "zvbi-0.2.5";
|
||||||
|
system = stdenv.system;
|
||||||
|
builder = ./builder.sh;
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://heanet.dl.sourceforge.net/sourceforge/zapping/zvbi-0.2.5.tar.bz2;
|
||||||
|
md5 = "06b370565246758813f6580797369518";
|
||||||
|
};
|
||||||
|
stdenv = stdenv;
|
||||||
|
x11 = x11;
|
||||||
|
pngSupport = pngSupport;
|
||||||
|
libpng = if pngSupport then libpng else null;
|
||||||
|
}
|
|
@ -693,6 +693,14 @@
|
||||||
stdenv = stdenv;
|
stdenv = stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zvbi = (import ../development/libraries/zvbi) {
|
||||||
|
fetchurl = fetchurl;
|
||||||
|
stdenv = stdenv;
|
||||||
|
x11 = xfree86;
|
||||||
|
pngSupport = true;
|
||||||
|
libpng = libpng;
|
||||||
|
};
|
||||||
|
|
||||||
perlBerkeleyDB = (import ../development/perl-modules/BerkeleyDB) {
|
perlBerkeleyDB = (import ../development/perl-modules/BerkeleyDB) {
|
||||||
fetchurl = fetchurl;
|
fetchurl = fetchurl;
|
||||||
stdenv = stdenv;
|
stdenv = stdenv;
|
||||||
|
@ -846,6 +854,12 @@
|
||||||
scrollkeeper = scrollkeeper;
|
scrollkeeper = scrollkeeper;
|
||||||
esound = esound;
|
esound = esound;
|
||||||
gettext = gettext;
|
gettext = gettext;
|
||||||
|
teletextSupport = true;
|
||||||
|
zvbi = zvbi;
|
||||||
|
jpegSupport = true;
|
||||||
|
libjpeg = libjpeg;
|
||||||
|
pngSupport = true;
|
||||||
|
libpng = libpng;
|
||||||
};
|
};
|
||||||
|
|
||||||
gqview = (import ../applications/graphics/gqview) {
|
gqview = (import ../applications/graphics/gqview) {
|
||||||
|
|
Loading…
Reference in New Issue