nsis: Add missing qemu-nbd.exe
[qemu/ar7.git] / scripts / cross-pkg-config
blob23cbaaddc79d7794faaabae0e9b703d40f7eef0b
1 #!/bin/sh -e
3 # Copyright (C) 2011 Stefan Weil
5 # This work is licensed under the terms of the GNU GPL, version 2 or later.
6 # See the file COPYING in the top-level directory.
8 # This script provides a cross pkg-config for QEMU cross compilations.
9 # It will use the standard pkg-config with special options for the
10 # cross environment which is assumed to be in /usr/{cross-prefix}.
12 # Installation (Debian and similar distributions):
13 # Simply copy or link it to /usr/bin/{cross-prefix}-pkg-config.
15 # Examples (Debian, Ubuntu):
16 # /usr/bin/amd64-mingw32msvc-pkg-config
17 # /usr/bin/i586-mingw32msvc-pkg-config
18 # /usr/bin/arm-linux-gnueabi-pkg-config
19 # /usr/bin/mipsel-linux-gnu-pkg-config
21 basename=`basename "$0"`
22 prefix="/usr/${basename%-pkg-config}"
23 export PKG_CONFIG_LIBDIR=$prefix/lib/pkgconfig
24 exec pkg-config --define-variable=prefix="$prefix" "$@"
26 # end