diff options
Diffstat (limited to 'vars')
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 |