ltris2: needs gettext on uClibc toolchains w/ locale
authorPeter Korsgaard <peter@korsgaard.com>
Sun, 12 Jan 2014 09:06:39 +0000 (10:06 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 12 Jan 2014 09:06:39 +0000 (10:06 +0100)
Fixes http://autobuild.buildroot.net/results/599/599554ea08aafed20c487a25fcbf641eb9ac2e5f/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ltris/Config.in
package/ltris/ltris.mk

index 1ce52daa430d8e0ca27e76c356c85696f221e4d3..b4e0ccf3082d00fcd50fd5e68fad3098a88903a4 100644 (file)
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_LTRIS
        bool "LTris"
        select BR2_PACKAGE_SDL
+       select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
        help
          LTris as a tetris clone, using SDL. It optionally requires
          SDL_mixer for audio support.  A display with minimum 640x480
index e26bf45ef931cd9a28715ca240a89c1cd585b036..008f0d78ed941bea16dad20acfa13308b646b9e3 100644 (file)
@@ -21,4 +21,9 @@ else
 LTRIS_CONF_OPT += --disable-audio
 endif
 
+ifeq ($(BR2_PACKAGE_GETTEXT),y)
+LTRIS_DEPENDENCIES += gettext
+LTRIS_CONF_ENV += LIBS=-lintl
+endif
+
 $(eval $(autotools-package))