summaryrefslogtreecommitdiff
path: root/development/pkgconf/platform-pkg-config.in
diff options
context:
space:
mode:
authorHunter Sezen <orbea@riseup.net>2019-02-28 22:58:53 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-02-28 22:58:53 +0700
commit1f11e0a0dbc82bc558200ce0b4e51c46a36f1db9 (patch)
tree4b4071c31091d04e17256f4f0e71f8854cd5eda1 /development/pkgconf/platform-pkg-config.in
parent69212cd632e5b8ae039941b5a623c70b28398bca (diff)
downloadslackbuilds-1f11e0a0dbc82bc558200ce0b4e51c46a36f1db9.tar.gz
development/pkgconf: Add compatibility.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/pkgconf/platform-pkg-config.in')
-rw-r--r--development/pkgconf/platform-pkg-config.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/development/pkgconf/platform-pkg-config.in b/development/pkgconf/platform-pkg-config.in
new file mode 100644
index 0000000000..1cc5917d5e
--- /dev/null
+++ b/development/pkgconf/platform-pkg-config.in
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Simple wrapper to tell pkgconf to behave as a platform-specific version of pkg-config
+# Platform: @TARGET_PLATFORM@
+
+PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR:-@PKGCONF_LIBDIRS@}"
+PKG_CONFIG_SYSTEM_LIBRARY_PATH="${PKG_CONFIG_SYSTEM_LIBRARY_PATH:-@PKGCONF_SYSLIBDIR@}"
+PKG_CONFIG_SYSTEM_INCLUDE_PATH="${PKG_CONFIG_SYSTEM_INCLUDE_PATH:-@PKGCONF_SYSINCDIR@}"
+
+export PKG_CONFIG_LIBDIR
+export PKG_CONFIG_SYSTEM_LIBRARY_PATH
+export PKG_CONFIG_SYSTEM_INCLUDE_PATH
+
+exec pkgconf "$@"