From f12ebd45ef608ccc75b8e4382e58aafe414831d8 Mon Sep 17 00:00:00 2001 From: Yuichiro NAITO Date: Mon, 2 Jul 2018 22:57:41 +0900 Subject: [PATCH] build: Fix to not pass --enable-nvenc to FFmpeg configure on FreeBSD. Nvenc is not currently supported by Nvidia on FreeBSD. If it becomes supported on FreeBSD, please check nvidia-driver and FFmpeg. --- contrib/ffmpeg/P00-freebsd-configure.patch | 11 ----------- make/configure.py | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 contrib/ffmpeg/P00-freebsd-configure.patch diff --git a/contrib/ffmpeg/P00-freebsd-configure.patch b/contrib/ffmpeg/P00-freebsd-configure.patch deleted file mode 100644 index 0f6e08610..000000000 --- a/contrib/ffmpeg/P00-freebsd-configure.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/configure.bak 2018-06-16 10:12:16.000000000 +0900 -+++ b/configure 2018-06-30 17:38:01.378774000 +0900 -@@ -6325,7 +6325,7 @@ - - if enabled x86; then - case $target_os in -- mingw32*|mingw64*|win32|win64|linux|cygwin*) -+ mingw32*|mingw64*|win32|win64|linux|freebsd|cygwin*) - ;; - *) - disable ffnvcodec cuvid nvdec nvenc diff --git a/make/configure.py b/make/configure.py index 4ec254fa6..c3eeee34d 100644 --- a/make/configure.py +++ b/make/configure.py @@ -1320,7 +1320,7 @@ def createCLI(): grp.add_option( '--disable-ffmpeg-aac', dest="enable_ffmpeg_aac", action='store_false' ) h = IfHost( 'enable Nvidia NVEnc video encoder', '*-*-*', none=optparse.SUPPRESS_HELP ).value - grp.add_option( '--enable-nvenc', dest="enable_nvenc", default=not host.match( '*-*-darwin*' ), action='store_true', help=h ) + grp.add_option( '--enable-nvenc', dest="enable_nvenc", default=not (host.match( '*-*-darwin*' ) or host.match( '*-*-freebsd*' )), action='store_true', help=h ) cli.add_option_group( grp ) -- 2.40.0