44 lines
1019 B
Python
44 lines
1019 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
|
|
upstream_version = "0.12"
|
|
|
|
version(upstream_version)
|
|
description("a totally open, royalty-free, highly versatile audio codec")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://github.com/xiph/opusfile/releases/download/v0.12/opusfile-0.12.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep("libogg-dev @target")
|
|
builddep("libopus-dev @target")
|
|
builddep("pkgconf @target")
|
|
|
|
|
|
def build():
|
|
cpp.configure([
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libopusfile')}/lib",
|
|
f"--includedir={get_prefix('libopusfile-dev')}/include",
|
|
"--disable-http",
|
|
])
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("libopusfile")
|
|
dep("semi-libc @same-arch")
|
|
dep("libopus @same-arch")
|
|
dep("libogg @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libopusfile-dev")
|
|
dep("libopusfile (same)")
|
|
dep("semi-libc-dev @same-arch")
|
|
dep("libopus-dev @same-arch")
|
|
dep("libogg-dev @same-arch")
|
|
cpp.use_auto_pack(["dev"])
|