ndk_patches: add patches for sem and shm (#691)
[termux-packages] / packages / libmad / build.sh
1 TERMUX_PKG_HOMEPAGE=http://www.underbit.com/products/mad/
2 TERMUX_PKG_DESCRIPTION="MAD is a high-quality MPEG audio decoder"
3 TERMUX_PKG_VERSION=0.15.1b
4 TERMUX_PKG_REVISION=1
5 TERMUX_PKG_SRCURL=ftp://ftp.mars.org/pub/mpeg/libmad-${TERMUX_PKG_VERSION}.tar.gz
6
7 termux_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
14 termux_post_configure() {
15 cd $TERMUX_PKG_SRCDIR
16 sed -i -e 's/-force-mem//g' Makefile
17 }