Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame 010.pkgconf_host.vars

Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
#
Lucio Andrés Illanes Albornoz (arab, vxp) 820be1
# . ./build.vars and 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) 3243be
pkg_pkgconf_host_install_post() {
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
	if [ -e ${PREFIX}/bin/${TARGET}-pkg-config ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 820be1
		rm -f -- ${PREFIX}/bin/${TARGET}-pkg-config;
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
	cat > ${PREFIX}/bin/${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) 3243be
	PREFIX_NATIVE=${PREFIX_NATIVE};
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 5cdeba
"\$(dirname "\${0}")"/pkgconf --define-variable=prefix=\${PREFIX_NATIVE%/}/ "\$@";
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
EOF
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
	chmod +x ${PREFIX}/bin/${TARGET}-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