[Lunar-commits] <moonbase-other> ufoai: fix build with gcc 4.8

v4hn me at v4hn.de
Wed May 8 00:28:23 CEST 2013


commit b844bb35529e45d54643c9a5201c3b2a73be17a1
Author: v4hn <me at v4hn.de>
Date: Tue, 07 May 2013 15:28:04 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/b844bb35529e45d54643c9a5201c3b2a73be17a1

ufoai: fix build with gcc 4.8
---
  games/ufoai/BUILD | +20/-20   
  1 file changed, 20 insertions(+), 20 deletions(-)

--- a/games/ufoai/BUILD
+++ b/games/ufoai/BUILD
@@ -1,24 +1,24 @@
-(
+sedit "/^}$/d; /enum CameraDrawMode/ i }\n" src/tools/radiant/radiant/camera/CameraSettings.h &&
 
-  ./configure  --prefix=/usr                  \
-               --bindir=/usr/games            \
-               --libdir=/usr/lib              \
-               --datadir=/usr/share/games/ufoai \
-               --localedir=/usr/share/games/ufoai/base/i18n  \
-               $OPTS                         &&
+# configure is a bit 'special'
+./configure  --prefix=/usr                  \
+             --bindir=/usr/games            \
+             --libdir=/usr/lib              \
+             --datadir=/usr/share/games/ufoai \
+             --localedir=/usr/share/games/ufoai/base/i18n  \
+	     --enable-release               \
+             $OPTS                         &&
 
-  default_make &&
+default_make &&
 
-  install -m644 debian/ufoai.desktop debian/ufoded.desktop /usr/share/applications &&
-  install -m644 debian/ufoai.xpm debian/ufoded.xpm /usr/share/pixmaps &&
-  install -m644 debian/ufo.6 debian/ufoded.6 /usr/share/man/man6 &&
+install -m644 debian/ufoai.desktop debian/ufoded.desktop /usr/share/applications &&
+install -m644 debian/ufoai.xpm debian/ufoded.xpm /usr/share/pixmaps &&
+install -m644 debian/ufo.6 debian/ufoded.6 /usr/share/man/man6 &&
 
-  if [[ "$RADIANT" != "y" ]]; then
-    rm -f /usr/games/uforadiant
-  else
-    install -m644 debian/uforadiant.desktop /usr/share/applications &&
-    install -m644 debian/uforadiant.xpm /usr/share/pixmaps &&
-    install -m644 debian/uforadiant.xpm /usr/share/man/man6
-  fi
-
-) > $C_FIFO 2>&1
+if [[ "$RADIANT" != "y" ]]; then
+  rm -f /usr/games/uforadiant
+else
+  install -m644 debian/uforadiant.desktop /usr/share/applications &&
+  install -m644 debian/uforadiant.xpm /usr/share/pixmaps &&
+  install -m644 debian/uforadiant.xpm /usr/share/man/man6
+fi




More information about the Lunar-commits mailing list