2019-05-01 14:42:47 +02:00
|
|
|
#!/bin/sh
|
2018-05-20 09:24:31 +02:00
|
|
|
|
|
|
|
# Simple wrapper to tell pkgconf to behave as a platform-specific version of pkg-config
|
|
|
|
# Platform: @TARGET_PLATFORM@
|
|
|
|
|
2020-08-10 07:07:59 +02:00
|
|
|
if [ -z "${RPM_BUILD_ROOT}" ]; then
|
|
|
|
export PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR:-@PKGCONF_LIBDIRS_LOCAL@}"
|
|
|
|
export PKG_CONFIG_SYSTEM_LIBRARY_PATH="${PKG_CONFIG_SYSTEM_LIBRARY_PATH:-@PKGCONF_SYSLIBDIR_LOCAL@}"
|
|
|
|
export PKG_CONFIG_SYSTEM_INCLUDE_PATH="${PKG_CONFIG_SYSTEM_INCLUDE_PATH:-@PKGCONF_SYSINCDIR_LOCAL@}"
|
|
|
|
else
|
|
|
|
export PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR:-@PKGCONF_LIBDIRS@}"
|
|
|
|
export PKG_CONFIG_SYSTEM_LIBRARY_PATH="${PKG_CONFIG_SYSTEM_LIBRARY_PATH:-@PKGCONF_SYSLIBDIR@}"
|
|
|
|
export PKG_CONFIG_SYSTEM_INCLUDE_PATH="${PKG_CONFIG_SYSTEM_INCLUDE_PATH:-@PKGCONF_SYSINCDIR@}"
|
|
|
|
fi
|
2018-05-20 09:24:31 +02:00
|
|
|
|
2019-05-01 14:42:47 +02:00
|
|
|
exec pkgconf "$@"
|