Skip to content

Commit

Permalink
[x264] Upgrade to latest revision and build for experimental platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed May 29, 2021
1 parent 75070ed commit e33bede
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions X/x264/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using BinaryBuilder

name = "x264"
version = v"2020.07.14"
version = v"2021.05.05"

# Collection of sources required to build x264
sources = [
ArchiveSource("https://code.videolan.org/videolan/x264/-/archive/db0d417728460c647ed4a847222a535b00d3dbcb/x264-db0d417728460c647ed4a847222a535b00d3dbcb.tar.gz",
"b79b7038ce083f152fdd35da2f0d770ac9189fa2319fd09012567bc3a33737af"),
ArchiveSource("https://code.videolan.org/videolan/x264/-/archive/b684ebe04a6f80f8207a57940a1fa00e25274f81/x264-b684ebe04a6f80f8207a57940a1fa00e25274f81.tar.gz",
"7e37c8be8c12b1c6a9822ca4c888543042aca8bfe40715a69881f4756bdfa8f3"),
]

# Bash recipe for building across all platforms
Expand All @@ -20,6 +20,8 @@ if [[ "${target}" == x86_64* ]] || [[ "${target}" == i686* ]]; then
else
export AS="${CC}"
fi
# Remove `-march` flag from `configure` script
sed -i 's/ -march=i686//g' configure
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} --enable-shared --enable-pic --disable-static
# Remove unsafe compilation flag
sed -i 's/ -ffast-math//g' config.mak
Expand All @@ -29,7 +31,7 @@ make install

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = supported_platforms()
platforms = supported_platforms(; experimental=true)

# The products that we will ensure are always built
products = [
Expand All @@ -42,4 +44,4 @@ dependencies = Dependency[
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6")

0 comments on commit e33bede

Please sign in to comment.