diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-07-29 11:28:09 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-07-30 20:25:45 +0000 |
commit | ac0eb8ced85765bc37e5d96423e5937d1d8157a9 (patch) | |
tree | 97b0a33bf4f927cab063d0175e9df1ec8143058d /pkgs/applications/video | |
parent | 93d42e754621a4093187c81bfd64556c9cee39cc (diff) |
xine-ui, xine-lib: move to pkgs/xine
Because they are interdependent.
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/xine/lib.nix | 92 | ||||
-rw-r--r-- | pkgs/applications/video/xine/ui.nix (renamed from pkgs/applications/video/xine-ui/default.nix) | 0 |
2 files changed, 92 insertions, 0 deletions
diff --git a/pkgs/applications/video/xine/lib.nix b/pkgs/applications/video/xine/lib.nix new file mode 100644 index 0000000000000..837cc0d48b57e --- /dev/null +++ b/pkgs/applications/video/xine/lib.nix @@ -0,0 +1,92 @@ +{ lib +, stdenv +, fetchurl +, fetchpatch +, aalib +, alsa-lib +, autoconf +, ffmpeg_4 +, flac +, libGL +, libGLU +, libcaca +, libcdio +, libmng +, libmpcdec +, libpulseaudio +, libtheora +, libv4l +, libvorbis +, ncurses +, perl +, pkg-config +, speex +, vcdimager +, xorg +, zlib +}: + +stdenv.mkDerivation rec { + pname = "xine-lib"; + version = "1.2.11"; + + src = fetchurl { + url = "mirror://sourceforge/xine/xine-lib-${version}.tar.xz"; + sha256 = "sha256-71GyHRDdoQRfp9cRvZFxz9rwpaKHQjO88W/98o7AcAU="; + }; + + 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"; + }) + ]; + + nativeBuildInputs = [ + autoconf + pkg-config + perl + ]; + buildInputs = [ + aalib + alsa-lib + ffmpeg_4 # xine-lib 1.2.12 should support ffmpeg_5 + flac + libGL + libGLU + libcaca + libcdio + libmng + libmpcdec + libpulseaudio + libtheora + libv4l + libvorbis + ncurses + perl + speex + vcdimager + zlib + ] ++ (with xorg; [ + libX11 + libXext + libXinerama + libXv + libxcb + ]); + + enableParallelBuilding = true; + + NIX_LDFLAGS = "-lxcb-shm"; + + + meta = with lib; { + homepage = "https://xine.sourceforge.net/"; + description = "A high-performance, portable and reusable multimedia playback engine"; + license = with licenses; [ gpl2Plus lgpl2Plus ]; + maintainers = with maintainers; [ AndersonTorres ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/video/xine-ui/default.nix b/pkgs/applications/video/xine/ui.nix index 8becf629d153d..8becf629d153d 100644 --- a/pkgs/applications/video/xine-ui/default.nix +++ b/pkgs/applications/video/xine/ui.nix |