2016-03-26 23:31:26 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://www.underbit.com/products/mad/
|
|
|
|
TERMUX_PKG_DESCRIPTION="MAD is a high-quality MPEG audio decoder"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2016-03-26 23:31:26 +01:00
|
|
|
TERMUX_PKG_VERSION=0.15.1b
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2016-03-26 23:31:26 +01:00
|
|
|
TERMUX_PKG_SRCURL=ftp://ftp.mars.org/pub/mpeg/libmad-${TERMUX_PKG_VERSION}.tar.gz
|
2017-03-27 01:56:11 +02:00
|
|
|
TERMUX_PKG_SHA256=bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="libmad-dev"
|
|
|
|
TERMUX_PKG_REPLACES="libmad-dev"
|
2016-03-26 23:31:26 +01:00
|
|
|
|
2017-01-19 13:28:55 +01:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
if [ $TERMUX_ARCH = arm ]; then
|
|
|
|
# See https://www.mars.org/pipermail/mad-dev/2013-July/001433.html
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-fpm=default"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2016-03-26 23:31:26 +01:00
|
|
|
termux_post_configure() {
|
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
sed -i -e 's/-force-mem//g' Makefile
|
|
|
|
}
|