samba: 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:13 +01:00
parent 9540ee847b
commit 0dd519e0b8
2 changed files with 7 additions and 3 deletions

View File

@ -26,6 +26,10 @@
strip_lto
strip_gold
if [ "$ICONV" = "libiconv" ]; then
CONFIG_SAMBA="--with-libiconv=$SYSROOT_PREFIX/usr"
fi
if [ "$AVAHI_DAEMON" = yes ]; then
SMB_AVAHI="--enable-avahi"
else
@ -102,7 +106,7 @@ sh autogen.sh
--with-static-modules=charset_CP437,charset_CP850 \
--with-included-popt \
--with-included-iniparser \
--with-libiconv=$SYSROOT_PREFIX/usr \
$CONFIG_SAMBA \
--with-sqlite3 \
--with-pthreads \
--without-setproctitle \

View File

@ -25,8 +25,8 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.samba.org"
PKG_URL="http://samba.org/samba/ftp/stable/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="libiconv sqlite connman"
PKG_BUILD_DEPENDS="toolchain libiconv sqlite"
PKG_DEPENDS="$ICONV sqlite connman"
PKG_BUILD_DEPENDS="toolchain $ICONV sqlite"
PKG_PRIORITY="optional"
PKG_SECTION="network"
PKG_SHORTDESC="samba: The free SMB / CIFS fileserver and client"