Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame vars/libxml2.vars

Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
#
Lucio Andrés Illanes Albornoz e1d469
# set +o errexit -o noglob -o nounset is assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
#
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
pkg_libxml2_install_make_post() {
Lucio Andrés Illanes Albornoz bf9edf
	if [ -e "${PKG_DESTDIR}/bin/${PKG_TARGET}-xml2-config" ]\
Lucio Andrés Illanes Albornoz bf9edf
	&& ! rtl_fileop rm "${PKG_DESTDIR}/bin/${PKG_TARGET}-xml2-config"; then
Lucio Andrés Illanes Albornoz bf9edf
		return 1;
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
	fi;
Lucio Andrés Illanes Albornoz bf9edf
	if ! cat > "${PKG_DESTDIR}/bin/${PKG_TARGET}-xml2-config" <
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
#!/bin/sh
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
case "\${1}" in
Lucio Andrés Illanes Albornoz b6a9a1
--cflags)	printf "-I${PREFIX_NATIVE}/include/libxml2"; ;;
Lucio Andrés Illanes Albornoz b6a9a1
--libs)		printf "-L${PREFIX_NATIVE}/lib" -lxml2 -lz -llzma -lpthread -lm"; ;;
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
esac;
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
EOF
Lucio Andrés Illanes Albornoz bf9edf
	then
Lucio Andrés Illanes Albornoz bf9edf
		return 1;
Lucio Andrés Illanes Albornoz bf9edf
	else
Lucio Andrés Illanes Albornoz bf9edf
		rtl_fileop chmod +x "${PKG_DESTDIR}/bin/${PKG_TARGET}-xml2-config";
Lucio Andrés Illanes Albornoz bf9edf
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
};
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
Lucio Andrés Illanes Albornoz bf9edf
# vim:filetype=sh textwidth=0