Use termux_error_exit in more cases
[termux-packages] / packages / libmad / build.sh
CommitLineData
948212ba
DM
1TERMUX_PKG_HOMEPAGE=http://www.underbit.com/products/mad/
2TERMUX_PKG_DESCRIPTION="MAD is a high-quality MPEG audio decoder"
3TERMUX_PKG_VERSION=0.15.1b
af4dc416 4TERMUX_PKG_REVISION=1
948212ba
DM
5TERMUX_PKG_SRCURL=ftp://ftp.mars.org/pub/mpeg/libmad-${TERMUX_PKG_VERSION}.tar.gz
6
a282b3d3
FF
7termux_step_pre_configure() {
8 if [ $TERMUX_ARCH = arm ]; then
9 # See https://www.mars.org/pipermail/mad-dev/2013-July/001433.html
10 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-fpm=default"
11 fi
12}
13
948212ba
DM
14termux_post_configure() {
15 cd $TERMUX_PKG_SRCDIR
16 sed -i -e 's/-force-mem//g' Makefile
17}