diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2013-11-18 18:29:01 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-19 01:10:58 -0600 |
commit | 83940e056e4dc987a0f61cf79bbc3316e0e5e3d7 (patch) | |
tree | d1327d6e5427cda4db246505c4b5afae0f1af8e7 /games/fgrun | |
parent | bcdc93d0d4cb91d7418c5c6c9654c733fc616c6f (diff) |
games/fgrun: Updated for version 20131117_973f772.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/fgrun')
-rw-r--r-- | games/fgrun/fgrun-1.6.2-fix-reloadpath-logic.patch | 29 | ||||
-rw-r--r-- | games/fgrun/fgrun.SlackBuild | 44 | ||||
-rw-r--r-- | games/fgrun/fgrun.info | 8 | ||||
-rw-r--r-- | games/fgrun/patches/fgrun-1.6.1-fix-crash-when-setting-defaults.patch (renamed from games/fgrun/fgrun-1.6.1-fix-crash-when-setting-defaults.patch) | 0 | ||||
-rw-r--r-- | games/fgrun/patches/fgrun-1.6.2-fix-reloadpath-logic.patch | 11 | ||||
-rw-r--r-- | games/fgrun/patches/fgrun-1.7.0-update-required-SimGear-version.patch | 25 |
6 files changed, 67 insertions, 50 deletions
diff --git a/games/fgrun/fgrun-1.6.2-fix-reloadpath-logic.patch b/games/fgrun/fgrun-1.6.2-fix-reloadpath-logic.patch deleted file mode 100644 index 0fb90069281da..0000000000000 --- a/games/fgrun/fgrun-1.6.2-fix-reloadpath-logic.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- fgrun-1.6.2/src/wizard_funcs.cxx.orig 2012-09-11 14:57:53.176639212 +0200 -+++ fgrun-1.6.2/src/wizard_funcs.cxx 2012-09-11 15:11:35.995000085 +0200 -@@ -296,7 +296,7 @@ - { - fg_scenery = buf; - } -- else if (reloadPath && systemPrefs.get( "fg_scenery", buf, "", buflen-1)) -+ else if (systemPrefs.get( "fg_scenery", buf, "", buflen-1)) - { - fg_scenery = buf; - prefs.set("fg_scenery", buf); -@@ -338,7 +338,7 @@ - { - ts_dir = iVal; - } -- else if (reloadPath && systemPrefs.get("ts_dir", iVal, 0)) -+ else if (systemPrefs.get("ts_dir", iVal, 0)) - { - prefs.set("ts_dir", ts_dir); - systemPrefs.get("ts_dir_init", iVal, 0); -@@ -353,7 +353,7 @@ - { - ts_exe_->value(buf); - } -- else if (reloadPath && systemPrefs.get( "ts_exe", buf, "", buflen-1)) -+ else if (systemPrefs.get( "ts_exe", buf, "", buflen-1)) - { - ts_exe_->value( buf ); - prefs.set("ts_exe", buf); diff --git a/games/fgrun/fgrun.SlackBuild b/games/fgrun/fgrun.SlackBuild index e0b2e1523d487..d9774ece8ae7c 100644 --- a/games/fgrun/fgrun.SlackBuild +++ b/games/fgrun/fgrun.SlackBuild @@ -3,8 +3,8 @@ # Written by Diego Pantano <poplin.dp@gmail.com> PRGNAM=fgrun -VERSION=${VERSION:-1.6.2} -BUILD=${BUILD:-2} +VERSION=${VERSION:-20131117_973f772} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -40,18 +40,30 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $PRGNAM-$VERSION chown -R root:root . -find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Fix a few bugs. -patch -p1 < $CWD/fgrun-1.6.1-fix-crash-when-setting-defaults.patch -patch -p1 < $CWD/fgrun-1.6.2-fix-reloadpath-logic.patch +patch -p1 < $CWD/patches/fgrun-1.6.1-fix-crash-when-setting-defaults.patch +patch -p1 < $CWD/patches/fgrun-1.6.2-fix-reloadpath-logic.patch +patch -p1 < $CWD/patches/fgrun-1.7.0-update-required-SimGear-version.patch + +sed \ + -e "s|fltk-config|fltk13-config|" \ + -e "s|fluid|fluid13|" \ + -e "s|\${CMAKE_CURRENT_LIST_DIR}|/usr/share/cmake-2.8/Modules|" \ + /usr/share/cmake-2.8/Modules/FindFLTK.cmake \ + > CMakeModules/FindFLTK13.cmake +sed -i \ + -e "s|FLTK\ REQUIRED|FLTK13\ REQUIRED|" \ + -e "s|FLTK_FOUND|FLTK13_FOUND|" \ + CMakeLists.txt mkdir -p build cd build @@ -59,19 +71,17 @@ cd build -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DSIMGEAR_SHARED=ON \ -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG cd .. -mkdir -p $PKG/etc/fltk/flightgear.org -install -m 0644 $CWD/fgrun.prefs $PKG/etc/fltk/flightgear.org/fgrun.prefs.new - -mkdir -p $PKG/usr/share/{applications,pixmaps} -install -m 0644 $CWD/fgrun.desktop $PKG/usr/share/applications/ -install -m 0644 $CWD/fgrun.png $PKG/usr/share/pixmaps/ +install -m 0644 -D $CWD/fgrun.prefs $PKG/etc/fltk/flightgear.org/fgrun.prefs.new +install -m 0644 -D $CWD/fgrun.desktop $PKG/usr/share/applications/fgrun.desktop +install -m 0644 -D $CWD/fgrun.png $PKG/usr/share/pixmaps/fgrun.png -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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/games/fgrun/fgrun.info b/games/fgrun/fgrun.info index 83748eec01bc0..3c972c0a194af 100644 --- a/games/fgrun/fgrun.info +++ b/games/fgrun/fgrun.info @@ -1,10 +1,10 @@ PRGNAM="fgrun" -VERSION="1.6.2" +VERSION="20131117_973f772" HOMEPAGE="http://sourceforge.net/projects/fgrun/" -DOWNLOAD="http://downloads.sourceforge.net/fgrun/fgrun-1.6.2.tar.bz2" -MD5SUM="683c0f97be2163e85a518ee706d92177" +DOWNLOAD="http://ponce.cc/slackware/sources/repo/fgrun-20131117_973f772.tar.xz" +MD5SUM="05dbca9d72ca4c96ee97642c81ef4e82" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="fltk" +REQUIRES="fltk13 FlightGear" MAINTAINER="Diego Pantano" EMAIL="poplin_dp@gmail.com" diff --git a/games/fgrun/fgrun-1.6.1-fix-crash-when-setting-defaults.patch b/games/fgrun/patches/fgrun-1.6.1-fix-crash-when-setting-defaults.patch index 52b56d4055c6b..52b56d4055c6b 100644 --- a/games/fgrun/fgrun-1.6.1-fix-crash-when-setting-defaults.patch +++ b/games/fgrun/patches/fgrun-1.6.1-fix-crash-when-setting-defaults.patch diff --git a/games/fgrun/patches/fgrun-1.6.2-fix-reloadpath-logic.patch b/games/fgrun/patches/fgrun-1.6.2-fix-reloadpath-logic.patch new file mode 100644 index 0000000000000..fb5622d872868 --- /dev/null +++ b/games/fgrun/patches/fgrun-1.6.2-fix-reloadpath-logic.patch @@ -0,0 +1,11 @@ +--- fgrun-1.6.2/src/wizard_funcs.cxx.orig 2012-09-11 14:57:53.176639212 +0200 ++++ fgrun-1.6.2/src/wizard_funcs.cxx 2012-09-11 15:11:35.995000085 +0200 +@@ -296,7 +296,7 @@ + { + fg_scenery = buf; + } +- else if (reloadPath && systemPrefs.get( "fg_scenery", buf, "", buflen-1)) ++ else if (systemPrefs.get( "fg_scenery", buf, "", buflen-1)) + { + fg_scenery = buf; + prefs.set("fg_scenery", buf); diff --git a/games/fgrun/patches/fgrun-1.7.0-update-required-SimGear-version.patch b/games/fgrun/patches/fgrun-1.7.0-update-required-SimGear-version.patch new file mode 100644 index 0000000000000..9f37d95b25937 --- /dev/null +++ b/games/fgrun/patches/fgrun-1.7.0-update-required-SimGear-version.patch @@ -0,0 +1,25 @@ +From 436f659bdcef3726ece7928e221ba7ea7805381e Mon Sep 17 00:00:00 2001 +From: Fabrice Bellet <fabrice@bellet.info> +Date: Sun, 22 Sep 2013 12:55:33 +0200 +Subject: [PATCH 5/5] Update required SimGear version + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index aa95c59..4b6fea5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -131,7 +131,7 @@ find_package(Boost REQUIRED) + find_package(ZLIB REQUIRED) + find_package(FLTK REQUIRED) + find_package(OpenSceneGraph 2.8.1 REQUIRED osgText osgDB osgParticle osgUtil osgViewer osgGA) +-find_package(SimGear 2.8.0 REQUIRED) ++find_package(SimGear 2.12.0 REQUIRED) + if (ENABLE_NLS) + find_package(Gettext) + endif (ENABLE_NLS) +-- +1.8.3.1 + |