1################################################################################ 2# 3# localedef 4# 5################################################################################ 6 7# Use the same VERSION and SITE as target glibc 8# As in glibc.mk, generate version string using: 9# git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2- 10LOCALEDEF_VERSION = 2.35-134-gb6aade18a7e5719c942aa2da6cf3157aca993fa4 11LOCALEDEF_SOURCE = glibc-$(LOCALEDEF_VERSION).tar.gz 12LOCALEDEF_SITE = $(call github,bminor,glibc,$(LOCALEDEF_VERSION)) 13HOST_LOCALEDEF_DL_SUBDIR = glibc 14 15HOST_LOCALEDEF_DEPENDENCIES = \ 16 $(BR2_MAKE_HOST_DEPENDENCY) \ 17 $(BR2_PYTHON3_HOST_DEPENDENCY) \ 18 host-bison \ 19 host-gawk 20 21HOST_LOCALEDEF_CONF_ENV += ac_cv_prog_MAKE="$(BR2_MAKE)" 22 23# Even though we use the autotools-package infrastructure, we have to override 24# the default configure commands for since we have to build out-of-tree, but we 25# can't use the same 'symbolic link to configure' used with the gcc packages. 26define HOST_LOCALEDEF_CONFIGURE_CMDS 27 mkdir -p $(@D)/build 28 # Do the configuration 29 (cd $(@D)/build; \ 30 $(HOST_LOCALEDEF_CONF_ENV) \ 31 $(HOST_CONFIGURE_OPTS) \ 32 $(SHELL) $(@D)/configure \ 33 libc_cv_forced_unwind=yes \ 34 libc_cv_ssp=no \ 35 --target=$(GNU_HOST_NAME) \ 36 --host=$(GNU_HOST_NAME) \ 37 --build=$(GNU_HOST_NAME) \ 38 --prefix=/usr \ 39 --with-pkgversion="Buildroot" \ 40 --without-cvs \ 41 --disable-profile \ 42 --without-gd \ 43 --enable-obsolete-rpc) 44endef 45 46define HOST_LOCALEDEF_BUILD_CMDS 47 $(HOST_MAKE_ENV) $(BR2_MAKE1) $(HOST_LOCALEDEF_MAKE_OPTS) \ 48 -C $(@D)/build locale/others 49endef 50 51# The makefile does not implement an install target for localedef 52define HOST_LOCALEDEF_INSTALL_CMDS 53 $(INSTALL) -D -m 0755 $(@D)/build/locale/localedef $(HOST_DIR)/bin/localedef 54endef 55 56$(eval $(host-autotools-package)) 57