Skip to content

Commit 14294e2

Browse files
theogfgiordano
authored andcommitted
Update FFMPEG to 6.1.1 (JuliaPackaging#8090)
* Update version of FFMPEG * allow ffplay on mac/aarch64 * Compat macos < 10.13 * Update F/FFMPEG/FFMPEG/build_tarballs.jl Co-authored-by: Mosè Giordano <[email protected]> * Revert formatting * Restore fix --------- Co-authored-by: Mosè Giordano <[email protected]>
1 parent b850411 commit 14294e2

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

F/FFMPEG/FFMPEG/build_tarballs.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ products = [
1212
LibraryProduct(["libavdevice", "avdevice"], :libavdevice),
1313
LibraryProduct(["libavfilter", "avfilter"], :libavfilter),
1414
LibraryProduct(["libavformat", "avformat"], :libavformat),
15-
LibraryProduct(["libavresample", "avresample"], :libavresample),
1615
LibraryProduct(["libavutil", "avutil"], :libavutil),
1716
LibraryProduct(["libpostproc", "postproc"], :libpostproc),
1817
LibraryProduct(["libswresample", "swresample"], :libswresample),
@@ -44,4 +43,4 @@ dependencies = [
4443

4544
# Build the tarballs, and possibly a `build.jl` as well.
4645
build_tarballs(ARGS, name, version, sources, script(; ffplay=false), platforms, products, dependencies;
47-
julia_compat="1.6", preferred_gcc_version=preferred_gcc_version)
46+
julia_compat="1.6", preferred_gcc_version=preferred_gcc_version, clang_use_lld=false)

F/FFMPEG/common.jl

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@
33
using BinaryBuilder, Pkg
44

55
name = "FFMPEG"
6-
version_string = "4.4.4" # when patch number is zero, they use X.Y format
6+
version_string = "6.1.1" # when patch number is zero, they use X.Y format
77
version = VersionNumber(version_string)
88

99
# Collection of sources required to build FFMPEG
1010
sources = [
11-
ArchiveSource("https://ffmpeg.org/releases/ffmpeg-$(version_string).tar.xz",
12-
"e80b380d595c809060f66f96a5d849511ef4a76a26b76eacf5778b94c3570309"),
11+
ArchiveSource(
12+
"https://ffmpeg.org/releases/ffmpeg-$(version_string).tar.xz",
13+
"8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968",
14+
),
15+
## FFmpeg 6.1.1 does not work with macos 10.13 or earlier.
16+
ArchiveSource(
17+
"https://github.com/phracker/MacOSX-SDKs/releases/download/10.15/MacOSX10.13.sdk.tar.xz",
18+
"a3a077385205039a7c6f9e2c98ecdf2a720b2a819da715e03e0630c75782c1e4",
19+
),
1320
]
1421

1522
# Bash recipe for building across all platforms
@@ -48,15 +55,16 @@ else
4855
export ccARCH="x86_64"
4956
fi
5057
51-
if [[ "${target}" == arm-* ]]; then
52-
export CUDA_ARGS=""
53-
elif [[ "${target}" == *-apple-* ]]; then
54-
export CUDA_ARGS=""
55-
elif [[ "${target}" == *-unknown-freebsd* ]]; then
56-
export CUDA_ARGS=""
57-
else
58-
export CUDA_ARGS="--enable-nvenc --enable-cuda-llvm"
59-
fi
58+
if [[ "${target}" == x86_64-apple-darwin* ]]; then
59+
export MACOSX_DEPLOYMENT_TARGET=10.13
60+
pushd ${WORKSPACE}/srcdir/MacOSX10.*.sdk
61+
rm -rf /opt/${target}/${target}/sys-root/System
62+
cp -a usr/* "/opt/${target}/${target}/sys-root/usr/"
63+
cp -a System "/opt/${target}/${target}/sys-root/"
64+
popd
65+
fi
66+
67+
export CUDA_ARGS=""
6068
6169
EXTRA_FLAGS=()
6270
if [[ "${target}" == *-darwin* ]]; then
@@ -93,7 +101,6 @@ sed -i 's/cpuflags="-march=$cpu"/cpuflags=""/g' configure
93101
--enable-pic \
94102
--disable-debug \
95103
--disable-doc \
96-
--enable-avresample \
97104
--enable-libaom \
98105
--enable-libass \
99106
--enable-libfdk-aac \

0 commit comments

Comments
 (0)