[Buildroot] [PATCH v2 05/13] package/minetest: add gettext optional dependency

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Jul 13 08:25:41 UTC 2017


Hello,

On Wed, 12 Jul 2017 18:43:01 +0200, Romain Naour wrote:

> > On Mon, 12 Jun 2017 22:54:02 +0200, Romain Naour wrote:
> >   
> >>  MINETEST_CONF_OPTS = \
> >>  	-DDEFAULT_RUN_IN_PLACE=OFF \
> >> -	-DENABLE_GETTEXT=OFF \
> >>  	-DENABLE_SOUND=OFF \
> >>  	-DENABLE_GLES=OFF \
> >>  	-DENABLE_FREETYPE=OFF \
> >> @@ -40,6 +39,13 @@ else
> >>  MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF
> >>  endif
> >>  
> >> +ifeq ($(BR2_PACKAGE_GETTEXT),y)
> >> +MINETEST_DEPENDENCIES += gettext
> >> +MINETEST_CONF_OPTS += -DENABLE_GETTEXT=ON
> >> +else
> >> +MINETEST_CONF_OPTS += -DENABLE_GETTEXT=OFF
> >> +endif  
> > 
> > What is this ENABLE_GETTEXT=ON/OFF option doing exactly?  
> 
> It allows using translations.
> 
> When enabled msgfmt tool is used to create *.mo files etc...
> 
> https://github.com/minetest/minetest/blob/master/README.txt#L180

Then simply do:

MINETEST_DEPENDENCIES += $(TARGET_NLS_DEPENDENCIES)

ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
 pass -DENABLE_GETTEXT=ON
else
 pass -DENABLE_GETTEXT=OFF
endif

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list