From 4af690f376f8d7b4d043c8cf275828ee8a28810d Mon Sep 17 00:00:00 2001 From: Simon Danner Date: Sun, 3 Apr 2022 19:39:41 +0200 Subject: [PATCH] Ports: Add x265 Co-Authored-By: Tim Schumacher --- Ports/AvailablePorts.md | 1 + Ports/x265/package.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100755 Ports/x265/package.sh diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index f1efb44a42f..ad4961e17b2 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -222,6 +222,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`wget`](wget/) | GNU Wget | 1.21.3 | https://www.gnu.org/software/wget/ | | [`wireguard-tools`](wireguard-tools/) | WireGuard Tools | 1.0.20210914 | https://www.wireguard.com/ | | [`x264`](x264/) | x264 | bfc87b7 | https://www.videolan.org/developers/x264.html | +| [`x265`](x265/) | x265 | 3.5 | https://bitbucket.org/multicoreware/x265_git/wiki/Home | | [`xz`](xz/) | xz | 5.2.5 | https://tukaani.org/xz/ | | [`yasm`](yasm/) | Yasm Modular Assembler | 1.3.0 | https://yasm.tortall.net/ | | [`zlib`](zlib/) | zlib | 1.2.12 | https://www.zlib.net/ | diff --git a/Ports/x265/package.sh b/Ports/x265/package.sh new file mode 100755 index 00000000000..89be08aa836 --- /dev/null +++ b/Ports/x265/package.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=x265 +version=3.5 +auth_type=sha256 +workdir="${port}_${version}" +files=("https://bitbucket.org/multicoreware/x265_git/downloads/x265_${version}.tar.gz x265_${version}.tar.gz e70a3335cacacbba0b3a20ec6fecd6783932288ebc8163ad74bcc9606477cae8") +useconfigure=true + +configopts=( + "-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" +) + +configure() { + run cmake "${configopts[@]}" source +} + +install() { + run make install +}