Files
2026-11-04 01:08:19 +00:00

40 lines
880 B
Python

from lib.make import *
from lib import cpp
version("2.3.2")
description("An open-source HEVC encoder")
maintainer("sisungo <[email protected]>")
source_managed("github://ultravideo/kvazaar#v2.3.2")
builddep("shortcut/c")
builddep("shortcut/cmake")
def build():
cpp.cmake([
"-DUSE_RANGE_EXTENSION=ON",
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libkvazaar')}/lib",
f"-DCMAKE_INSTALL_BINDIR={get_prefix('kvazaar')}/bin",
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libkvazaar-dev')}/include",
])
cpp.ninja()
cpp.ninja_install()
on_build(build)
package("libkvazaar")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("kvazaar")
dep("libkvazaar (same)")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["bin"])
package("libkvazaar-dev")
dep("libkvazaar (same)")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"])