aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-14 21:36:21 +0200
committerMatteo Bernardini <ponce@slackbuilds.org>2012-09-14 21:37:03 +0200
commit072e6aed00d0bf504021a2fcdf60110cf991a65e (patch)
tree67174fe85fb64b13bf82b352f9621334c5cb2f7e /games
parent9c207b843dec709b001a2363b6e1ca0a2fb42a84 (diff)
games/FlightGear: Updated for version 2.8.0 (switched to cmake).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/FlightGear/FlightGear.SlackBuild46
-rw-r--r--games/FlightGear/FlightGear.info6
-rw-r--r--games/FlightGear/slack-desc2
3 files changed, 26 insertions, 28 deletions
diff --git a/games/FlightGear/FlightGear.SlackBuild b/games/FlightGear/FlightGear.SlackBuild
index 54a94a97df097..b98c0f4235d3a 100644
--- a/games/FlightGear/FlightGear.SlackBuild
+++ b/games/FlightGear/FlightGear.SlackBuild
@@ -3,7 +3,8 @@
# Written by Diego Pantano <poplin.dp@gmail.com>
PRGNAM=FlightGear
-VERSION=${VERSION:-2.0.0}
+SRCNAM=flightgear
+VERSION=${VERSION:-2.8.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,9 +42,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.?z*
+cd $SRCNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -51,29 +52,26 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --with-eventinput \
- --with-x \
- --build=$ARCH-slackware-linux
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DEVENT_INPUT:STRING="ON" \
+ -DFG_DATA_DIR=/usr/share/${PRGNAM} \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
-make
-make install DESTDIR=$PKG
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+mv $PKG/usr/share/man $PKG/usr/man
+rm -fr $PKG/usr/share
+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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
diff --git a/games/FlightGear/FlightGear.info b/games/FlightGear/FlightGear.info
index 329c9521c72a9..df73eec844ad9 100644
--- a/games/FlightGear/FlightGear.info
+++ b/games/FlightGear/FlightGear.info
@@ -1,8 +1,8 @@
PRGNAM="FlightGear"
-VERSION="2.0.0"
+VERSION="2.8.0"
HOMEPAGE="http://www.flightgear.org/"
-DOWNLOAD="ftp://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/FlightGear-2.0.0.tar.gz"
-MD5SUM="549aa45171480082f5b6e5e8d5ce8930"
+DOWNLOAD="ftp://ftp.linux.kiev.ua/pub/mirrors/ftp.flightgear.org/flightgear/Source/flightgear-2.8.0.tar.bz2"
+MD5SUM="9499194146f414323efef8cb3451b750"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="FlightGear-data SimGear"
diff --git a/games/FlightGear/slack-desc b/games/FlightGear/slack-desc
index e6a2791dab3bd..5b0d8d5956399 100644
--- a/games/FlightGear/slack-desc
+++ b/games/FlightGear/slack-desc
@@ -11,9 +11,9 @@ FlightGear:
FlightGear: The FlightGear flight simulator project is an open-source,
FlightGear: multi-platform, cooperative flight simulator development project.
FlightGear:
+FlightGear: http://www.flightgear.org/
FlightGear:
FlightGear:
FlightGear:
FlightGear:
-FlightGear: http://www.flightgear.org/
FlightGear: