mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00
ffmpeg: update license flags
none = lgpl21Plus
version3 = lgpl3Plus
gpl = gpl2Plus
version3 + gpl = gpl3Plus
nonfree = unfree (unredistributable)
see https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/LICENSE.md
see for which libary which license is needed 8e23ebe6f9
:/configure#l1804
This commit is contained in:
parent
074566850e
commit
cfb8f44c8c
1 changed files with 18 additions and 15 deletions
|
@ -42,7 +42,7 @@
|
||||||
, withFdkAac ? withFullDeps && withUnfree # Fraunhofer FDK AAC de/encoder
|
, withFdkAac ? withFullDeps && withUnfree # Fraunhofer FDK AAC de/encoder
|
||||||
, withFontconfig ? withHeadlessDeps # Needed for drawtext filter
|
, withFontconfig ? withHeadlessDeps # Needed for drawtext filter
|
||||||
, withFreetype ? withHeadlessDeps # Needed for drawtext filter
|
, withFreetype ? withHeadlessDeps # Needed for drawtext filter
|
||||||
, withFrei0r ? withFullDeps # frei0r video filtering
|
, withFrei0r ? withFullDeps && withGPL # frei0r video filtering
|
||||||
, withFribidi ? withFullDeps # Needed for drawtext filter
|
, withFribidi ? withFullDeps # Needed for drawtext filter
|
||||||
, withGme ? withFullDeps # Game Music Emulator
|
, withGme ? withFullDeps # Game Music Emulator
|
||||||
, withGnutls ? withHeadlessDeps
|
, withGnutls ? withHeadlessDeps
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
, withOgg ? withHeadlessDeps # Ogg container used by vorbis & theora
|
, withOgg ? withHeadlessDeps # Ogg container used by vorbis & theora
|
||||||
, withOpenal ? withFullDeps # OpenAL 1.1 capture support
|
, withOpenal ? withFullDeps # OpenAL 1.1 capture support
|
||||||
, withOpencl ? withFullDeps
|
, withOpencl ? withFullDeps
|
||||||
, withOpencoreAmrnb ? withFullDeps # AMR-NB de/encoder & AMR-WB decoder
|
, withOpencoreAmrnb ? withFullDeps && withVersion3 # AMR-NB de/encoder & AMR-WB decoder
|
||||||
, withOpengl ? false # OpenGL rendering
|
, withOpengl ? false # OpenGL rendering
|
||||||
, withOpenh264 ? withFullDeps # H.264/AVC encoder
|
, withOpenh264 ? withFullDeps # H.264/AVC encoder
|
||||||
, withOpenjpeg ? withFullDeps # JPEG 2000 de/encoder
|
, withOpenjpeg ? withFullDeps # JPEG 2000 de/encoder
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
, withPulse ? withSmallDeps && !stdenv.isDarwin # Pulseaudio input support
|
, withPulse ? withSmallDeps && !stdenv.isDarwin # Pulseaudio input support
|
||||||
, withRav1e ? withFullDeps # AV1 encoder (focused on speed and safety)
|
, withRav1e ? withFullDeps # AV1 encoder (focused on speed and safety)
|
||||||
, withRtmp ? false # RTMP[E] support
|
, withRtmp ? false # RTMP[E] support
|
||||||
, withSamba ? withFullDeps && !stdenv.isDarwin # Samba protocol
|
, withSamba ? withFullDeps && !stdenv.isDarwin && withGPLv3 # Samba protocol
|
||||||
, withSdl2 ? withSmallDeps
|
, withSdl2 ? withSmallDeps
|
||||||
, withShaderc ? withFullDeps && !stdenv.isDarwin && lib.versionAtLeast version "5.0"
|
, withShaderc ? withFullDeps && !stdenv.isDarwin && lib.versionAtLeast version "5.0"
|
||||||
, withSoxr ? withHeadlessDeps # Resampling via soxr
|
, withSoxr ? withHeadlessDeps # Resampling via soxr
|
||||||
|
@ -85,23 +85,23 @@
|
||||||
, withV4l2M2m ? withV4l2
|
, withV4l2M2m ? withV4l2
|
||||||
, withVaapi ? withHeadlessDeps && (with stdenv; isLinux || isFreeBSD) # Vaapi hardware acceleration
|
, withVaapi ? withHeadlessDeps && (with stdenv; isLinux || isFreeBSD) # Vaapi hardware acceleration
|
||||||
, withVdpau ? withSmallDeps # Vdpau hardware acceleration
|
, withVdpau ? withSmallDeps # Vdpau hardware acceleration
|
||||||
, withVidStab ? withFullDeps # Video stabilization
|
, withVidStab ? withFullDeps && withGPL # Video stabilization
|
||||||
, withVmaf ? withFullDeps && withGPLv3 && !stdenv.isAarch64 && lib.versionAtLeast version "5" # Netflix's VMAF (Video Multi-Method Assessment Fusion)
|
, withVmaf ? withFullDeps && !stdenv.isAarch64 && lib.versionAtLeast version "5" # Netflix's VMAF (Video Multi-Method Assessment Fusion)
|
||||||
, withVoAmrwbenc ? withFullDeps # AMR-WB encoder
|
, withVoAmrwbenc ? withFullDeps && withVersion3 # AMR-WB encoder
|
||||||
, withVorbis ? withHeadlessDeps # Vorbis de/encoding, native encoder exists
|
, withVorbis ? withHeadlessDeps # Vorbis de/encoding, native encoder exists
|
||||||
, withVpx ? withHeadlessDeps && stdenv.buildPlatform == stdenv.hostPlatform # VP8 & VP9 de/encoding
|
, withVpx ? withHeadlessDeps && stdenv.buildPlatform == stdenv.hostPlatform # VP8 & VP9 de/encoding
|
||||||
, withVulkan ? withFullDeps && !stdenv.isDarwin
|
, withVulkan ? withFullDeps && !stdenv.isDarwin
|
||||||
, withWebp ? withFullDeps # WebP encoder
|
, withWebp ? withFullDeps # WebP encoder
|
||||||
, withX264 ? withHeadlessDeps # H.264/AVC encoder
|
, withX264 ? withHeadlessDeps && withGPL # H.264/AVC encoder
|
||||||
, withX265 ? withHeadlessDeps # H.265/HEVC encoder
|
, withX265 ? withHeadlessDeps && withGPL # H.265/HEVC encoder
|
||||||
, withXavs ? withFullDeps # AVS encoder
|
, withXavs ? withFullDeps && withGPL # AVS encoder
|
||||||
, withXcb ? withXcbShm || withXcbxfixes || withXcbShape # X11 grabbing using XCB
|
, withXcb ? withXcbShm || withXcbxfixes || withXcbShape # X11 grabbing using XCB
|
||||||
, withXcbShape ? withFullDeps # X11 grabbing shape rendering
|
, withXcbShape ? withFullDeps # X11 grabbing shape rendering
|
||||||
, withXcbShm ? withFullDeps # X11 grabbing shm communication
|
, withXcbShm ? withFullDeps # X11 grabbing shm communication
|
||||||
, withXcbxfixes ? withFullDeps # X11 grabbing mouse rendering
|
, withXcbxfixes ? withFullDeps # X11 grabbing mouse rendering
|
||||||
, withXlib ? withFullDeps # Xlib support
|
, withXlib ? withFullDeps # Xlib support
|
||||||
, withXml2 ? withFullDeps # libxml2 support, for IMF and DASH demuxers
|
, withXml2 ? withFullDeps # libxml2 support, for IMF and DASH demuxers
|
||||||
, withXvid ? withHeadlessDeps # Xvid encoder, native encoder exists
|
, withXvid ? withHeadlessDeps && withGPL # Xvid encoder, native encoder exists
|
||||||
, withZimg ? withHeadlessDeps
|
, withZimg ? withHeadlessDeps
|
||||||
, withZlib ? withHeadlessDeps
|
, withZlib ? withHeadlessDeps
|
||||||
, withZmq ? withFullDeps # Message passing
|
, withZmq ? withFullDeps # Message passing
|
||||||
|
@ -110,7 +110,8 @@
|
||||||
* Licensing options (yes some are listed twice, filters and such are not listed)
|
* Licensing options (yes some are listed twice, filters and such are not listed)
|
||||||
*/
|
*/
|
||||||
, withGPL ? true
|
, withGPL ? true
|
||||||
, withGPLv3 ? true
|
, withVersion3 ? true # When withGPL is set this implies GPLv3 otherwise it is LGPLv3
|
||||||
|
, withGPLv3 ? withGPL && withVersion3
|
||||||
, withUnfree ? false
|
, withUnfree ? false
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -306,8 +307,8 @@ assert lib.elem ffmpegVariant [ "headless" "small" "full" ];
|
||||||
/*
|
/*
|
||||||
* Licensing dependencies
|
* Licensing dependencies
|
||||||
*/
|
*/
|
||||||
assert withGPLv3 -> withGPL;
|
assert withGPLv3 -> withGPL && withVersion3;
|
||||||
assert withUnfree -> withGPL && withGPLv3;
|
|
||||||
/*
|
/*
|
||||||
* Build dependencies
|
* Build dependencies
|
||||||
*/
|
*/
|
||||||
|
@ -381,7 +382,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
* Licensing flags
|
* Licensing flags
|
||||||
*/
|
*/
|
||||||
(enableFeature withGPL "gpl")
|
(enableFeature withGPL "gpl")
|
||||||
(enableFeature withGPLv3 "version3")
|
(enableFeature withVersion3 "version3")
|
||||||
(enableFeature withUnfree "nonfree")
|
(enableFeature withUnfree "nonfree")
|
||||||
/*
|
/*
|
||||||
* Build flags
|
* Build flags
|
||||||
|
@ -707,8 +708,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
'';
|
'';
|
||||||
license = with licenses; [ lgpl21Plus ]
|
license = with licenses; [ lgpl21Plus ]
|
||||||
++ optional withGPL gpl2Plus
|
++ optional withGPL gpl2Plus
|
||||||
|
++ optional withVersion3 lgpl3Plus
|
||||||
++ optional withGPLv3 gpl3Plus
|
++ optional withGPLv3 gpl3Plus
|
||||||
++ optional withUnfree unfreeRedistributable;
|
++ optional withUnfree unfreeRedistributable
|
||||||
|
++ optional (withGPL && withUnfree) unfree;
|
||||||
pkgConfigModules = [ "libavutil" ];
|
pkgConfigModules = [ "libavutil" ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ atemu arthsmn ];
|
maintainers = with maintainers; [ atemu arthsmn ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue