| |
| |
| |
| |
| pkg_libxml2_install_make_post() { |
| if [ -e "${PREFIX}/bin/${PKG_TARGET}-xml2-config" ]; then |
| ex_rtl_fileop rm "${PREFIX}/bin/${PKG_TARGET}-xml2-config"; |
| fi; |
| cat > "${PREFIX}/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 "${PREFIX}/bin/${PKG_TARGET}-xml2-config"; |
| |
| }; |
| |
| |