summaryrefslogtreecommitdiff
path: root/games/dolphin-emu/dolphin-emu.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2017-04-11 22:33:02 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-13 07:28:02 +0700
commitc56fe065e9096456b731ab9ea39bbb16a79b689c (patch)
tree0cf371a045a205e936a718e22adbd76786367d35 /games/dolphin-emu/dolphin-emu.SlackBuild
parentd5e4d27dc51acbccafccfd789f12d1031006b8fd (diff)
downloadslackbuilds-c56fe065e9096456b731ab9ea39bbb16a79b689c.tar.gz
games/dolphin-emu: fix dependencies
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'games/dolphin-emu/dolphin-emu.SlackBuild')
-rw-r--r--games/dolphin-emu/dolphin-emu.SlackBuild28
1 files changed, 14 insertions, 14 deletions
diff --git a/games/dolphin-emu/dolphin-emu.SlackBuild b/games/dolphin-emu/dolphin-emu.SlackBuild
index 27e7a42ad2..a254bf93aa 100644
--- a/games/dolphin-emu/dolphin-emu.SlackBuild
+++ b/games/dolphin-emu/dolphin-emu.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for dolphin-emu
-# Copyright 2013-2014 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2013-2017 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,12 +24,12 @@
PRGNAM=dolphin-emu
VERSION=${VERSION:-5.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -60,7 +60,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf ${PRGNAM/-*/}-$VERSION
-tar xvf $CWD/${PRGNAM/-*/}-$VERSION.tar.?z || tar xvf $CWD/$VERSION.tar.gz
+tar xvf $CWD/${PRGNAM/-*/}-$VERSION.tar.?z
cd ${PRGNAM/-*/}-$VERSION
chown -R root:root .
find -L . \
@@ -69,17 +69,21 @@ 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 {} \;
-sed -i "s|share/man|man|" CMakeLists.txt
-
mkdir build
cd build
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-Dbindir=/usr/games \
+ -Dmandir=/usr/man \
-DLIB_INSTALL_DIR=lib${LIBDIRSUFFIX} \
+ -DENABLE_LTO:BOOL=ON \
+ -DUSE_SHARED_GTEST:BOOL=ON \
+ -DUSE_SHARED_ENET:BOOL=ON \
+ -DENABLE_SDL:BOOL=ON \
-DINSTALL_LIB_DIR=/usr/lib${LIBDIRSUFFIX} \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DDISTRIBUTOR="Slackware" \
-DCMAKE_BUILD_TYPE=Release ..
make VERBOSE=1
@@ -92,18 +96,14 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
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
-for i in 16 32 48 64 128; do
+for i in 16 32 64 128; do
convert Installer/Dolphin.ico -resize ${i}x${i}! $PRGNAM-${i}.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 -rf $PKG/usr/lib${LIBDIRSUFFIX}/libpolarssl.a
-find $PKG -type d -empty -delete
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a license.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a license.txt *.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install