lm_sensors: make build with libiconv optional

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-01-16 12:33:48 +01:00
parent 2780fb8af5
commit 9540ee847b
2 changed files with 7 additions and 3 deletions

View File

@ -22,10 +22,14 @@
. config/options $1
if [ "$ICONV" = "libiconv" ]; then
CONFIG_SENSORS="LIBICONV=-liconv"
fi
cd $PKG_BUILD
make PREFIX=/usr \
CC="$TARGET_CC" \
AR="$TARGET_AR" \
CFLAGS="$TARGET_CFLAGS" \
CPPFLAGS="$TARGET_CPPFLAGS" \
LIBICONV="-liconv" \
$CONFIG_SENSORS \

View File

@ -25,8 +25,8 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://secure.netroedge.com/~lm78/"
PKG_URL="http://dl.lm-sensors.org/lm-sensors/releases/$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="system"
PKG_SHORTDESC="lm_sensors: Hardware monitoring via the SMBus"