From: Gustavo Zacarias Date: Thu, 3 May 2012 03:25:37 +0000 (+0000) Subject: ushare: needs libintl if NLS is enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7df3db6c90e4d82dada0daf27ac91262e6702dc3;p=buildroot.git ushare: needs libintl if NLS is enabled Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- diff --git a/package/ushare/Config.in b/package/ushare/Config.in index a714fa06a6..acf025fa5b 100644 --- a/package/ushare/Config.in +++ b/package/ushare/Config.in @@ -2,6 +2,8 @@ config BR2_PACKAGE_USHARE bool "ushare" depends on BR2_LARGEFILE select BR2_PACKAGE_LIBUPNP + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE + select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE help uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server component that provides UPnP media devices diff --git a/package/ushare/ushare.mk b/package/ushare/ushare.mk index ac8cbc356a..5421d8acde 100644 --- a/package/ushare/ushare.mk +++ b/package/ushare/ushare.mk @@ -9,6 +9,11 @@ USHARE_SOURCE = ushare-$(USHARE_VERSION).tar.bz2 USHARE_SITE = http://ushare.geexbox.org/releases USHARE_DEPENDENCIES = host-pkg-config libupnp +ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) +USHARE_DEPENDENCIES += gettext libintl +USHARE_LDFLAGS += -lintl +endif + define USHARE_CONFIGURE_CMDS (cd $(@D); \ $(TARGET_CONFIGURE_OPTS) \ @@ -19,7 +24,7 @@ define USHARE_CONFIGURE_CMDS endef define USHARE_BUILD_CMDS - $(MAKE) -C $(@D) + $(MAKE) LDFLAGS="$(TARGET_LDFLAGS) $(USHARE_LDFLAGS)" -C $(@D) endef define USHARE_INSTALL_TARGET_CMDS