summaryrefslogtreecommitdiffhomepage
path: root/files/pkgconf_host/bin
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-08-25 09:22:48 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-08-25 09:22:48 +0200
commitea407d0a5ec21ee37cebfedbb0cdb9698a113e65 (patch)
tree876384499702f717815417b8aacecadf2fb95fe7 /files/pkgconf_host/bin
parent4025bd27c99d190ba4812d441a1553ee04b170eb (diff)
downloadmidipix_build-ea407d0a5ec21ee37cebfedbb0cdb9698a113e65.tar.bz2
midipix_build-ea407d0a5ec21ee37cebfedbb0cdb9698a113e65.tar.xz
files/pkgconf: removed.
files/pkgconf_host/bin/%[_target]-pkg-config: correctly set prefix. groups/100.native_tools.group:pkgconf:${PKG_INSTALL_FILES_V2}: updated.
Diffstat (limited to 'files/pkgconf_host/bin')
-rw-r--r--files/pkgconf_host/bin/%[_target]-pkg-config8
1 files changed, 8 insertions, 0 deletions
diff --git a/files/pkgconf_host/bin/%[_target]-pkg-config b/files/pkgconf_host/bin/%[_target]-pkg-config
new file mode 100644
index 00000000..7351e62f
--- /dev/null
+++ b/files/pkgconf_host/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%/}/native" --keep-system-cflags "${@}";
+fi;