Patch x264

This commit is contained in:
Wildan M 2026-05-09 05:41:58 +02:00
parent 0801c2cc82
commit 7c43688ea2
3 changed files with 28 additions and 3 deletions

View File

@ -1,7 +1,17 @@
#TODO the redox target is not supported on the configure script
#TODO: Not used anywhere
[source]
git = "https://code.videolan.org/videolan/x264"
branch = "stable"
shallow_clone = true
patches = [
"redox.patch"
]
script = """
GNU_CONFIG_GET config.sub
"""
[build]
template = "configure"
configureflags = [
"--disable-asm"
]

View File

@ -0,0 +1,15 @@
diff -ruwN source/configure source-new/configure
--- source/configure 2026-05-09 05:38:56.776310501 +0200
+++ source-new/configure 2026-05-09 05:27:53.969854003 +0200
@@ -721,6 +721,11 @@
[ $compiler = GNU ] && RC="${RC-${cross_prefix}windres}" || RC="${RC-rc.exe}"
fi
;;
+ redox*)
+ SYS="REDOX"
+ define HAVE_MALLOC_H
+ libm=""
+ ;;
sunos*|solaris*)
SYS="SunOS"
define HAVE_MALLOC_H

View File

@ -1,7 +1,7 @@
#TODO not compiled or tested
#TODO need named semaphore
# build instructions: https://bitbucket.org/multicoreware/x265_git/src/master/build/README.txt#lines-68
[source]
tar = "https://bitbucket.org/multicoreware/x265_git/downloads/x265_4.1.tar.gz"
tar = "https://bitbucket.org/multicoreware/x265_git/downloads/x265_4.2.tar.gz"
[build]
template = "custom"
script = """