Skip to content

Commit

Permalink
main/x264: fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgarga authored and q66 committed Apr 4, 2024
1 parent 424d0a3 commit bbcb23d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions main/x264/patches/fix-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/configure b/configure
index b986a24..9c9a78a 100755
--- a/configure
+++ b/configure
@@ -1558,7 +1558,7 @@ includedir=$includedir

Name: x264
Description: H.264 (MPEG4 AVC) encoder library
-Version: $(grep POINTVER < x264_config.h | sed -e 's/.* "//; s/".*//; s/ .*//')
+Version: $(grep POINTVER < x264_config.h | sed -E 's/.* "//; s/".*//; s/ .*//; s/\.[[:alpha:]]+//')
Libs: -L$libdir -lx264 $([ "$shared" = "yes" ] || echo $libpthread $libm $libdl)
Libs.private: $([ "$shared" = "yes" ] && echo $libpthread $libm $libdl)
Cflags: -I$includedir $([ "$shared" = "yes" ] && echo "-DX264_API_IMPORTS")
2 changes: 1 addition & 1 deletion main/x264/template.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgname = "x264"
_commit = "cde9a93319bea766a92e306d69059c76de970190"
pkgver = "20200702"
pkgrel = 0
pkgrel = 1
build_style = "gnu_configure"
configure_args = ["--enable-static", "--enable-shared"]
make_cmd = "gmake"
Expand Down

0 comments on commit bbcb23d

Please sign in to comment.