diff options
Diffstat (limited to 'files/pkgconf/bin')
-rw-r--r-- | files/pkgconf/bin/%[_target]-pkg-config | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/files/pkgconf/bin/%[_target]-pkg-config b/files/pkgconf/bin/%[_target]-pkg-config new file mode 100644 index 00000000..dd6328fc --- /dev/null +++ b/files/pkgconf/bin/%[_target]-pkg-config @@ -0,0 +1,8 @@ +#!/bin/sh +PREFIX=""; [ ${PREFIX:="${0%/*}"} = "${0}" ] && PREFIX="."; PREFIX="${PREFIX:+${PREFIX}/}.."; +if [ "${#}" -eq 1 ]\ +&& [ "x${1}" = "x--version" ]; then + "${PREFIX}/bin/pkgconf" --version; +else + "${PREFIX}/bin/pkgconf" --define-variable=prefix="${PREFIX%/}/" --keep-system-cflags "${@}"; +fi; |