diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2004-01-25 08:51:03 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2004-01-25 08:51:03 +0000 |
commit | 91184df3b2ca5d2249c7472c4ba4489ee0d1a26c (patch) | |
tree | 06e514db2f052a1453ae4e1a712524036ad0f363 /pkgs/development | |
parent | d9cebb072f46ed681d69de82b050dd1ec4857a4e (diff) |
* Teletext support for zapping.
svn path=/nixpkgs/trunk/; revision=719
Diffstat (limited to 'pkgs/development')
-rwxr-xr-x | pkgs/development/libraries/zvbi/builder.sh | 11 | ||||
-rw-r--r-- | pkgs/development/libraries/zvbi/default.nix | 19 |
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/libraries/zvbi/builder.sh b/pkgs/development/libraries/zvbi/builder.sh new file mode 100755 index 0000000000000..a123b16dce28c --- /dev/null +++ b/pkgs/development/libraries/zvbi/builder.sh @@ -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 diff --git a/pkgs/development/libraries/zvbi/default.nix b/pkgs/development/libraries/zvbi/default.nix new file mode 100644 index 0000000000000..55a106b349e37 --- /dev/null +++ b/pkgs/development/libraries/zvbi/default.nix @@ -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; +} |