summaryrefslogtreecommitdiffstats
path: root/games/pcsx2/pcsx2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/pcsx2/pcsx2.SlackBuild')
-rw-r--r--games/pcsx2/pcsx2.SlackBuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/games/pcsx2/pcsx2.SlackBuild b/games/pcsx2/pcsx2.SlackBuild
index 2f5096784e..6f8a6e67f2 100644
--- a/games/pcsx2/pcsx2.SlackBuild
+++ b/games/pcsx2/pcsx2.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for pcsx2
-# Copyright 2016-2018 Hunter Sezen California, USA
+# Copyright 2016-2018, 2020 Hunter Sezen California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pcsx2
-VERSION=${VERSION:-2018.12.11_0e43803}
+VERSION=${VERSION:-1.6.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,7 +60,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -72,8 +72,10 @@ find -L . \
# pcsx2 does not support x86_64 yet and does
# not plan to for the foreseeable future.
BINDIR=; MULTILIB=
-[ "$ARCH" = 'x86_64' ] && BINDIR='/32' \
+if [ "$ARCH" = 'x86_64' ]; then
+ BINDIR='/32'
MULTILIB='-DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake'
+fi
RELEASE=Debug
@@ -102,6 +104,11 @@ sed -i \
's|truetype/freefont/FreeSerif.ttf|TTF/LiberationSerif-Regular.ttf|' \
plugins/GSdx/GSdx.cpp
+# spu2-x: Make portaudio an optional dependency.
+# https://github.com/PCSX2/pcsx2/pull/3110
+# https://github.com/PCSX2/pcsx2/commit/84d090e2fde50c66b965b84c73abd9f04a1770dd
+patch -p1 < $CWD/portaudio.patch
+
mkdir -p build
cd build
cmake \
@@ -113,7 +120,6 @@ cd build
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin${BINDIR}/wx-config \
-DwxWidgets_wxrc_EXECUTABLE=/usr/bin${BINDIR}/wxrc-3.0 \
-DBUILD_REPLAY_LOADERS=TRUE \
- -DDISABLE_ADVANCE_SIMD=ON \
-DDISABLE_BUILD_DATE=ON \
-DGSDX_LEGACY=ON \
-DPACKAGE_MODE=ON \
@@ -144,7 +150,7 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
# Fix doinst.sh for x86_64
-[ "$ARCH" = 'x86_64' ] && \
+[ "$ARCH" != 'x86_64' ] ||
sed -i 's|-loaders |-loaders-32 |' $PKG/install/doinst.sh
cd $PKG