aboutsummaryrefslogtreecommitdiff
path: root/games/speed-dreams
diff options
context:
space:
mode:
Diffstat (limited to 'games/speed-dreams')
-rw-r--r--games/speed-dreams/README8
-rw-r--r--games/speed-dreams/gcc47.patch28
-rw-r--r--games/speed-dreams/slack-desc12
-rw-r--r--games/speed-dreams/speed-dreams.SlackBuild17
-rw-r--r--games/speed-dreams/speed-dreams.info22
5 files changed, 36 insertions, 51 deletions
diff --git a/games/speed-dreams/README b/games/speed-dreams/README
index ebd360756e993..8d907b09a3e1d 100644
--- a/games/speed-dreams/README
+++ b/games/speed-dreams/README
@@ -1,4 +1,4 @@
-Speed Dreams is a fork of the famous open racing car simulator Torcs,
-aiming to implement exciting new features, cars, tracks and AI opponents
-to make a more enjoyable game for the player, as well as constantly
-improving visual and physics realism.
+Speed Dreams is a fork of the famous open racing car simulator Torcs, aiming
+to implement exciting new features, cars, tracks and AI opponents to make a
+more enjoyable game for the player, as well as constantly improving visual and
+physics realism.
diff --git a/games/speed-dreams/gcc47.patch b/games/speed-dreams/gcc47.patch
deleted file mode 100644
index ee5e3d58424ad..0000000000000
--- a/games/speed-dreams/gcc47.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Fixes #645 & #646 (GCC 4.7 compatibility)
-
---- src/libs/math/v3_t.h.orig 2012-03-30 18:09:00.697957753 -0500
-+++ src/libs/math/v3_t.h 2012-03-30 18:09:15.421679640 -0500
-@@ -28,6 +28,7 @@
- #ifndef _LINALG_V3_T_H_
- #define _LINALG_V3_T_H_
-
-+#include <cmath>
-
- template<class T> class v3t;
- #ifndef _MSC_VER
---- src/libs/portability/portability.h.orig 2012-03-30 18:03:35.047110686 -0500
-+++ src/libs/portability/portability.h 2012-03-30 18:10:19.171475549 -0500
-@@ -22,10 +22,13 @@
-
- #include <cstdlib>
- #include <cstring>
-+
- #ifdef _MSC_VER
- #include <direct.h>
- #include <process.h>
- #define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */
-+#else
-+#include <unistd.h>
- #endif
-
- #ifdef _MSC_VER
diff --git a/games/speed-dreams/slack-desc b/games/speed-dreams/slack-desc
index 778904a220ce3..8ba6de8139541 100644
--- a/games/speed-dreams/slack-desc
+++ b/games/speed-dreams/slack-desc
@@ -6,14 +6,14 @@
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
-speed-dreams: speed-dreams (racing car simulator)
-speed-dreams:
-speed-dreams: Speed Dreams is a fork of the famous open racing car simulator
-speed-dreams: Torcs, aiming to implement exciting new features, cars, tracks
-speed-dreams: and AI opponents to make a more enjoyable game for the player,
-speed-dreams: as well as constantly improving visual and physics realism.
+speed-dreams: Speed Dreams is a fork of the famous open racing car simulator Torcs,
+speed-dreams: aiming to implement exciting new features, cars, tracks and AI
+speed-dreams: opponents to make a more enjoyable game for the player, as well as
+speed-dreams: constantly improving visual and physics realism.
speed-dreams:
speed-dreams:
speed-dreams: Homepage: http://www.speed-dreams.org/
speed-dreams:
speed-dreams:
+speed-dreams:
+speed-dreams:
diff --git a/games/speed-dreams/speed-dreams.SlackBuild b/games/speed-dreams/speed-dreams.SlackBuild
index 2fee78fa89e14..7ca91ee52d596 100644
--- a/games/speed-dreams/speed-dreams.SlackBuild
+++ b/games/speed-dreams/speed-dreams.SlackBuild
@@ -4,7 +4,7 @@
# written by powtrix (@gmail.com)
PRGNAM=speed-dreams
-VERSION=2.0.0_rc1_r4420
+VERSION=2.0.0_r4687
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -49,11 +49,13 @@ tar xvf $CWD/$PRGNAM-src-base-$SRCVERSION.tar.xz
tar xvf $CWD/$PRGNAM-src-hq-cars-and-tracks-$SRCVERSION.tar.xz
tar xvf $CWD/$PRGNAM-src-more-hq-cars-and-tracks-$SRCVERSION.tar.xz
tar xvf $CWD/$PRGNAM-src-wip-cars-and-tracks-$SRCVERSION.tar.xz
+tar xvf $CWD/$PRGNAM-src-unmaintained-$SRCVERSION.tar.xz
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-patch -p0 < $CWD/gcc47.patch
+mkdir build
+cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
@@ -62,9 +64,17 @@ cmake \
-DCMAKE_INSTALL_PREFIX:STRING=/usr \
-DCMAKE_PREFIX_PATH:STRING=/usr \
-DOPTION_OFFICIAL_ONLY:BOOL=ON \
- -DOPTION_DEBUG:BOOL=OFF .
+ -DOPTION_DEBUG:BOOL=OFF ..
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
+
+mv $PKG/usr/{share/,}man
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/share/pixmaps
cp -a $CWD/$PRGNAM.xpm $PKG/usr/share/pixmaps
@@ -80,7 +90,6 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/games/speed-dreams/speed-dreams.info b/games/speed-dreams/speed-dreams.info
index db3cb558a25db..eac5b9cff7d90 100644
--- a/games/speed-dreams/speed-dreams.info
+++ b/games/speed-dreams/speed-dreams.info
@@ -1,14 +1,18 @@
PRGNAM="speed-dreams"
-VERSION="2.0.0_rc1_r4420"
+VERSION="2.0.0_r4687"
HOMEPAGE="http://www.speed-dreams.org/"
-DOWNLOAD="http://sourceforge.net/projects/speed-dreams/files/2.0.0/speed-dreams-src-base-2.0.0-rc1-r4420.tar.xz \
-http://sourceforge.net/projects/speed-dreams/files/2.0.0/speed-dreams-src-wip-cars-and-tracks-2.0.0-rc1-r4420.tar.xz \
-http://sourceforge.net/projects/speed-dreams/files/2.0.0/speed-dreams-src-hq-cars-and-tracks-2.0.0-rc1-r4420.tar.xz \
-http://sourceforge.net/projects/speed-dreams/files/2.0.0/speed-dreams-src-more-hq-cars-and-tracks-2.0.0-rc1-r4420.tar.xz"
-MD5SUM="bce029b4519d590dfa35ed83348475cd \
- f4d155ff8463c61860f767823ae314ad \
- 9f7bbb22fbc1c18548ae616dfc06f0b0 \
- ca6edc5a2f420214e826e8d112967495"
+DOWNLOAD="\
+ http://downloads.sf.net/speed-dreams/speed-dreams-src-base-2.0.0-r4687.tar.xz \
+ http://downloads.sf.net/speed-dreams/speed-dreams-src-wip-cars-and-tracks-2.0.0-r4687.tar.xz \
+ http://downloads.sf.net/speed-dreams/speed-dreams-src-hq-cars-and-tracks-2.0.0-r4687.tar.xz \
+ http://downloads.sf.net/speed-dreams/speed-dreams-src-more-hq-cars-and-tracks-2.0.0-r4687.tar.xz \
+ http://downloads.sf.net/speed-dreams/speed-dreams-src-unmaintained-2.0.0-r4687.tar.xz"
+MD5SUM="\
+ a6842887fc289ed6057be2ba9d2afaa2 \
+ edcc842291737dbb13a3083252bf51d4 \
+ 57cf5c475491294ce1fb249e2dc0273b \
+ c8ab7ef068fa3fbe67d2b3246b30ea8a \
+ 8505c46aae6ce56a43353b8899d40ce4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="OpenAL enet plib"