You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wxGTK3/wx-config

46 lines
886 B

#! /bin/sh
#
# Multilib-aware wrapper for the wx-config script
#
# Usage: wx-config [--arch <arch>] <regular wx-config options>
#
version=3.0
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)
libdir=/usr/lib
;;
x86_64|ppc64|s390x|sparc64)
libdir=/usr/lib64
;;
*)
echo "Unsupported architecture '$arch'"
exit 8
;;
esac
wxconfig=$libdir/wx/config/gtk2-unicode-$version
# 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/gtk2-unicode-$version
fi
if [ -x $wxconfig ]; then
exec $wxconfig $@
else
echo "wxWidgets3-devel isn't installed for architecture '$arch'"
exit 9
fi