enca: 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:44 +01:00
parent cb6268a1c6
commit 134912e2cc
2 changed files with 7 additions and 4 deletions

View File

@ -22,7 +22,10 @@
. config/options $1
export LDFLAGS="$LDFLAGS -liconv"
if [ "$ICONV" = "libiconv" ]; then
CONFIG_ENCA="--with-libiconv-prefix=$SYSROOT_PREFIX/usr"
export LDFLAGS="$LDFLAGS -liconv"
fi
cd $PKG_BUILD
ac_cv_file__dev_random=yes \
@ -39,7 +42,7 @@ CPPFLAGS="-I$SYSROOT_PREFIX/usr/include" \
--enable-shared \
--disable-static \
--disable-external \
--with-libiconv-prefix="$SYSROOT_PREFIX/usr" \
$CONFIG_ENCA \
--without-librecode \
--disable-rpath \
--with-gnu-ld

View File

@ -25,8 +25,8 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://freshmeat.net/projects/enca/"
PKG_URL="http://dl.cihar.com/enca/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS="libiconv"
PKG_BUILD_DEPENDS="toolchain libiconv"
PKG_DEPENDS="$ICONV"
PKG_BUILD_DEPENDS="toolchain $ICONV"
PKG_PRIORITY="optional"
PKG_SECTION="other"
PKG_SHORTDESC="enca: detects the encoding of text files, on the basis of knowledge of their language."