Update package version to 4.0
This commit is contained in:
@@ -1,14 +1,21 @@
|
|||||||
name: lame
|
name: lame
|
||||||
description: high quality MPEG Audio Layer III (MP3) encoder
|
description: high quality MPEG Audio Layer III (MP3) encoder
|
||||||
version: "3.100"
|
version: "4.0"
|
||||||
revision: 2
|
revision: 1
|
||||||
url: http://lame.sourceforge.net/
|
url: http://lame.sourceforge.net/
|
||||||
license: LGPL
|
license: LGPL-2.0-only
|
||||||
maintainers:
|
maintainers:
|
||||||
- [email protected]
|
- [email protected]
|
||||||
architecture: any
|
architecture: any
|
||||||
type: source
|
type: source
|
||||||
depends:
|
depends:
|
||||||
|
- glibc
|
||||||
|
- mpg123
|
||||||
- ncurses
|
- ncurses
|
||||||
make_depends:
|
make_depends:
|
||||||
- nasm
|
- 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
|
||||||
|
|||||||
@@ -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 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
|
# 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
|
# 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() {
|
prepare() {
|
||||||
wget "$DOWNLOAD"
|
cd "$BPM_SOURCE"
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$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
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
|
export CFLAGS="$CFLAGS -Wno-implicit-function-declaration -Wno-incompatible-pointer-types"
|
||||||
./configure --prefix=/usr --enable-mp3rtp --enable-nasm --disable-static
|
./configure --prefix=/usr --enable-mp3rtp --enable-nasm --disable-static
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
@@ -30,6 +30,5 @@ check() {
|
|||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/lame/LICENSE
|
install -Dm644 "$BPM_SOURCE"/{LICENSE,COPYING} -t "$BPM_OUTPUT"/usr/share/licenses/lame
|
||||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/lame/COPYING
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user