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

View File

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