diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2017-02-04 19:04:59 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2017-02-04 19:09:06 +0100 |
commit | df96a62218852ea06853d8782a9434f6e0b84d14 (patch) | |
tree | 329d5e9e4f646457784a5cbca95a1162f767bf5c /vars/libxml2.vars | |
parent | 60881150977e7681278898aceb1df8fcab1ecdc2 (diff) | |
download | midipix_build-df96a62218852ea06853d8782a9434f6e0b84d14.tar.bz2 midipix_build-df96a62218852ea06853d8782a9434f6e0b84d14.tar.xz |
vars/build.vars: adds libxml2 v2.9.4, fixing the bind v9.11.0-P2 build.
patches/bind-9.11.0-P2.local.patch: call $use_libxml2 instead of $use_libxml2/bin/xml2-config.
vars/libxml2.vars: install ${PKG_TARGET}-xml2-config.
Diffstat (limited to 'vars/libxml2.vars')
-rw-r--r-- | vars/libxml2.vars | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vars/libxml2.vars b/vars/libxml2.vars new file mode 100644 index 00000000..f3264801 --- /dev/null +++ b/vars/libxml2.vars @@ -0,0 +1,20 @@ +# +# . ./build.vars and 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 |