2021-04-30 20:50:49 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2022-02-07 19:00:48 +00:00
|
|
|
, fetchpatch
|
2021-04-30 20:50:49 +00:00
|
|
|
, aalib
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2022-02-07 19:00:48 +00:00
|
|
|
, autoconf
|
2023-03-03 18:41:10 +00:00
|
|
|
, ffmpeg_4
|
2021-04-30 20:50:49 +00:00
|
|
|
, flac
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libcaca
|
|
|
|
, libcdio
|
|
|
|
, libmng
|
|
|
|
, libmpcdec
|
|
|
|
, libpulseaudio
|
|
|
|
, libtheora
|
|
|
|
, libv4l
|
|
|
|
, libvorbis
|
2021-05-08 02:57:45 +00:00
|
|
|
, ncurses
|
2021-04-30 20:50:49 +00:00
|
|
|
, perl
|
|
|
|
, pkg-config
|
|
|
|
, speex
|
|
|
|
, vcdimager
|
|
|
|
, xorg
|
|
|
|
, zlib
|
2009-08-11 20:47:33 +00:00
|
|
|
}:
|
2004-12-10 23:16:23 +00:00
|
|
|
|
2009-08-11 20:47:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-04-25 20:46:45 +00:00
|
|
|
pname = "xine-lib";
|
|
|
|
version = "1.2.11";
|
2016-05-26 13:30:55 +00:00
|
|
|
|
2004-12-10 23:16:23 +00:00
|
|
|
src = fetchurl {
|
2021-04-25 20:46:45 +00:00
|
|
|
url = "mirror://sourceforge/xine/xine-lib-${version}.tar.xz";
|
2021-04-30 20:50:49 +00:00
|
|
|
sha256 = "sha256-71GyHRDdoQRfp9cRvZFxz9rwpaKHQjO88W/98o7AcAU=";
|
2004-12-10 23:16:23 +00:00
|
|
|
};
|
2011-07-25 15:08:16 +00:00
|
|
|
|
2022-02-07 19:00:48 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with libcaca 0.99.beta20 ; remove for xine-lib 1.2.12
|
|
|
|
(fetchpatch {
|
|
|
|
name = "xine-lib-libcaca-0.99.beta20-fix.patch";
|
|
|
|
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/209ae10d59d29c13633b75aa327cf937f3ff0725/trunk/010-xine-lib-libcaca-0.99.beta20-fix.patch";
|
|
|
|
sha256 = "088141x1yp84y09x3s01v21yzas2bwavxz9v30z5hyq6c3syrmgr";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-04-30 20:50:49 +00:00
|
|
|
nativeBuildInputs = [
|
2022-02-07 19:00:48 +00:00
|
|
|
autoconf
|
2021-04-30 20:50:49 +00:00
|
|
|
pkg-config
|
|
|
|
perl
|
|
|
|
];
|
2011-06-07 21:50:05 +00:00
|
|
|
buildInputs = [
|
2021-04-30 20:50:49 +00:00
|
|
|
aalib
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib
|
2023-03-03 18:41:10 +00:00
|
|
|
ffmpeg_4 # xine-lib 1.2.12 should support ffmpeg_5
|
2021-04-30 20:50:49 +00:00
|
|
|
flac
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libcaca
|
|
|
|
libcdio
|
|
|
|
libmng
|
|
|
|
libmpcdec
|
|
|
|
libpulseaudio
|
|
|
|
libtheora
|
|
|
|
libv4l
|
|
|
|
libvorbis
|
2021-05-08 02:57:45 +00:00
|
|
|
ncurses
|
2021-04-30 20:50:49 +00:00
|
|
|
perl
|
|
|
|
speex
|
|
|
|
vcdimager
|
|
|
|
zlib
|
|
|
|
] ++ (with xorg; [
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXinerama
|
|
|
|
libXv
|
|
|
|
libxcb
|
|
|
|
]);
|
|
|
|
|
2021-05-08 02:57:45 +00:00
|
|
|
enableParallelBuilding = true;
|
2019-06-14 08:04:27 +00:00
|
|
|
|
2016-05-26 13:43:08 +00:00
|
|
|
NIX_LDFLAGS = "-lxcb-shm";
|
2016-05-26 13:29:54 +00:00
|
|
|
|
2011-07-25 15:08:16 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://xine.sourceforge.net/";
|
2009-08-11 20:47:33 +00:00
|
|
|
description = "A high-performance, portable and reusable multimedia playback engine";
|
2021-04-25 20:46:45 +00:00
|
|
|
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
2021-04-30 20:50:49 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2009-08-11 20:47:33 +00:00
|
|
|
};
|
|
|
|
}
|