summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2015-09-17 05:39:55 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-09-19 19:49:11 +0700
commit10f1b10186d0623cbb8e28bfdd6bfac7c4a275bf (patch)
tree280d286ffe7c2df92ccf496ab0aa64050571f837
parenta329def4a413e69685c618b864b8305a316e620b (diff)
downloadslackbuilds-10f1b10186d0623cbb8e28bfdd6bfac7c4a275bf.tar.gz
games/freeorion: Updated for version 0.4.5.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
-rw-r--r--games/freeorion/README3
-rw-r--r--games/freeorion/freeorion.SlackBuild20
-rw-r--r--games/freeorion/freeorion.info6
3 files changed, 18 insertions, 11 deletions
diff --git a/games/freeorion/README b/games/freeorion/README
index 0fb8645188..400386ef5d 100644
--- a/games/freeorion/README
+++ b/games/freeorion/README
@@ -3,3 +3,6 @@ galactic conquest (4X) computer game being designed and built
by the FreeOrion project. FreeOrion is inspired by the tradition
of the Master of Orion games, but is not a clone or remake of that
series or any other game.
+
+Note: for mitigating a hard to track segfault bug in freeoriond, clang is
+used to compile freeorion instead of gcc
diff --git a/games/freeorion/freeorion.SlackBuild b/games/freeorion/freeorion.SlackBuild
index 3359deeed5..3d772c0161 100644
--- a/games/freeorion/freeorion.SlackBuild
+++ b/games/freeorion/freeorion.SlackBuild
@@ -22,9 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PRGNAM=freeorion
-SRCVER=${SRCVER:-0.4.5-rc3}
-VERSION=$(echo $SRCVER | tr - _)
+SRCNAM=FreeOrion
+PRGNAM=${SRCNAM,,}
+SRCVER=${SRCVER:-v0.4.5_2015-09-01.f203162}
+VERSION=$(echo $SRCVER | cut -c2-6)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,9 +61,10 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRCVER
-tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz || tar xvf $CWD/v$SRCVER.tar.gz
-cd $PRGNAM-$SRCVER
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/${SRCNAM}_${SRCVER}_Source.tar.gz
+mv src-tarball $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -70,12 +72,14 @@ 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 {} \;
-# Fix cmake target for version file
-mv util/Version.cpp.in util/Version.cpp
+# tell cmake to use clang
+export CC=/usr/bin/clang
+export CXX=/usr/bin/clang++
mkdir -p build
cd build
cmake \
+ -D_CMAKE_TOOLCHAIN_PREFIX=llvm- \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
diff --git a/games/freeorion/freeorion.info b/games/freeorion/freeorion.info
index 87c098c653..2df9f235c0 100644
--- a/games/freeorion/freeorion.info
+++ b/games/freeorion/freeorion.info
@@ -1,8 +1,8 @@
PRGNAM="freeorion"
-VERSION="0.4.5_rc3"
+VERSION="0.4.5"
HOMEPAGE="http://www.freeorion.org"
-DOWNLOAD="https://github.com/freeorion/freeorion/archive/v0.4.5-rc3.tar.gz"
-MD5SUM="7112718b9c58d4471cdba99671e12cab"
+DOWNLOAD="https://github.com/freeorion/freeorion/releases/download/v0.4.5/FreeOrion_v0.4.5_2015-09-01.f203162_Source.tar.gz"
+MD5SUM="706b8e9ab2ee29575a927e6f1c772d61"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="SDL2 OpenAL"