diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-07-11 19:51:45 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-07-11 19:51:45 +0000 |
commit | a163e52b0a679ab954700f82f542280ae7556dad (patch) | |
tree | f022d22f1546aa3525b48c996a17f8cbe27bfcbf /010.pkgconf_host.vars | |
parent | 49b310339d45f9e4a109d80254006c05069b1563 (diff) | |
download | midipix_build-a163e52b0a679ab954700f82f542280ae7556dad.tar.bz2 midipix_build-a163e52b0a679ab954700f82f542280ae7556dad.tar.xz |
Build perk{,_host} w/ pkg.build.
Diffstat (limited to '010.pkgconf_host.vars')
-rw-r--r-- | 010.pkgconf_host.vars | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/010.pkgconf_host.vars b/010.pkgconf_host.vars new file mode 100644 index 00000000..3443633b --- /dev/null +++ b/010.pkgconf_host.vars @@ -0,0 +1,19 @@ +# +# . ./build.vars and set -o errexit -o noglob are assumed. +# + +pkg_pkgconf_host_install_post() { + if [ -e ${PREFIX}/bin/${TARGET}-pkg-config ]; then + rm -f -- ${PREFIX}/bin/${TARGET}-pkg-config; + fi; + cat > ${PREFIX}/bin/${TARGET}-pkg-config <<EOF +#!/bin/sh +if [ -z "\${PREFIX_NATIVE}" ]; then + PREFIX_NATIVE=${PREFIX_NATIVE}; +fi; +"\$(dirname "\${0}")"/pkgconf --define-variable=prefix=\${PREFIX_NATIVE%/}/ "\$@"; +EOF + chmod +x ${PREFIX}/bin/${TARGET}-pkg-config; +}; + +# vim:filetype=sh |