gmpc: use the new gettext logic
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 3 Jul 2017 20:47:03 +0000 (22:47 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 4 Jul 2017 23:27:26 +0000 (01:27 +0200)
This commit switches to use the new gettext logic, which involves:

 - using TARGET_NLS_DEPENDENCIES instead of hand-encoded dependencies
   on gettext/host-gettext

 - dropping BR2_PACKAGE_GETTEXT selection

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gmpc/Config.in
package/gmpc/gmpc.mk

index 43bc642d74c0974bf4a48f8152adbcce22a2112c..1aa74251f0327b578bbf3c276c51927328687c0b 100644 (file)
@@ -6,7 +6,6 @@ config BR2_PACKAGE_GMPC
        depends on BR2_USE_MMU # glib2
        depends on BR2_PACKAGE_XORG7
        select BR2_PACKAGE_LIBGLIB2
-       select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
        select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
        select BR2_PACKAGE_LIBMPD
        select BR2_PACKAGE_LIBSOUP
index 7ba86a7cb16749f69a914b9466e3875ff7a9bd51..40b77eb1893be5dc5c4583d6d72afe24d2bcf827 100644 (file)
@@ -13,6 +13,6 @@ GMPC_LICENSE_FILES = COPYING
 GMPC_DEPENDENCIES = host-gob2 host-intltool host-pkgconf host-vala \
        libglib2 libgtk2 libmpd libsoup sqlite \
        xlib_libICE xlib_libSM xlib_libX11 \
-       $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
+       $(TARGET_NLS_DEPENDENCIES)
 
 $(eval $(autotools-package))