notmuch: Update from 0.26.1 to 0.26.2
[termux-packages] / disabled-packages / alsa-lib / build.sh
1 # patches taken from https://github.com/michaelwu/alsa-lib
2 TERMUX_PKG_HOMEPAGE=http://www.alsa-project.org
3 TERMUX_PKG_VERSION=1.1.3
4 # TERMUX_PKG_DEPENDS="libandroid-shmem, python2"
5 TERMUX_PKG_DEPENDS="libandroid-shmem"
6 TERMUX_PKG_SRCURL=ftp://ftp.alsa-project.org/pub/lib/alsa-lib-$TERMUX_PKG_VERSION.tar.bz2
7 TERMUX_PKG_SHA256=71282502184c592c1a008e256c22ed0ba5728ca65e05273ceb480c70f515969c
8 # TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-pythonlibs=\"-lpython2.7\" --with-pythonincludes=-I/$TERMUX_PREFIX/include/python2.7"
9 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-python"
10
11 termux_step_pre_configure () {
12 #LDFLAGS="$LDFLAGS -landroid-shmem"
13 #_files='src/pcm/pcm_dsnoop.c src/pcm/pcm_mmap.c src/pcm/pcm_shm.c src/pcm/pcm_dmix.c src/pcm/pcm_dshare.c src/pcm/pcm_direct.c src/shmarea.c src/control/control_shm.c aserver/aserver.c'
14 #for _file in $_files; do sed -i 's%#include <sys/shm.h>%#include <shmem/shm.h>%' "$TERMUX_PKG_SRCDIR/$_file"; done
15 #export ac_cv_header_sys_shm_h='no'
16 CPPFLAGS="$CPPFLAGS -DTERMUX_SHMEM_STUBS -DTERMUX_SEMOPS_STUBS"
17 }