mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +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
|
||||
|
@ -51,7 +64,7 @@ find -L . \
|
|||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
|
|
Loading…
Reference in a new issue