diff options
author | Hunter Kvalevog <hunterkva@protonmail.com> | 2022-04-02 19:14:23 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-03 14:45:13 +0100 |
commit | a0bbadac14e9c745f0c31a71cfe82a4bb7a1b586 (patch) | |
tree | 58a66cdb675bf24ff9e71c4e6f7aadcaafca0b5a /Ports | |
parent | 9ca15793e7dd27fe5c62f339914b54fb301feba0 (diff) | |
download | serenity-a0bbadac14e9c745f0c31a71cfe82a4bb7a1b586.zip |
Ports: Add x264
Diffstat (limited to 'Ports')
-rw-r--r-- | Ports/AvailablePorts.md | 1 | ||||
-rwxr-xr-x | Ports/x264/package.sh | 8 | ||||
-rw-r--r-- | Ports/x264/patches/ReadMe.md | 5 | ||||
-rw-r--r-- | Ports/x264/patches/serenity-configure.patch | 28 |
4 files changed, 42 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 922b0369be..2cff0cacd9 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -212,6 +212,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`vttest`](vttest/) | vttest | 20220215 | https://invisible-island.net/vttest/ | | [`wget`](wget/) | GNU Wget | 1.21.2 | 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 | | [`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/x264/package.sh b/Ports/x264/package.sh new file mode 100755 index 0000000000..20d5ab2544 --- /dev/null +++ b/Ports/x264/package.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env -S bash ../.port_include.sh + +port=x264 +version=bfc87b7a330f75f5c9a21e56081e4b20344f139e +useconfigure=true +files="https://code.videolan.org/videolan/x264/-/archive/${version}/x264-master.tar.gz libx264-${version}.tar.gz 2ca2344fc2d657150599687e128dac8816b07e8d5c991fa2281e51fe647bbbe7" +auth_type=sha256 +configopts=("--enable-shared") diff --git a/Ports/x264/patches/ReadMe.md b/Ports/x264/patches/ReadMe.md new file mode 100644 index 0000000000..3693b21bf8 --- /dev/null +++ b/Ports/x264/patches/ReadMe.md @@ -0,0 +1,5 @@ +# Patches for x264 on SerenityOS + +## `serenity-configure.patch` + +Adds `serenity` as a valid platform diff --git a/Ports/x264/patches/serenity-configure.patch b/Ports/x264/patches/serenity-configure.patch new file mode 100644 index 0000000000..e35282839c --- /dev/null +++ b/Ports/x264/patches/serenity-configure.patch @@ -0,0 +1,28 @@ +diff --git a/config.sub b/config.sub +index 72e9265b..2ee38778 100755 +--- a/config.sub ++++ b/config.sub +@@ -1514,6 +1514,8 @@ case $os in + ;; + -nacl*) + ;; ++ -serenity) ++ ;; + -none) + ;; + *) +diff --git a/configure b/configure +index e242e73c..1f60a1ab 100755 +--- a/configure ++++ b/configure +@@ -729,6 +729,10 @@ case $host_os in + *haiku*) + SYS="HAIKU" + ;; ++ serenity) ++ SYS="SERENITY" ++ libm="-lm" ++ ;; + *) + die "Unknown system $host, edit the configure" + ;; |