summaryrefslogtreecommitdiffhomepage
path: root/vars/glib.vars
blob: 55d97500960fb40931c0c7bc993050d9c5c116d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# set +o errexit -o noglob is assumed.
#

: ${PKG_GLIB_CONFIG_CACHE_EXTRA:="
ac_cv_func_posix_getgrgid_r=yes
ac_cv_func_posix_getpwuid_r=yes
glib_cv_eventfd=no
glib_cv_stack_grows=yes
glib_cv_uscore=yes"};
: ${PKG_GLIB_HOST_CONFIG_CACHE_EXTRA:="${PKG_GLIB_CONFIG_CACHE_EXTRA}"};

pkg_glib_install_files_post() {
	local _pc_path="";
	for _pc_path in $(find "${PKG_DESTDIR}"/lib/pkgconfig -name \*.pc); do
		if ! sed -i"" -e '/^Libs:/s/^\(Libs:\s\+-L\${libdir}\)\s\+\(.\+\)$/\1 \2 -lffi -lpcre -lz/' "${_pc_path}"; then
			return 1;
		fi;
	done;
};

pkg_glib_host_install_files_post() {
	pkg_glib_install_files_post;
};

# vim:filetype=sh textwidth=0