Ver Fonte

ltris2: needs gettext on uClibc toolchains w/ locale

Fixes http://autobuild.buildroot.net/results/599/599554ea08aafed20c487a25fcbf641eb9ac2e5f/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Peter Korsgaard há 11 anos atrás
pai
commit
454a41016f
2 ficheiros alterados com 6 adições e 0 exclusões
  1. 1 0
      package/ltris/Config.in
  2. 5 0
      package/ltris/ltris.mk

+ 1 - 0
package/ltris/Config.in

@@ -1,6 +1,7 @@
 config BR2_PACKAGE_LTRIS
 config BR2_PACKAGE_LTRIS
 	bool "LTris"
 	bool "LTris"
 	select BR2_PACKAGE_SDL
 	select BR2_PACKAGE_SDL
+	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
 	help
 	help
 	  LTris as a tetris clone, using SDL. It optionally requires
 	  LTris as a tetris clone, using SDL. It optionally requires
 	  SDL_mixer for audio support.  A display with minimum 640x480
 	  SDL_mixer for audio support.  A display with minimum 640x480

+ 5 - 0
package/ltris/ltris.mk

@@ -21,4 +21,9 @@ else
 LTRIS_CONF_OPT += --disable-audio
 LTRIS_CONF_OPT += --disable-audio
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_GETTEXT),y)
+LTRIS_DEPENDENCIES += gettext
+LTRIS_CONF_ENV += LIBS=-lintl
+endif
+
 $(eval $(autotools-package))
 $(eval $(autotools-package))