feat: add package openh264 #29

Merged
sisungo merged 1 commits from sisungo/ports:openh264 into main 2026-11-04 04:44:14 +00:00
+34
View File
@@ -0,0 +1,34 @@
from lib.make import *
from lib import cpp
version("2.7.0")
description("a small build system with a focus on speed")
maintainer("sisungo <[email protected]>")
source_managed("github://cisco/openh264#v2.7.0")
builddep("shortcut/c++")
builddep("shortcut/meson")
def build():
cpp.meson_setup([
"--prefix=/",
"-Dtests=disabled",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("libopenh264")
dep("libcxxabi @same-arch")
dep("libunwind @same-arch")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libopenh264-dev")
dep("libopenh264 (same)")
dep("libcxx-dev @same-arch")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"])