from lib import cpp from lib.make import * version("0.2") description("A set of tools to encode, inspect, and decode audio in the Opus format.") maintainer("sisungo ") source_managed("github://xiph/opus-tools#v0.2", "autotools") builddep("shortcut/c") builddep("shortcut/autotools") builddep("libopusfile-dev @target") builddep("libopusenc-dev @target") builddep("libogg-dev @target") builddep("libopus-dev @target") builddep("pkgconf @target") def build(): cpp.configure([ f"--prefix={get_prefix('opus-tools')}", "--enable-sse", "--without-flac", ]) cpp.make() cpp.make_install() on_build(build) package("opus-tools") dep("semi-libc @same-arch") dep("libopus @same-arch") dep("libopusenc @same-arch") dep("libopusfile @same-arch") dep("libogg @same-arch") cpp.use_auto_pack(["bin"])