mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
games/openyahtzee: Don't trust wx-config.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
dc8f4fc2b8
commit
22555f0baf
1 changed files with 15 additions and 2 deletions
|
@ -6,9 +6,14 @@
|
|||
|
||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||
|
||||
# 20140909 bkw: if wx(Widgets|Python) 2.x and wxGTK 3.x are installed, in that
|
||||
# order, the symlink at /usr/bin/wx-config will point to the 3.x config script.
|
||||
# openyahtzee won't build against wx 3, so this script now uses the 2.x script
|
||||
# explicitly.
|
||||
|
||||
PRGNAM=openyahtzee
|
||||
VERSION=${VERSION:-1.9.1}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -40,6 +45,14 @@ fi
|
|||
|
||||
set -e
|
||||
|
||||
# We can't trust the /usr/bin/wx-config symlink.
|
||||
# Find the correct wx-config, if it exists. User can override by setting WXVER
|
||||
# in the env, or by setting WXCONFIG to the full path.
|
||||
WXVER=${WXVER:-2.8}
|
||||
WXMAYBE="$( ls /usr/lib$LIBDIRSUFFIX/wx/config/*-$WXVER 2>/dev/null | head -1 )"
|
||||
WXCONFIG=${WXCONFIG:-$WXMAYBE}
|
||||
WXCONFIG=${WXCONFIG:-/usr/bin/wx-config}
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
|
|
Loading…
Reference in a new issue