mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
xine-ui: xineLib -> xine-lib
And refactor.
This commit is contained in:
parent
f223a67c65
commit
bc5a164ccf
1 changed files with 45 additions and 16 deletions
|
@ -1,34 +1,63 @@
|
|||
{lib, stdenv, fetchurl, pkg-config, xorg, libpng, xineLib, readline, ncurses, curl
|
||||
, lirc, shared-mime-info, libjpeg }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, curl
|
||||
, libjpeg
|
||||
, libpng
|
||||
, lirc
|
||||
, ncurses
|
||||
, pkg-config
|
||||
, readline
|
||||
, shared-mime-info
|
||||
, xine-lib
|
||||
, xorg
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "xine-ui-0.99.12";
|
||||
pname = "xine-ui";
|
||||
version = "0.99.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/xine/${name}.tar.xz";
|
||||
url = "mirror://sourceforge/xine/${pname}-${version}.tar.xz";
|
||||
sha256 = "10zmmss3hm8gjjyra20qhdc0lb1m6sym2nb2w62bmfk8isfw9gsl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config shared-mime-info ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
shared-mime-info
|
||||
];
|
||||
buildInputs = [
|
||||
curl
|
||||
libjpeg
|
||||
libpng
|
||||
lirc
|
||||
ncurses
|
||||
readline
|
||||
xine-lib
|
||||
] ++ (with xorg; [
|
||||
libXext
|
||||
libXft
|
||||
libXi
|
||||
libXinerama
|
||||
libXtst
|
||||
libXv
|
||||
libXxf86vm
|
||||
xlibsWrapper
|
||||
xorgproto
|
||||
]);
|
||||
|
||||
buildInputs =
|
||||
[ xineLib libpng readline ncurses curl lirc libjpeg
|
||||
xorg.xlibsWrapper xorg.libXext xorg.libXv xorg.libXxf86vm xorg.libXtst xorg.xorgproto
|
||||
xorg.libXinerama xorg.libXi xorg.libXft
|
||||
];
|
||||
|
||||
patchPhase = ''sed -e '/curl\/types\.h/d' -i src/xitk/download.c'';
|
||||
postPatch = "sed -e '/curl\/types\.h/d' -i src/xitk/download.c";
|
||||
|
||||
configureFlags = [ "--with-readline=${readline.dev}" ];
|
||||
|
||||
LIRC_CFLAGS="-I${lirc}/include";
|
||||
LIRC_LIBS="-L ${lirc}/lib -llirc_client";
|
||||
#NIX_LDFLAGS = "-lXext -lgcc_s";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.xine-project.org/";
|
||||
description = "Xlib-based interface to Xine, a video player";
|
||||
homepage = "http://xinehq.de/";
|
||||
description = "Xlib-based frontend for Xine video player";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue