e8b3b5 vars/glib{,_host}.vars: force -l{ffi,pcre,z} into pkg-config(1) files.

Authored and Committed by Lucio Andrés Illanes Albornoz (arab, vxp) 7 years ago
    vars/glib{,_host}.vars: force -l{ffi,pcre,z} into pkg-config(1) files.
    subr/pkg_install_pkgconfig.subr: explicitly pass -i"" to sed(1).
    
        
subr/pkg_install_pkgconfig.subr CHANGED
@@ -6,7 +6,7 @@ pkg_install_pkgconfig() {
6
6
local _pc_path;
7
7
for _pc_path in $(find "${PKG_DESTDIR}" -name \*.pc); do
8
8
if grep -Eq '^libdir=[^$]+$' "${_pc_path}"; then
9
- sed -i -e '/^libdir=[^$]\+$/s/^libdir=\(.\+\)$/libdir=${exec_prefix}\1/' \
9
+ sed -i"" -e '/^libdir=[^$]\+$/s/^libdir=\(.\+\)$/libdir=${exec_prefix}\1/' \
10
10
-e '/^exec_prefix=$/s/^.*$/exec_prefix=${prefix}/' \
11
11
"${_pc_path}";
12
12
fi;
file added
+17
vars/glib.vars ADDED
@@ -0,0 +1,17 @@
1
+ #
2
+ # set -o errexit -o noglob are assumed.
3
+ #
4
+
5
+ pkg_glib_install_pkgconfig_post() {
6
+ local _pc_path;
7
+ for _pc_path in $(find "${PKG_DESTDIR}"/lib/pkgconfig -name \*.pc); do
8
+ sed -i"" -e '/^Libs:\s/s/-L\${libdir}/& -lffi -lpcre -lz/' \
9
+ "${_pc_path}";
10
+ done;
11
+ };
12
+
13
+ pkg_glib_host_install_pkgconfig_post() {
14
+ pkg_glib_install_pkgconfig_post;
15
+ };
16
+
17
+ # vim:filetype=sh
file added
+1
vars/glib_host.vars ADDED
@@ -0,0 +1 @@
1
+ glib.vars