games/smc: Update for new CEGUI0.7.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-01-10 02:56:56 -05:00 committed by Willy Sudiarto Raharjo
parent 262675d2d7
commit 09ef489c68
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 8 additions and 11 deletions

View file

@ -5,14 +5,9 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# Modified by B. Watson, for post-1.9 git snapshot and Slack 14.1.
# - removed boost patch (no longer needed)
# - changed Categories in .desktop file (make it validate)
# - got CEGUI0.7 maintainer to add a couple configure options this needs
# Note about the REQUIRES in the .info file: I listed FreeImage first
# because it's an optional dep for CEGUI0.7. This build needs CEGUI0.7
# with FreeImage support compiled in.
# 20230110 bkw: BUILD=4
# - look for CEGUI0.7 libraries in /opt/CEGUI0.7, since they've
# been moved there (as of CEGUI0.7 build 5).
# 20211026 bkw: BUILD=3
# - new-style icons (extracted from the windows .ico file).
@ -34,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=smc
VERSION=${VERSION:-20140328}
BUILD=${BUILD:-2}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -83,6 +78,8 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
./autogen.sh
export PKG_CONFIG_PATH=/opt/CEGUI0.7/lib$LIBDIRSUFFIX/pkgconfig
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@ -92,7 +89,7 @@ CXXFLAGS="$SLKCFLAGS" \
--datadir=/usr/share/games \
--build=$ARCH-slackware-linux
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" force_arch="$ARCH" make
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" force_arch="$ARCH" make V=1
make install-strip DESTDIR=$PKG
# The fonts included in the game cause 14.2's fontconfig to fail,

View file

@ -5,6 +5,6 @@ DOWNLOAD="https://slackware.uk/~urchlay/src/smc-20140328.tar.gz"
MD5SUM="a0d2e7a20d93badf2708baabcaabedba"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="FreeImage CEGUI0.7"
REQUIRES="CEGUI0.7"
MAINTAINER="B. Watson"
EMAIL="urchlay@slackware.uk"