2021-02-05 17:12:51 +00:00
|
|
|
|
{ lib, stdenv, fetchurl, popt }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
|
pname = "libdv";
|
|
|
|
|
version = "1.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-13 20:06:32 +00:00
|
|
|
|
url = "mirror://sourceforge/libdv/libdv-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3";
|
|
|
|
|
};
|
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
|
# Disable priority scheduling on Darwin because it doesn’t support sched_setscheduler.
|
2024-09-26 11:04:55 +00:00
|
|
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
2023-11-16 04:20:00 +00:00
|
|
|
|
substituteInPlace encodedv/dvconnect.c \
|
|
|
|
|
--replace '#ifdef _SC_PRIORITY_SCHEDULING' '#if 0'
|
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
|
"--disable-asm"
|
|
|
|
|
"--disable-sdl"
|
|
|
|
|
"--disable-gtk"
|
|
|
|
|
"--disable-xv"
|
|
|
|
|
"--disable-gprof"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [ popt ];
|
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "Software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards";
|
|
|
|
|
homepage = "https://sourceforge.net/projects/libdv/";
|
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
};
|
|
|
|
|
}
|