|  | 
 | include $(COMMON_BASE_MK) | 
 |  | 
 | NAME=glib | 
 | SRC_DIR=glib-2.44.1 | 
 | SRC_TAR=glib-2.44.1.tar.xz | 
 | INSTALL_DIR=$(LIB_DIR)/$(NAME)/install | 
 | BUILD_DIR=build | 
 | GEN_MAKEFILE=$(SRC_DIR)/Makefile | 
 |  | 
 | CONFIG_OPTS = --target=arm-buildroot-linux --host=arm-buildroot-linux --build=x86_64-unknown-linux-gnu | 
 | #CONFIG_OPTS += --exec-prefix=$(INSTALL_DIR)/usr | 
 | #CONFIG_OPTS += --sysconfdir=$(INSTALL_DIR)/etc | 
 | #CONFIG_OPTS += --localstatedir=/var | 
 | #CONFIG_OPTS += --program-prefix= | 
 | CONFIG_OPTS += --disable-gtk-doc | 
 | CONFIG_OPTS += --disable-gtk-doc-html | 
 | CONFIG_OPTS += --disable-doc | 
 | CONFIG_OPTS += --disable-docs | 
 | CONFIG_OPTS += --disable-documentation | 
 | CONFIG_OPTS += --with-xmlto=no | 
 | CONFIG_OPTS += --with-fop=no | 
 | CONFIG_OPTS += --disable-dependency-tracking | 
 | CONFIG_OPTS += --enable-ipv6 | 
 | CONFIG_OPTS += --disable-nls | 
 | CONFIG_OPTS += --enable-static | 
 | CONFIG_OPTS += --enable-shared | 
 | CONFIG_OPTS += --disable-modular-tests | 
 | ifeq ($(LIBC_TYPE),uClibc) | 
 | CONFIG_OPTS += --with-libiconv=gnu | 
 | endif | 
 | CONFIG_OPTS += --with-pcre=internal | 
 | CONFIG_OPTS += --disable-installed-tests | 
 | CONFIG_OPTS += --disable-always-build-tests | 
 | CONFIG_OPTS += --enable-tests=no | 
 |  | 
 | export ac_cv_func_posix_getpwuid_r=yes | 
 | export glib_cv_stack_grows=no | 
 | export glib_cv_uscore=no | 
 | export ac_cv_func_strtod=yes | 
 | export ac_fsusage_space=yes | 
 | export fu_cv_sys_stat_statfs2_bsize=yes | 
 | export ac_cv_func_closedir_void=no | 
 | export ac_cv_func_getloadavg=no | 
 | export ac_cv_lib_util_getloadavg=no | 
 | export ac_cv_lib_getloadavg_getloadavg=no | 
 | export ac_cv_func_getgroups=yes | 
 | export ac_cv_func_getgroups_works=yes | 
 | export ac_cv_func_chown_works=yes | 
 | export ac_cv_have_decl_euidaccess=no | 
 | export ac_cv_func_euidaccess=no | 
 | export ac_cv_have_decl_strnlen=yes | 
 | export ac_cv_func_strnlen_working=yes | 
 | export ac_cv_func_lstat_dereferences_slashed_symlink=yes | 
 | export ac_cv_func_lstat_empty_string_bug=no | 
 | export ac_cv_func_stat_empty_string_bug=no | 
 | export vb_cv_func_rename_trailing_slash_bug=no | 
 | export ac_cv_have_decl_nanosleep=yes | 
 | export jm_cv_func_nanosleep_works=yes | 
 | export gl_cv_func_working_utimes=yes | 
 | export ac_cv_func_utime_null=yes | 
 | export ac_cv_have_decl_strerror_r=yes | 
 | export ac_cv_func_strerror_r_char_p=no | 
 | export jm_cv_func_svid_putenv=yes | 
 | export ac_cv_func_getcwd_null=yes | 
 | export ac_cv_func_getdelim=yes | 
 | export ac_cv_func_mkstemp=yes | 
 | export utils_cv_func_mkstemp_limitations=no | 
 | export utils_cv_func_mkdir_trailing_slash_bug=no | 
 | export jm_cv_func_gettimeofday_clobber=no | 
 | export gl_cv_func_working_readdir=yes | 
 | export jm_ac_cv_func_link_follows_symlink=no | 
 | export utils_cv_localtime_cache=no | 
 | export ac_cv_struct_st_mtim_nsec=no | 
 | export gl_cv_func_tzset_clobber=no | 
 | export gl_cv_func_getcwd_null=yes | 
 | export gl_cv_func_getcwd_path_max=yes | 
 | export ac_cv_func_fnmatch_gnu=yes | 
 | export am_getline_needs_run_time_check=no | 
 | export am_cv_func_working_getline=yes | 
 | export gl_cv_func_mkdir_trailing_slash_bug=no | 
 | export gl_cv_func_mkstemp_limitations=no | 
 | export ac_cv_func_working_mktime=yes | 
 | export jm_cv_func_working_re_compile_pattern=yes | 
 | export ac_use_included_regex=no | 
 | export gl_cv_c_restrict=no | 
 | export ac_cv_path_GLIB_GENMARSHAL=$(INSTALL_DIR)/usr/bin/glib-genmarshal | 
 | export ac_cv_prog_F77=no | 
 | export ac_cv_func_posix_getgrgid_r=no | 
 | export glib_cv_long_long_format=ll | 
 | export ac_cv_func_printf_unix98=yes | 
 | export ac_cv_func_vsnprintf_c99=yes | 
 | export ac_cv_func_newlocale=no | 
 | export ac_cv_func_uselocale=no | 
 | export ac_cv_func_strtod_l=no | 
 | export ac_cv_func_strtoll_l=no | 
 | export ac_cv_func_strtoull_l=no | 
 | export gt_cv_c_wchar_t=no | 
 |  | 
 | export CFLAGS :=  | 
 | export LIBFFI_LIBS = -lffi | 
 | export LDFLAGS :=  | 
 | ifeq ($(LIBC_TYPE),uClibc) | 
 | export LIBS := -liconv | 
 | endif | 
 | export PKG_CONFIG_PATH=$(CROSS_COMPILE_SYSROOT)/usr/lib/pkgconfig | 
 |  | 
 | all: $(GEN_MAKEFILE) | 
 | 	make -C $(SRC_DIR) all | 
 | 	make -C $(SRC_DIR) install | 
 |  | 
 | $(GEN_MAKEFILE): | 
 | 	echo $(CROSS_COMPILE_SYSROOT) | 
 | 	echo $(PKG_CONFIG_PATH) | 
 | 	mkdir -p $(BUILD_DIR) | 
 | 	sha256sum -c $(NAME).sig | 
 | 	tar xf $(TOPDIR_AP)/downloads/$(SRC_TAR) | 
 | 	cd $(SRC_DIR); ./configure --prefix=$(INSTALL_DIR) $(CONFIG_OPTS) | 
 | 	cd $(SRC_DIR); sed -i 's/po docs tests/po/g' Makefile | 
 |  | 
 | clean: | 
 | 	-make -C $(SRC_DIR) distclean | 
 | 	-rm -fr $(BUILD_DIR) $(INSTALL_DIR) $(SRC_DIR) | 
 |  | 
 | romfs: | 
 | 	cd $(INSTALL_DIR)/lib; \ | 
 | 	for i in *.so*; do \ | 
 | 		if [ -L $$i ]; then \ | 
 | 			$(ROMFSINST) -s `find $$i -printf %l` /lib/$$i; \ | 
 | 		elif [ -f $$i ]; then \ | 
 | 			$(ROMFSINST) /lib/$$i; \ | 
 | 		fi; \ | 
 | 	done | 
 |  | 
 | populate_sdk: | 
 | 	cp -afvp $(INSTALL_DIR)/include/*  $(CROSS_COMPILE_SYSROOT)/usr/include/ | 
 | 	cp -afvp $(INSTALL_DIR)/lib/*  $(CROSS_COMPILE_SYSROOT)/usr/lib/ | 
 | 	cp -afvp $(INSTALL_DIR)/bin/*  $(CROSS_COMPILE_SYSROOT)/usr/bin/ |