Update package version to 4.0

This commit is contained in:
2026-09-04 15:56:49 +03:00
parent 1eeb2fe9d2
commit be5ffe0b43
4 changed files with 51 additions and 11 deletions
+10 -3
View File
@@ -1,14 +1,21 @@
name: lame
description: high quality MPEG Audio Layer III (MP3) encoder
version: "3.100"
revision: 2
version: "4.0"
revision: 1
url: http://lame.sourceforge.net/
license: LGPL
license: LGPL-2.0-only
maintainers:
- [email protected]
architecture: any
type: source
depends:
- glibc
- mpg123
- ncurses
make_depends:
- nasm
downloads:
- url: https://downloads.sourceforge.net/project/lame/lame/${BPM_PKG_VERSION}/lame-${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 3df5124d5ad3a98312ffd7ba6a9b36230e4f8a3e66d3ce0f425e336c32d216eb
+7 -8
View File
@@ -2,19 +2,19 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://downloads.sourceforge.net/lame/lame-${BPM_PKG_VERSION}.tar.gz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
# This function is used for putting downloaded files to the correct location or applying patches
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
cd "$BPM_SOURCE"
patch -Np1 -i "$BPM_WORKDIR"/lame-symbols.patch
patch -Np1 -i "$BPM_WORKDIR"/lame-cbr-abr-quality-settings-clamp.patch
autoreconf -fi -I /usr/share/gettext/m4
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
export CFLAGS="$CFLAGS -Wno-implicit-function-declaration -Wno-incompatible-pointer-types"
./configure --prefix=/usr --enable-mp3rtp --enable-nasm --disable-static
make
}
@@ -30,6 +30,5 @@ check() {
package() {
make DESTDIR="$BPM_OUTPUT" install
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/lame/LICENSE
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/lame/COPYING
install -Dm644 "$BPM_SOURCE"/{LICENSE,COPYING} -t "$BPM_OUTPUT"/usr/share/licenses/lame
}
@@ -0,0 +1,19 @@
Description: CBR: High quality settings (e.g, -q 0) degrade quality over -q 4
Origin: https://sourceforge.net/p/lame/bugs/516/#a26d
Forwarded: https://sourceforge.net/p/lame/bugs/516/
--- a/libmp3lame/lame.c
+++ b/libmp3lame/lame.c
@@ -1050,6 +1050,11 @@ lame_init_params(lame_global_flags * gfp
if (gfp->quality < 0)
gfp->quality = LAME_DEFAULT_QUALITY;
+ /* VBR and ABR don't give good results with noise shaping
+ * settings used in quality levels below 4.
+ */
+ if (gfp->quality < 4)
+ gfp->quality = 4;
if (cfg->vbr == vbr_off)
(void) lame_set_VBR_mean_bitrate_kbps(gfp, gfp->brate);
+15
View File
@@ -0,0 +1,15 @@
Description: Add missing symbol(s) to library symbol file
Author: Fabian Greffrath <[email protected]>
Forwarded: https://sourceforge.net/p/lame/bugs/515/
--- a/include/libmp3lame.sym
+++ b/include/libmp3lame.sym
@@ -193,6 +193,7 @@ hip_decode_headers
hip_decode1
hip_decode1_headers
hip_decode1_headersB
+hip_finish_pinfo
lame_decode_init
lame_decode
lame_decode_headers