blob: add0e462d887a0767c947a4e8c183a3f0a29a3fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#
# . ./build.vars and set -o errexit are assumed.
#
pkg_pkgconf_host_install_post() {
if [ -e ${PREFIX}/bin/${TARGET}-pkg-config ]; then
rm -f ${PREFIX}/bin/${TARGET}-pkg-config;
fi;
cat > ${PREFIX}/bin/${TARGET}-pkg-config <<EOF
#!/bin/sh
if [ -z "\${PREFIX_NATIVE}" ]; then
PREFIX_NATIVE=${PREFIX_NATIVE};
fi;
"\$(dirname "\${0}")"/pkgconf --define-variable=prefix=\${PREFIX_NATIVE%/}/ "\$@";
EOF
chmod +x ${PREFIX}/bin/${TARGET}-pkg-config;
};
# vim:filetype=sh
|