summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 20:22:55 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 20:22:55 -0500
commit683c378cf25df2bc94a214728fead22391b8c5f6 (patch)
tree77121a745ab8e693cc3ec7cdc1077bb9fc291be4
parentdeb3aaa86c27b92e36d07ef1180618bcf4b045f9 (diff)
downloadpackages-683c378cf25df2bc94a214728fead22391b8c5f6.tar.gz
packages-683c378cf25df2bc94a214728fead22391b8c5f6.tar.bz2
packages-683c378cf25df2bc94a214728fead22391b8c5f6.tar.xz
packages-683c378cf25df2bc94a214728fead22391b8c5f6.zip
user/lame: pull in, modernise, fix up
-rw-r--r--user/lame/APKBUILD68
1 files changed, 68 insertions, 0 deletions
diff --git a/user/lame/APKBUILD b/user/lame/APKBUILD
new file mode 100644
index 000000000..71f48fae4
--- /dev/null
+++ b/user/lame/APKBUILD
@@ -0,0 +1,68 @@
+# Maintainer:
+pkgname=lame
+pkgver=3.100
+pkgrel=0
+pkgdesc="MP3 encoder and graphical frame analyzer"
+url="http://lame.sourceforge.net/"
+arch="all"
+license="LGPL-2.0+"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="ncurses-dev autoconf automake libtool"
+([ $CBUILD_ARCH != "pmmx" ] && [ $CBUILD_ARCH != "x86_64" ]) || makedepends="$makedepends nasm"
+source="https://downloads.sourceforge.net/project/lame/lame/$pkgver/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir"/$pkgname-$pkgver
+
+# secfixes:ss
+# 3.100-r0:
+# - CVE-2017-9410
+# - CVE-2017-9411
+# - CVE-2017-9412
+# - CVE-2015-9099
+# 3.99.5-r6:
+# - CVE-2015-9099
+# - CVE-2015-9100
+# - CVE-2017-9410
+# - CVE-2017-9411
+# - CVE-2017-9412
+# - CVE-2017-11720
+
+prepare() {
+ cd "$builddir"
+
+ default_prepare
+
+ # fix for parallel builds
+ mkdir -p libmp3lame/i386/.libs
+
+ # fix for pic build with new nasm
+ sed -i -e '/define sp/s/+/ + /g' libmp3lame/i386/nasm.h
+
+ aclocal && automake --force --add-missing
+}
+
+build() {
+ cd "$builddir"
+ LIBS="-ltinfo" ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --enable-nasm \
+ --disable-mp3x \
+ --enable-shared \
+ --with-pic
+
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="0844b9eadb4aacf8000444621451277de365041cc1d97b7f7a589da0b7a23899310afd4e4d81114b9912aa97832621d20588034715573d417b2923948c08634b lame-3.100.tar.gz"