#!/usr/bin/env sh

# SPDX-License-Identifier: CC0-1.0

# SPDX-FileCopyrightText: 2021 Stefan Schmidt

export PKG_CONFIG_DIR=""
export PKG_CONFIG_PATH=""
export PKG_CONFIG_SYSROOT_DIR=""
export PKG_CONFIG_LIBDIR=${NXDK_DIR}/lib/pkgconfig:${NXDK_DIR}/share/pkgconfig

[ "$1" = '--version' ] && exec pkgconf --version
exec pkgconf \
    --define-variable=NXDK_DIR=${NXDK_DIR} \
    --define-prefix \
    --static \
    "$@" | sed 's/\.lib\.lib/\.lib/g'
