Blame vars/libxml2.vars

Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
#
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
# . ./build.vars and set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
#
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
pkg_libxml2_install_post() {
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
	if [ -e ${PREFIX}/bin/${TARGET}-xml2-config ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
		build_fileop rm ${PREFIX}/bin/${TARGET}-xml2-config;
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
	cat > ${PREFIX}/bin/${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 (arab, vxp) df96a6
--cflags)	echo -I${PREFIX_NATIVE}/include/libxml2; ;;
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
--libs)		echo -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 (arab, vxp) df96a6
	chmod +x ${PREFIX}/bin/${TARGET}-xml2-config;
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
};
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
Lucio Andrés Illanes Albornoz (arab, vxp) df96a6
# vim:filetype=sh