forked from semios/ports
feat: add few multimedia format libraries
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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"])
|
||||
Reference in New Issue
Block a user