flac: make build with libiconv optional

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-01-16 12:34:32 +01:00
parent 0dd519e0b8
commit cb6268a1c6
2 changed files with 7 additions and 3 deletions

View File

@ -22,6 +22,10 @@
. config/options $1
if [ "$ICONV" = "libiconv" ]; then
CONFIG_FLAC="--with-libiconv-prefix=$SYSROOT_PREFIX/usr"
fi
cd $PKG_BUILD
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
@ -36,7 +40,7 @@ cd $PKG_BUILD
--disable-xmms-plugin \
--disable-oggtest \
--with-ogg="$SYSROOT_PREFIX/usr" \
--with-libiconv-prefix="$SYSROOT_PREFIX/usr" \
$CONFIG_FLAC \
--with-gnu-ld
make

View File

@ -25,8 +25,8 @@ PKG_ARCH="any"
PKG_LICENSE="LGPL"
PKG_SITE="http://flac.sourceforge.net/"
PKG_URL="http://downloads.xiph.org/releases/flac/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="libiconv libogg"
PKG_BUILD_DEPENDS="toolchain libiconv libogg"
PKG_DEPENDS="$ICONV libogg"
PKG_BUILD_DEPENDS="toolchain $ICONV libogg"
PKG_PRIORITY="optional"
PKG_SECTION="audio"
PKG_SHORTDESC="flac: An Free Lossless Audio Codec"