ffmpeg: cleanup darwin libraries
This commit is contained in:
parent
90e2c2cda5
commit
de72aac807
|
@ -6,13 +6,10 @@ let
|
||||||
callPackage ./generic.nix (
|
callPackage ./generic.nix (
|
||||||
{
|
{
|
||||||
inherit (darwin.apple_sdk.frameworks)
|
inherit (darwin.apple_sdk.frameworks)
|
||||||
Cocoa
|
AppKit
|
||||||
CoreServices
|
AudioToolbox
|
||||||
CoreAudio
|
|
||||||
CoreMedia
|
|
||||||
AVFoundation
|
AVFoundation
|
||||||
MediaToolbox
|
CoreImage
|
||||||
VideoDecodeAcceleration
|
|
||||||
VideoToolbox
|
VideoToolbox
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,14 +35,18 @@
|
||||||
# Feature flags
|
# Feature flags
|
||||||
, withAlsa ? withHeadlessDeps && stdenv.isLinux # Alsa in/output supporT
|
, withAlsa ? withHeadlessDeps && stdenv.isLinux # Alsa in/output supporT
|
||||||
, withAom ? withFullDeps # AV1 reference encoder
|
, withAom ? withFullDeps # AV1 reference encoder
|
||||||
|
, withAppKit ? withHeadlessDeps && stdenv.isDarwin # Apple AppKit framework
|
||||||
, withAribcaption ? withFullDeps && lib.versionAtLeast version "6.1" # ARIB STD-B24 Caption Decoder/Renderer
|
, withAribcaption ? withFullDeps && lib.versionAtLeast version "6.1" # ARIB STD-B24 Caption Decoder/Renderer
|
||||||
, withAss ? withHeadlessDeps && stdenv.hostPlatform == stdenv.buildPlatform # (Advanced) SubStation Alpha subtitle rendering
|
, withAss ? withHeadlessDeps && stdenv.hostPlatform == stdenv.buildPlatform # (Advanced) SubStation Alpha subtitle rendering
|
||||||
|
, withAudioToolbox ? withHeadlessDeps && stdenv.isDarwin # Apple AudioToolbox
|
||||||
|
, withAvFoundation ? withHeadlessDeps && stdenv.isDarwin # Apple AVFoundation framework
|
||||||
, withBluray ? withFullDeps # BluRay reading
|
, withBluray ? withFullDeps # BluRay reading
|
||||||
, withBs2b ? withFullDeps # bs2b DSP library
|
, withBs2b ? withFullDeps # bs2b DSP library
|
||||||
, withBzlib ? withHeadlessDeps
|
, withBzlib ? withHeadlessDeps
|
||||||
, withCaca ? withFullDeps # Textual display (ASCII art)
|
, withCaca ? withFullDeps # Textual display (ASCII art)
|
||||||
, withCelt ? withFullDeps # CELT decoder
|
, withCelt ? withFullDeps # CELT decoder
|
||||||
, withChromaprint ? withFullDeps # Audio fingerprinting
|
, withChromaprint ? withFullDeps # Audio fingerprinting
|
||||||
|
, withCoreImage ? withHeadlessDeps && stdenv.isDarwin # Apple CoreImage framework
|
||||||
, withCuda ? withFullDeps && (with stdenv; (!isDarwin && !hostPlatform.isAarch && !hostPlatform.isRiscV))
|
, withCuda ? withFullDeps && (with stdenv; (!isDarwin && !hostPlatform.isAarch && !hostPlatform.isRiscV))
|
||||||
, withCudaLLVM ? withFullDeps
|
, withCudaLLVM ? withFullDeps
|
||||||
, withDav1d ? withHeadlessDeps # AV1 decoder (focused on speed and correctness)
|
, withDav1d ? withHeadlessDeps # AV1 decoder (focused on speed and correctness)
|
||||||
|
@ -97,6 +101,7 @@
|
||||||
, withV4l2M2m ? withV4l2
|
, withV4l2M2m ? withV4l2
|
||||||
, withVaapi ? withHeadlessDeps && (with stdenv; isLinux || isFreeBSD) # Vaapi hardware acceleration
|
, withVaapi ? withHeadlessDeps && (with stdenv; isLinux || isFreeBSD) # Vaapi hardware acceleration
|
||||||
, withVdpau ? withSmallDeps && !stdenv.hostPlatform.isMinGW # Vdpau hardware acceleration
|
, withVdpau ? withSmallDeps && !stdenv.hostPlatform.isMinGW # Vdpau hardware acceleration
|
||||||
|
, withVideoToolbox ? withHeadlessDeps && stdenv.isDarwin # Apple VideoToolbox
|
||||||
, withVidStab ? withFullDeps && withGPL # Video stabilization
|
, withVidStab ? withFullDeps && withGPL # Video stabilization
|
||||||
, withVmaf ? withFullDeps && !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 && withVersion3 # AMR-WB encoder
|
, withVoAmrwbenc ? withFullDeps && withVersion3 # AMR-WB encoder
|
||||||
|
@ -287,13 +292,10 @@
|
||||||
/*
|
/*
|
||||||
* Darwin frameworks
|
* Darwin frameworks
|
||||||
*/
|
*/
|
||||||
|
, AppKit
|
||||||
|
, AudioToolbox
|
||||||
, AVFoundation
|
, AVFoundation
|
||||||
, Cocoa
|
, CoreImage
|
||||||
, CoreAudio
|
|
||||||
, CoreMedia
|
|
||||||
, CoreServices
|
|
||||||
, MediaToolbox
|
|
||||||
, VideoDecodeAcceleration
|
|
||||||
, VideoToolbox
|
, VideoToolbox
|
||||||
/*
|
/*
|
||||||
* Testing
|
* Testing
|
||||||
|
@ -491,16 +493,20 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
*/
|
*/
|
||||||
(enableFeature withAlsa "alsa")
|
(enableFeature withAlsa "alsa")
|
||||||
(enableFeature withAom "libaom")
|
(enableFeature withAom "libaom")
|
||||||
|
(enableFeature withAppKit "appkit")
|
||||||
] ++ optionals (versionAtLeast version "6.1") [
|
] ++ optionals (versionAtLeast version "6.1") [
|
||||||
(enableFeature withAribcaption "libaribcaption")
|
(enableFeature withAribcaption "libaribcaption")
|
||||||
] ++ [
|
] ++ [
|
||||||
(enableFeature withAss "libass")
|
(enableFeature withAss "libass")
|
||||||
|
(enableFeature withAudioToolbox "audiotoolbox")
|
||||||
|
(enableFeature withAvFoundation "avfoundation")
|
||||||
(enableFeature withBluray "libbluray")
|
(enableFeature withBluray "libbluray")
|
||||||
(enableFeature withBs2b "libbs2b")
|
(enableFeature withBs2b "libbs2b")
|
||||||
(enableFeature withBzlib "bzlib")
|
(enableFeature withBzlib "bzlib")
|
||||||
(enableFeature withCaca "libcaca")
|
(enableFeature withCaca "libcaca")
|
||||||
(enableFeature withCelt "libcelt")
|
(enableFeature withCelt "libcelt")
|
||||||
(enableFeature withChromaprint "chromaprint")
|
(enableFeature withChromaprint "chromaprint")
|
||||||
|
(enableFeature withCoreImage "coreimage")
|
||||||
(enableFeature withCuda "cuda")
|
(enableFeature withCuda "cuda")
|
||||||
(enableFeature withCudaLLVM "cuda-llvm")
|
(enableFeature withCudaLLVM "cuda-llvm")
|
||||||
(enableFeature withDav1d "libdav1d")
|
(enableFeature withDav1d "libdav1d")
|
||||||
|
@ -565,6 +571,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
] ++ optionals (versionAtLeast version "6.0") [
|
] ++ optionals (versionAtLeast version "6.0") [
|
||||||
(enableFeature withVpl "libvpl")
|
(enableFeature withVpl "libvpl")
|
||||||
] ++ [
|
] ++ [
|
||||||
|
(enableFeature withVideoToolbox "videotoolbox")
|
||||||
(enableFeature withVidStab "libvidstab") # Actual min. version 2.0
|
(enableFeature withVidStab "libvidstab") # Actual min. version 2.0
|
||||||
(enableFeature withVmaf "libvmaf")
|
(enableFeature withVmaf "libvmaf")
|
||||||
(enableFeature withVoAmrwbenc "libvo-amrwbenc")
|
(enableFeature withVoAmrwbenc "libvo-amrwbenc")
|
||||||
|
@ -619,14 +626,18 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
buildInputs = []
|
buildInputs = []
|
||||||
++ optionals withAlsa [ alsa-lib ]
|
++ optionals withAlsa [ alsa-lib ]
|
||||||
++ optionals withAom [ libaom ]
|
++ optionals withAom [ libaom ]
|
||||||
|
++ optionals withAppKit [ AppKit ]
|
||||||
++ optionals withAribcaption [ libaribcaption ]
|
++ optionals withAribcaption [ libaribcaption ]
|
||||||
++ optionals withAss [ libass ]
|
++ optionals withAss [ libass ]
|
||||||
|
++ optionals withAudioToolbox [ AudioToolbox ]
|
||||||
|
++ optionals withAvFoundation [ AVFoundation ]
|
||||||
++ optionals withBluray [ libbluray ]
|
++ optionals withBluray [ libbluray ]
|
||||||
++ optionals withBs2b [ libbs2b ]
|
++ optionals withBs2b [ libbs2b ]
|
||||||
++ optionals withBzlib [ bzip2 ]
|
++ optionals withBzlib [ bzip2 ]
|
||||||
++ optionals withCaca [ libcaca ]
|
++ optionals withCaca [ libcaca ]
|
||||||
++ optionals withCelt [ celt ]
|
++ optionals withCelt [ celt ]
|
||||||
++ optionals withChromaprint [ chromaprint ]
|
++ optionals withChromaprint [ chromaprint ]
|
||||||
|
++ optionals withCoreImage [ CoreImage ]
|
||||||
++ optionals withDav1d [ dav1d ]
|
++ optionals withDav1d [ dav1d ]
|
||||||
++ optionals withDc1394 [ libdc1394 libraw1394 ]
|
++ optionals withDc1394 [ libdc1394 libraw1394 ]
|
||||||
++ optionals withDrm [ libdrm ]
|
++ optionals withDrm [ libdrm ]
|
||||||
|
@ -676,6 +687,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
++ optionals withV4l2 [ libv4l ]
|
++ optionals withV4l2 [ libv4l ]
|
||||||
++ optionals withVaapi [ (if withSmallDeps then libva else libva-minimal) ]
|
++ optionals withVaapi [ (if withSmallDeps then libva else libva-minimal) ]
|
||||||
++ optionals withVdpau [ libvdpau ]
|
++ optionals withVdpau [ libvdpau ]
|
||||||
|
++ optionals withVideoToolbox [ VideoToolbox ]
|
||||||
++ optionals withVidStab [ vid-stab ]
|
++ optionals withVidStab [ vid-stab ]
|
||||||
++ optionals withVmaf [ libvmaf ]
|
++ optionals withVmaf [ libvmaf ]
|
||||||
++ optionals withVoAmrwbenc [ vo-amrwbenc ]
|
++ optionals withVoAmrwbenc [ vo-amrwbenc ]
|
||||||
|
@ -694,17 +706,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
++ optionals withZimg [ zimg ]
|
++ optionals withZimg [ zimg ]
|
||||||
++ optionals withZlib [ zlib ]
|
++ optionals withZlib [ zlib ]
|
||||||
++ optionals withZmq [ zeromq4 ]
|
++ optionals withZmq [ zeromq4 ]
|
||||||
++ optionals stdenv.isDarwin [
|
;
|
||||||
# TODO fine-grained flags
|
|
||||||
AVFoundation
|
|
||||||
Cocoa
|
|
||||||
CoreAudio
|
|
||||||
CoreMedia
|
|
||||||
CoreServices
|
|
||||||
MediaToolbox
|
|
||||||
VideoDecodeAcceleration
|
|
||||||
VideoToolbox
|
|
||||||
];
|
|
||||||
|
|
||||||
buildFlags = [ "all" ]
|
buildFlags = [ "all" ]
|
||||||
++ optional buildQtFaststart "tools/qt-faststart"; # Build qt-faststart executable
|
++ optional buildQtFaststart "tools/qt-faststart"; # Build qt-faststart executable
|
||||||
|
|
Loading…
Reference in New Issue
Block a user