42 lines
958 B
Python
42 lines
958 B
Python
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"])
|