summaryrefslogtreecommitdiff
path: root/games/pcsx2
diff options
context:
space:
mode:
Diffstat (limited to 'games/pcsx2')
-rw-r--r--games/pcsx2/README36
-rw-r--r--games/pcsx2/pcsx2.SlackBuild57
-rw-r--r--games/pcsx2/pcsx2.info6
-rw-r--r--games/pcsx2/project_metafalica.diff.gzbin444 -> 0 bytes
4 files changed, 63 insertions, 36 deletions
diff --git a/games/pcsx2/README b/games/pcsx2/README
index 72aa3733c5..3e1ed39b6a 100644
--- a/games/pcsx2/README
+++ b/games/pcsx2/README
@@ -1,13 +1,23 @@
-PCSX2 is an open source Playstation 2 emulator.
-Its purpose is to mimic the PS2 hardware, using a combination
-of MIPS CPU Interpreters, Recompilers and a Virtual Machine
-which manages hardware states and PS2 system memory.
-
-NOTE: This is buildable only on x86 32bit platform and will
-require a PS2 bios dump to play games.
-For x86_64 64bit platforms multilib support will be needed
-including compat32 versions of SDL2, wxGTK3, portaudio and
-soundtouch.
-
-To build a legacy GSdx plugin compatible with GL3.3 use:
- GL3="yes" ./pcsx2.SlackBuild
+PCSX2 is an open source Playstation 2 emulator. Its purpose is to mimic
+the PS2 hardware, using a combination of MIPS CPU Interpreters, Recompilers
+and a Virtual Machine which manages hardware states and PS2 system memory.
+
+NOTE: This is buildable only on x86 32bit platforms and will require a PS2 bios
+dump to play games. For x86_64 64bit platforms multilib support will be needed
+including compat32 versions of SDL2, wxGTK3, portaudio and soundtouch.
+
+PCSX2 offers experimental support for the EGL api instead of GLX. This can be
+used by building PCSX2 with:
+ EGL_API=yes ./pcsx2.SlackBuild
+
+To build debugging symbols for PCSX2 use:
+ DEBUG=yes ./pcsx2.SlackBuild
+
+Alternatively a devel build can be used:
+ DEVEL=yes ./pcsx2.SlackBuild
+
+If a debug or devel build is used, asan support can also be built:
+ ASAN=yes ./pcsx2.SlackBuild
+
+The following environment variable will be required to use asan:
+ ASAN_OPTIONS=allow_user_segv_handler=1:abort_on_error=1
diff --git a/games/pcsx2/pcsx2.SlackBuild b/games/pcsx2/pcsx2.SlackBuild
index 46e7345066..fe2a2e56b0 100644
--- a/games/pcsx2/pcsx2.SlackBuild
+++ b/games/pcsx2/pcsx2.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for pcsx2
-# Copyright 2016 Hunter Sezen California, USA
+# Copyright 2016-2017 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:-2017.02.01_23d081ab2}
+VERSION=${VERSION:-2017.05.21_7d75a7310}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,7 +60,7 @@ else
BINDIR=""
fi
-set -e
+set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -75,20 +75,31 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Build a GSdx legacy plugin compatible with GL3.3
-GL3=${GL3:-no}
-case "$GL3" in
- 'yes' ) GSDX='-DGSDX_LEGACY=ON' ;;
- * ) GSDX= ;;
-esac
+DEBUG="${DEBUG:-no}"
+DEVEL="${DEVEL:-no}"
+if [ "$DEVEL" = yes ] || [ "$DEBUG" = yes ]; then
+ case "${ASAN:-FALSE}" in
+ yes) ASAN=TRUE ;;
+ *) ASAN=FALSE ;;
+ esac
+ case "$DEVEL" in
+ yes) RELEASE=Devel ;;
+ *) RELEASE=Debug ;;
+ esac
+ SLKCFLAGS="$(printf %s "$SLKCFLAGS" | sed 's/-O2/-O0/')"
+else
+ ASAN=FALSE
+ RELEASE=Release
+fi
-# (CRC) Add project metafalica retranslation
-# https://github.com/PCSX2/pcsx2/issues/1762
-zcat $CWD/project_metafalica.diff.gz | patch -p1
+case "${EGL_API:-OFF}" in
+ yes|[oO][nN]) EGL=ON ;;
+ *) EGL=OFF ;;
+esac
# Use a font included with Slackware
# osd error: 'Failed to init the freetype face'
-zcat $CWD/osd_font.diff.gz | patch -p1
+zcat $CWD/osd_font.diff.gz | patch -p1
mkdir -p build
cd build
@@ -100,18 +111,24 @@ cd build
-DMAN_DIR=/usr/man \
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin${BINDIR}/wx-config \
-DwxWidgets_wxrc_EXECUTABLE=/usr/bin${BINDIR}/wxrc-3.0 \
- -DGLSL_API=ON \
+ -DBUILD_REPLAY_LOADERS=TRUE \
+ -DDISABLE_ADVANCE_SIMD=ON \
+ -DDISABLE_BUILD_DATE=ON \
+ -DGSDX_LEGACY=ON \
-DPACKAGE_MODE=ON \
- -DREBUILD_SHADER=ON \
-DXDG_STD=ON \
- $GSDX $MULTILIB \
- -DCMAKE_BUILD_TYPE=Release ..
+ -DEGL_API="$EGL" \
+ -DUSE_ASAN="$ASAN" \
+ $MULTILIB \
+ -DCMAKE_BUILD_TYPE=$RELEASE ..
make
make install DESTDIR=$PKG
cd ..
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+if [ "$DEBUG" = no ] && [ "$DEVEL" = no ]; then
+ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+fi
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
@@ -133,4 +150,4 @@ if [ "$ARCH" = 'x86_64' ]; then
fi
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/games/pcsx2/pcsx2.info b/games/pcsx2/pcsx2.info
index be7845d072..ec57eae433 100644
--- a/games/pcsx2/pcsx2.info
+++ b/games/pcsx2/pcsx2.info
@@ -1,8 +1,8 @@
PRGNAM="pcsx2"
-VERSION="2017.02.01_23d081ab2"
+VERSION="2017.05.21_7d75a7310"
HOMEPAGE="http://pcsx2.net"
-DOWNLOAD="http://ks392457.kimsufi.com/orbea/stuff/slackbuilds/src/pcsx2-2017.02.01_23d081ab2.tar.xz"
-MD5SUM="a8a9b27362371b2fc476ec2cf9ae1405"
+DOWNLOAD="http://ks392457.kimsufi.com/orbea/stuff/slackbuilds/src/pcsx2-2017.05.21_7d75a7310.tar.xz"
+MD5SUM="03a146b2ee7ae438505ea95da893a8a4"
DOWNLOAD_x86_64="UNSUPPORTED"
MD5SUM_x86_64=""
REQUIRES="SDL2 wxGTK3 portaudio soundtouch"
diff --git a/games/pcsx2/project_metafalica.diff.gz b/games/pcsx2/project_metafalica.diff.gz
deleted file mode 100644
index 3f69d4a3db..0000000000
--- a/games/pcsx2/project_metafalica.diff.gz
+++ /dev/null
Binary files differ