35 lines
701 B
Python
35 lines
701 B
Python
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"])
|