summaryrefslogtreecommitdiff
path: root/Ports/x265/package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Ports/x265/package.sh')
-rwxr-xr-xPorts/x265/package.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/Ports/x265/package.sh b/Ports/x265/package.sh
new file mode 100755
index 0000000000..89be08aa83
--- /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
+}