ushare: needs libintl if NLS is enabled
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 3 May 2012 03:25:37 +0000 (03:25 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 3 May 2012 20:02:18 +0000 (22:02 +0200)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/ushare/Config.in
package/ushare/ushare.mk

index a714fa06a63decfd13ff9ac235ba11c6a2f3cc76..acf025fa5bf2a5e462da4bc8f6497bf7c7da654d 100644 (file)
@@ -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
index ac8cbc356ad660206ce9a2c5ed8e0f33fa5a4fbb..5421d8acde215aab45d0d565befeba14e529e0ac 100644 (file)
@@ -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