Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame vars/pkgconf_host.vars

Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
#
Lucio Andrés Illanes Albornoz e1d469
# set +o errexit -o noglob -o nounset is 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) ddadbd
	if [ -e "${PKG_DESTDIR}/bin/${PKG_TARGET}-pkg-config" ]; then
Lucio Andrés Illanes Albornoz bf9edf
		if ! rtl_fileop rm "${PKG_DESTDIR}/bin/${PKG_TARGET}-pkg-config"; then
Lucio Andrés Illanes Albornoz bf9edf
			return 1;
Lucio Andrés Illanes Albornoz bf9edf
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
	fi;
Lucio Andrés Illanes Albornoz bf9edf
	if ! cat > "${PKG_DESTDIR}/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 6a7fc7
if [ "\${#}" -eq 1 ]\
Lucio Andrés Illanes Albornoz 6a7fc7
&& [ "x\${1}" = "x--version" ]; then
Lucio Andrés Illanes Albornoz 6a7fc7
	"\$(dirname "\${0}")"/pkgconf --version;
Lucio Andrés Illanes Albornoz 2bc84a
else
Lucio Andrés Illanes Albornoz 6a7fc7
	"\$(dirname "\${0}")"/pkgconf --define-variable=prefix="\${PREFIX_NATIVE%/}/" --keep-system-cflags "\${@}";
Lucio Andrés Illanes Albornoz 6a7fc7
fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
EOF
Lucio Andrés Illanes Albornoz bf9edf
	then
Lucio Andrés Illanes Albornoz bf9edf
		return 1;
Lucio Andrés Illanes Albornoz bf9edf
	elif ! rtl_fileop chmod +x "${PKG_DESTDIR}/bin/${PKG_TARGET}-pkg-config"\
Lucio Andrés Illanes Albornoz bf9edf
	||   ! rtl_fileop rm "${PKG_DESTDIR}/bin/pkg-config"; then
Lucio Andrés Illanes Albornoz bf9edf
		return 1;
Lucio Andrés Illanes Albornoz bf9edf
	fi;
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 bf9edf
		if ! rtl_fileop rm "${PREFIX_NATIVE}/bin/pkg-config"; then
Lucio Andrés Illanes Albornoz bf9edf
			return 1;
Lucio Andrés Illanes Albornoz bf9edf
		fi;
Lucio Andrés Illanes Albornoz 18624a
	fi;
Lucio Andrés Illanes Albornoz c6d6e0
	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 bf9edf
# vim:filetype=sh textwidth=0