blob: df56d0d054139238a67febf45b0d18b522db3a25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#! /bin/sh
#
# Multilib-aware wrapper for the wx-config script
#
# Usage: wx-config [--arch <arch>] <regular wx-config options>
#
version=3.2
if [ $# -ge 2 ]; then
if [ $1 = "--arch" ]; then
arch=$2
shift 2
fi
fi
if [ -z $arch ]; then
arch=`uname -m`
fi
case $arch in
i?86|ppc|s390|sparc|arm*|ia64|mips|mipsel|riscv32|sw_64)
libdir=/usr/lib
;;
x86_64|ppc64|s390x|sparc64|aarch64|ppc64le|mips64*|riscv64|loongarch64)
libdir=/usr/lib64
;;
*)
echo "Unsupported architecture '$arch'"
exit 8
;;
esac
wxconfig=$libdir/wx/config/gtk3-unicode-$version
if [ ! -f $wxconfig ]; then
wxconfig=$libdir/wx/config/gtk2-unicode-$version
fi
# special case when using 32-bit userspace and 64-bit kernel
if [ ! -f $wxconfig -a \( $arch = ppc64 -o $arch = sparc64 \) ]; then
wxconfig=/usr/lib/wx/config/gtk3-unicode-$version
if [ ! -f $wxconfig ]; then
wxconfig=/usr/lib/wx/config/gtk2-unicode-$version
fi
fi
if [ -x $wxconfig ]; then
exec $wxconfig $@
else
echo "wxGTK-devel isn't installed for architecture '$arch'"
exit 9
fi
|