diff options
author | larryhaja <larryhaja@gmail.com> | 2013-11-13 19:04:26 -0800 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-14 00:06:25 -0600 |
commit | a1d592cda7da20b399807f71f9b75b6b1b32715f (patch) | |
tree | f6d6e3ea467762939797870f9a88a3b51222453a /games/dolphin-emu/dolphin-emu.SlackBuild | |
parent | ee7dcf4f873c376e96c0d5f5ea6c4821ec2b1e00 (diff) | |
download | slackbuilds-a1d592cda7da20b399807f71f9b75b6b1b32715f.tar.gz |
games/dolphin-emu: Upgraded to 4.0
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games/dolphin-emu/dolphin-emu.SlackBuild')
-rw-r--r-- | games/dolphin-emu/dolphin-emu.SlackBuild | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/games/dolphin-emu/dolphin-emu.SlackBuild b/games/dolphin-emu/dolphin-emu.SlackBuild index 7260fb45ce..32777e63ab 100644 --- a/games/dolphin-emu/dolphin-emu.SlackBuild +++ b/games/dolphin-emu/dolphin-emu.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=dolphin-emu -VERSION=${VERSION:-3.5} +VERSION=${VERSION:-4.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,9 +59,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf ${PRGNAM/-*/}-$VERSION +rm -rf $PRGNAM unzip $CWD/${PRGNAM/-*/}-$VERSION-src.zip -cd ${PRGNAM/-*/}-$VERSION +cd $PRGNAM chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -69,11 +69,17 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Force dolphin-emu to use internal polarssl. Dolphin-emu fails to build +# when polarssl >= 1.3.x is installed. +sed -i 's|include(FindPolarSSL)|#&|' CMakeLists.txt + mkdir build cd build cmake -G "Unix Makefiles" \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -Dbindir=/usr/games \ + -DLIB_INSTALL_DIR=lib${LIBDIRSUFFIX} \ + -DINSTALL_LIB_DIR=/usr/lib${LIBDIRSUFFIX} \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release .. @@ -85,14 +91,15 @@ 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 -mkdir -p $PKG/usr/share/applications -install -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications for i in 16 32 48 64 128; do convert Installer/Dolphin.ico -resize ${i}x${i}! $PRGNAM-${i}.png - install -D -m 0644 $PRGNAM-${i}-8.png \ + install -D -m 0644 $PRGNAM-${i}-3.png \ $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png done +# Remove unnecessary files/directories. +rm -f $PKG/usr/share/pixmaps $PKG/usr/lib${LIBDIRSUFFIX}/libpolarssl.a + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a license.txt Readme.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |