36 lines
793 B
Python
36 lines
793 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("1.3.7")
|
|
description("Reference implementation of the Ogg Vorbis audio format.")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://downloads.xiph.org/releases/vorbis/libvorbis-1.3.7.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep("libogg-dev @target")
|
|
|
|
|
|
def build():
|
|
cpp.configure(
|
|
[
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libvorbis')}/lib",
|
|
f"--includedir={get_prefix('libvorbis-dev')}/include",
|
|
"--disable-oggtest",
|
|
]
|
|
)
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("libvorbis")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libvorbis-dev")
|
|
dep("libvorbis (same)")
|
|
cpp.use_auto_pack(["dev"])
|