* Teletext support for zapping.
svn path=/nixpkgs/trunk/; revision=719
This commit is contained in:
11
pkgs/development/libraries/zvbi/builder.sh
Executable file
11
pkgs/development/libraries/zvbi/builder.sh
Executable file
@@ -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
|
||||
19
pkgs/development/libraries/zvbi/default.nix
Normal file
19
pkgs/development/libraries/zvbi/default.nix
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user