blob: f925f2db5abf624d69a69d0f86d4873fe6643406 (
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_make_post() {
if [ -e "${PKG_DESTDIR}/bin/${PKG_TARGET}-xml2-config" ]; then
ex_rtl_fileop rm "${PKG_DESTDIR}/bin/${PKG_TARGET}-xml2-config";
fi;
cat > "${PKG_DESTDIR}/bin/${PKG_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 "${PKG_DESTDIR}/bin/${PKG_TARGET}-xml2-config";
};
# vim:filetype=sh
|