--- avidemux_core/ffmpeg_package/patches/configure.patch.orig 2021-11-29 16:28:06 UTC +++ avidemux_core/ffmpeg_package/patches/configure.patch @@ -0,0 +1,33 @@ +--- configure.orig 2020-07-09 11:17:46.000000000 +0200 ++++ configure +@@ -3788,6 +3788,8 @@ + arch_default=$(uname -p) + strip_default="strip -X32_64" + nm_default="nm -g -X32_64" ++elif test "$target_os_default" = freebsd; then ++ arch_default=$(uname -p) + else + arch_default=$(uname -m) + fi +@@ -4984,9 +4986,11 @@ + fi + } + +- [ "$cpu" = generic ] && cpu=$(probe_arm_arch) + + case $cpu in ++ generic) ++ subarch=$(probe_arm_arch | sed 's/[^a-z0-9]//g') ++ ;; + armv*) + cpuflags="-march=$cpu" + subarch=$(echo $cpu | sed 's/[^a-z0-9]//g') +@@ -6751,7 +6755,7 @@ + + if enabled x86; then + case $target_os in +- mingw32*|mingw64*|win32|win64|linux|cygwin*) ++ freebsd|mingw32*|mingw64*|win32|win64|linux|cygwin*) + ;; + *) + disable ffnvcodec cuvid nvdec nvenc