diff options
author | Gabriel Magno <gabrielmagno1@gmail.com> | 2013-10-29 14:12:54 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-10-29 14:12:54 -0500 |
commit | 8986155c610a19b28e580dac9f23ca5f468b6fd0 (patch) | |
tree | 1cbee32cae22439b00b2047b205d4f6c7c7dc6a8 /games/higan/higan.SlackBuild | |
parent | 0a99e23ab372ea5cb955aae663d52051954f08bb (diff) | |
download | slackbuilds-8986155c610a19b28e580dac9f23ca5f468b6fd0.tar.gz |
games/higan: Updated for version 093.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games/higan/higan.SlackBuild')
-rw-r--r-- | games/higan/higan.SlackBuild | 95 |
1 files changed, 56 insertions, 39 deletions
diff --git a/games/higan/higan.SlackBuild b/games/higan/higan.SlackBuild index 8b39e94b8b..b0c69256da 100644 --- a/games/higan/higan.SlackBuild +++ b/games/higan/higan.SlackBuild @@ -5,8 +5,28 @@ # Based on bsnes SlackBuild by Erik Hanson <erik@slackbuilds.org> # Maintained by Gabriel Magno <gabrielmagno1[at]gmail[dot]com> +# Copyright 2013 Gabriel Magno, Belo Horizonte, MG, Brazil +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + PRGNAM=higan -VERSION=${VERSION:-092} +VERSION=${VERSION:-093} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -53,46 +73,43 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# apply the patch to allow proper install on slackware as root (from hackedhead) -# tweaked a bit by rworkman to fix ananke issues too -patch -p1 -i $CWD/higan-v092.patch - -cd $PRGNAM - moc -i -Iphoenix/qt/ -o phoenix/qt/platform.moc phoenix/qt/platform.moc.hpp - - # Choose whether a qt or gtk interface is built. - INTERFACE=${INTERFACE:-qt} - - # Determine which mode to build higan. - # Possible values for PROFILE: accuracy, balanced, and performance. - PROFILE=${PROFILE:-balanced} - - CXXFLAGS="$SLKCFLAGS" \ - make \ - platform=x \ - compiler=gcc \ - prefix=/usr \ - phoenix="$INTERFACE" \ - profile="$PROFILE" - - make install profile=$PROFILE DESTDIR=$PKG prefix=/usr -cd .. - -# Compile ananke. -cd ananke - # Fix building with QT >= 4.8.0. - moc -i -Iphoenix/qt/ -o phoenix/qt/platform.moc phoenix/qt/platform.moc.hpp - - make \ - compiler=gcc \ - platform=x \ - phoenix="$INTERFACE" - - make install DESTDIR=$PKG prefix=/usr -cd .. +# Apply the patch to allow proper install on Slackware as root +patch -p1 -i $CWD/higan-v093.patch + +# Fix building with QT >= 4.8.0. +moc -i -Iphoenix/qt/ -o phoenix/qt/platform.moc phoenix/qt/platform.moc.hpp + +# Choose whether a qt or gtk interface is built. +INTERFACE=${INTERFACE:-qt} + +# Determine which mode to build higan. +# Possible values for PROFILE: accuracy, balanced, and performance. +PROFILE=${PROFILE:-balanced} + +CXXFLAGS="$SLKCFLAGS" \ +make \ + compiler=g++ \ + cppflags="-std=gnu++11" \ + prefix=/usr \ + platform=x \ + phoenix="$INTERFACE" \ + profile="$PROFILE" + +make install DESTDIR=$PKG prefix=/usr platform=x profile=$PROFILE + +# Compile ananke (tool to import ROM game files into the higan library). +make -C ananke \ + compiler=g++ \ + cppflags="-std=gnu++11" \ + platform=x \ + phoenix="$INTERFACE" \ + profile="$PROFILE" +make -C ananke install path=$PKG/usr/lib${LIBDIRSUFFIX} platform=x # Copy shaders -cp -r shaders "$PKG/usr/share/higan/profile/Video Shaders" +mkdir $PKG/usr/share/higan/Video\ Shaders +cp -r shaders/*.shader $PKG/usr/share/higan/Video\ Shaders +chmod -R 777 $PKG/usr/share/higan/Video\ Shaders find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |