Skip to contentSkip to conversation

ushare: needs libintl if NLS is enabled

PATCH New Gustavo Zacarias 2 participants 2 messages May 3, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ushare: needs libintl if NLS is enabled

---
 package/ushare/Config.in |    2 ++
 package/ushare/ushare.mk |    7 ++++++-
 2 files changed, 8 insertions(+), 1 deletions(-)
package/ushare/Config.in +2 -0
index a714fa0..acf025f 100644
@@ -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
package/ushare/ushare.mk +6 -1
index ac8cbc3..5421d8a 100644
@@ -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
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 ushare: needs libintl if NLS is enabled

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard