grep: 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:55 +01:00
parent 134912e2cc
commit 5462d77d2b
2 changed files with 5 additions and 3 deletions

View File

@@ -22,7 +22,9 @@
. config/options $1
export LIBS="-liconv"
if [ "$ICONV" = "libiconv" ]; then
export LIBS="-liconv"
fi
cd $PKG_BUILD
./configure --host=$TARGET_NAME \

View File

@@ -25,8 +25,8 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.gnu.org/software/grep/"
PKG_URL="ftp://sunsite.cnlab-switch.ch/mirror/gnu/grep/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS="libiconv pcre"
PKG_BUILD_DEPENDS="toolchain libiconv pcre"
PKG_DEPENDS="$ICONV pcre"
PKG_BUILD_DEPENDS="toolchain $ICONV pcre"
PKG_PRIORITY="optional"
PKG_SECTION="system"
PKG_SHORTDESC="grep: This is GNU grep, the fastest grep in the west"