summaryrefslogtreecommitdiffhomepage
path: root/vars/libxml2.vars
blob: 4d4f26968440a997c1b606e1f02c06bb3746d186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# set -o errexit -o noglob are assumed.
#

pkg_libxml2_install_post() {
	if [ -e ${PREFIX}/bin/${TARGET}-xml2-config ]; then
		build_fileop rm ${PREFIX}/bin/${TARGET}-xml2-config;
	fi;
	cat > ${PREFIX}/bin/${TARGET}-xml2-config <<EOF
#!/bin/sh
case "\${1}" in
--cflags)	echo -I${PREFIX_NATIVE}/include/libxml2; ;;
--libs)		echo -L${PREFIX_NATIVE}/lib -lxml2 -lz -llzma -lpthread -lm; ;;
esac;
EOF
	chmod +x ${PREFIX}/bin/${TARGET}-xml2-config;

};

# vim:filetype=sh