diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2017-10-07 23:17:19 +0200 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2017-10-07 23:18:50 +0200 |
commit | 18624a8169621d2b27b18e39029046850a876cf7 (patch) | |
tree | 26dd6f2f7c2129b693ea282b95e9e4ba39fedebc | |
parent | b8489894f1aa254b9f0f27656d7aee9b073124d4 (diff) | |
download | midipix_build-18624a8169621d2b27b18e39029046850a876cf7.tar.bz2 midipix_build-18624a8169621d2b27b18e39029046850a876cf7.tar.xz |
vars/pkgconf{,_host}.vars: provide pkg-config -> pkgconf symlinks in ${PREFIX{,_NATIVE}} (via Redfoxmoon.)
l--------- | vars/pkgconf.vars | 1 | ||||
-rw-r--r-- | vars/pkgconf_host.vars | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/vars/pkgconf.vars b/vars/pkgconf.vars new file mode 120000 index 00000000..d727fef5 --- /dev/null +++ b/vars/pkgconf.vars @@ -0,0 +1 @@ +pkgconf_host.vars
\ No newline at end of file diff --git a/vars/pkgconf_host.vars b/vars/pkgconf_host.vars index 7dc06309..cced793f 100644 --- a/vars/pkgconf_host.vars +++ b/vars/pkgconf_host.vars @@ -14,6 +14,17 @@ fi; "\$(dirname "\${0}")"/pkgconf --define-variable=prefix="\${PREFIX_NATIVE%/}/" "\${@}"; EOF chmod +x "${PREFIX}/bin/${TARGET}-pkg-config"; + if [ -e "${PREFIX}/bin/pkg-config" ]; then + build_fileop rm "${PREFIX}/bin/pkg-config"; + fi; + build_fileop ln_symbolic pkgconf "${PREFIX}/bin/pkg-config"; +}; + +pkg_pkgconf_install_post() { + if [ -e "${PREFIX_NATIVE}/bin/pkg-config" ]; then + build_fileop rm "${PREFIX_NATIVE}/bin/pkg-config"; + fi; + build_fileop ln_symbolic pkgconf "${PREFIX_NATIVE}/bin/pkg-config"; }; # vim:filetype=sh |