|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3243be |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
802215 |
# set -o errexit -o noglob are assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3243be |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3243be |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
pkg_pkgconf_host_install_make_post() {
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
if [ -e "${PREFIX}/bin/${PKG_TARGET}-pkg-config" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
ex_rtl_fileop rm "${PREFIX}/bin/${PKG_TARGET}-pkg-config";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3243be |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
cat > "${PREFIX}/bin/${PKG_TARGET}-pkg-config" <
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3243be |
#!/bin/sh
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3243be |
if [ -z "\${PREFIX_NATIVE}" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
05e618 |
PREFIX_NATIVE="${PREFIX_NATIVE}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3243be |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
05e618 |
"\$(dirname "\${0}")"/pkgconf --define-variable=prefix="\${PREFIX_NATIVE%/}/" "\${@}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3243be |
EOF
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
chmod +x "${PREFIX}/bin/${PKG_TARGET}-pkg-config";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
ex_rtl_fileop rm "${PREFIX}/bin/pkg-config";
|
|
Lucio Andrés Illanes Albornoz |
18624a |
};
|
|
Lucio Andrés Illanes Albornoz |
18624a |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
pkg_pkgconf_install_make_post() {
|
|
Lucio Andrés Illanes Albornoz |
18624a |
if [ -e "${PREFIX_NATIVE}/bin/pkg-config" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
ex_rtl_fileop rm "${PREFIX_NATIVE}/bin/pkg-config";
|
|
Lucio Andrés Illanes Albornoz |
18624a |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
ex_rtl_fileop ln_symbolic pkgconf "${PREFIX_NATIVE}/bin/pkg-config";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3243be |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3243be |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
3243be |
# vim:filetype=sh
|