diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2019-08-24 08:55:37 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2019-08-24 08:55:37 +0000 |
commit | 6a7fc70dbfeb34768d4d9353938b7df5c0f67175 (patch) | |
tree | 832c7b26358630f40b63c7109e6ffda0506546e3 /vars | |
parent | b435d311eec624faa66551a6a76a7a9f209858b3 (diff) | |
download | midipix_build-6a7fc70dbfeb34768d4d9353938b7df5c0f67175.tar.bz2 midipix_build-6a7fc70dbfeb34768d4d9353938b7df5c0f67175.tar.xz |
vars/pkgconf_host.vars:pkg_pkgconf_host_install_make_post(): have wrapper call pkgconf w/ solely --version if necessary (fixes ffmpeg wrt. libshine.)
Diffstat (limited to 'vars')
-rw-r--r-- | vars/pkgconf_host.vars | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vars/pkgconf_host.vars b/vars/pkgconf_host.vars index 0f345906..9f73c7f6 100644 --- a/vars/pkgconf_host.vars +++ b/vars/pkgconf_host.vars @@ -11,7 +11,13 @@ pkg_pkgconf_host_install_make_post() { if [ -z "\${PREFIX_NATIVE}" ]; then PREFIX_NATIVE="${PREFIX_NATIVE}"; fi; -"\$(dirname "\${0}")"/pkgconf --define-variable=prefix="\${PREFIX_NATIVE%/}/" --keep-system-cflags "\${@}"; +if [ "\${#}" -eq 1 ]\ +&& [ "x\${1}" = "x--version" ]; then + "\$(dirname "\${0}")"/pkgconf --version; + +else + "\$(dirname "\${0}")"/pkgconf --define-variable=prefix="\${PREFIX_NATIVE%/}/" --keep-system-cflags "\${@}"; +fi; EOF chmod +x "${PKG_DESTDIR}/bin/${PKG_TARGET}-pkg-config"; ex_rtl_fileop rm "${PKG_DESTDIR}/bin/pkg-config"; |