Files
Arch-R/packages/audio/alsa-lib/build
Stephan Raue 9d44447d19 alsa-lib: add autoreconf support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2010-11-25 18:09:55 +01:00

30 lines
811 B
Bash
Executable File

#!/bin/sh
. config/options $1
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=32 -fPIC -DPIC"
cd $PKG_BUILD
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--with-plugindir=/usr/lib/alsa \
--localstatedir=/var \
--disable-static \
--enable-shared \
--disable-python \
--disable-dependency-tracking \
--with-versioned=no \
sed -i 's/.*PKGLIBDIR.*/#define PKGLIBDIR ""/' include/config.h
$MAKE
$MAKE -C include DESTDIR=$SYSROOT_PREFIX install-data
$MAKE -C src DESTDIR=$SYSROOT_PREFIX install-exec
$MAKE -C utils DESTDIR=$SYSROOT_PREFIX install-pkgconfigDATA
mkdir -p $SYSROOT_PREFIX/usr/share/aclocal
cp utils/alsa.m4 $SYSROOT_PREFIX/usr/share/aclocal