Merge pull request 'feat: add package lame' (#72) from sisungo/ports:lame into main
Reviewed-on: #72
This commit is contained in:
commit
07a5703b91
1 file changed
+41
@@ -0,0 +1,41 @@
|
||||
import glob
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("4.0.0")
|
||||
description("LAME is a high quality MPEG Audio Layer III (MP3) encoder licensed under the LGPL.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://sourceforge.net/projects/lame/files/lame/4.0/lame-4.0.tar.gz/download")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("pkgconf @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libmp3lame')}/lib",
|
||||
#f"--bindir={get_prefix('lame')}/bin",
|
||||
f"--includedir={get_prefix('libmp3lame-dev')}/include",
|
||||
"--disable-cpml",
|
||||
"--disable-decoder",
|
||||
"--disable-frontend",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libmp3lame")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libmp3lame-dev")
|
||||
dep("libmp3lame (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
Reference in new issue
Block a user