forked from semios/ports
feat: add few multimedia format libraries
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("1.3.6")
|
||||
description("Ogg container format libraries")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://downloads.xiph.org/releases/ogg/libogg-1.3.6.tar.xz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure(
|
||||
[
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libogg')}/lib",
|
||||
f"--includedir={get_prefix('libogg-dev')}/include",
|
||||
]
|
||||
)
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
package("libogg")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libogg-dev")
|
||||
dep("libogg (same)")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
Reference in New Issue
Block a user