Merge pull request 'feat: add package theora' (#35) from sisungo/ports:theora into main

Reviewed-on: http://gitea.semilabs.org/semios/ports/pulls/35
This commit was merged in pull request #35.
This commit is contained in:
sisungo committed 2026-11-04 04:43:58 +00:00
commit 591c01ac09
1 file changed
+39
+39
View File
@@ -0,0 +1,39 @@
from lib import cpp
from lib.make import *
version("1.2.0")
description("theora video codec reference implementation")
maintainer("sisungo <[email protected]>")
source_url("https://downloads.xiph.org/releases/theora/libtheora-1.2.0.tar.gz")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep("libogg-dev @target")
def build():
cpp.configure([
"--prefix=/",
f"--libdir={get_prefix('libtheora')}/lib",
f"--includedir={get_prefix('libtheora-dev')}/include",
"--disable-oggtest",
"--disable-vorbistest",
"--disable-examples",
])
cpp.make()
cpp.make_install()
on_build(build)
package("libtheora")
dep("semi-libc @same-arch")
dep("libogg @same-arch")
cpp.use_auto_pack(["lib"])
package("libtheora-dev")
dep("libtheora (same)")
dep("semi-libc-dev @same-arch")
dep("libogg-dev @same-arch")
cpp.use_auto_pack(["dev"])