Merge pull request 'feat: add package libopusenc, opus-tools, opusfile' (#50) from sisungo/ports:opus into main

Reviewed-on: #50
This commit is contained in:
sisungo committed 2026-10-14 19:41:25 +08:00
commit ba0c733dca
3 files changed
+119

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
from lib import cpp
from lib.make import *
upstream_version = "0.3"
version(upstream_version)
description("Library for encoding .opus audio files and live streams.")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/xiph/libopusenc/releases/download/v0.3/libopusenc-0.3.tar.gz")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep("libopus-dev @target")
builddep("pkgconf @target")
def build():
cpp.configure([
"--prefix=/",
f"--libdir={get_prefix('libopusenc')}/lib",
f"--includedir={get_prefix('libopusenc-dev')}/include",
])
cpp.make()
cpp.make_install()
on_build(build)
package("libopusenc")
dep("semi-libc @same-arch")
dep("libopus @same-arch")
cpp.use_auto_pack(["lib"])
package("libopusenc-dev")
dep("libopusenc (same)")
dep("semi-libc-dev @same-arch")
dep("libopus-dev @same-arch")
cpp.use_auto_pack(["dev"])
+37
View File
@@ -0,0 +1,37 @@
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 <[email protected]>")
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"])
+43
View File
@@ -0,0 +1,43 @@
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"])