[Lunar-commits] <moonbase-other> wesnoth: clean BUILD file
v4hn
me at v4hn.de
Fri Mar 22 16:20:18 CET 2013
commit 41afbe80bea7ab77517e6734f16733cf60be39bd
Author: v4hn <me at v4hn.de>
Date: Fri, 22 Mar 2013 08:20:18 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/41afbe80bea7ab77517e6734f16733cf60be39bd
wesnoth: clean BUILD file
---
games/wesnoth/BUILD | +21/-24
1 file changed, 21 insertions(+), 24 deletions(-)
--- a/games/wesnoth/BUILD
+++ b/games/wesnoth/BUILD
@@ -1,28 +1,25 @@
-(
+# this seems to be a bad bug in boost
+# see https://svn.boost.org/trac/boost/ticket/6131
+# the following is based on an 12000 lines ArchLinux patch
+for file in $(grep -l foreach -r . | grep "cpp\$\|hpp$"); do
+ sedit "/#include/ ! s:foreach:BOOST_FOREACH:g" $file &&
+ sedit "s:#include \".*foreach.hpp\":#include <boost/foreach.hpp>:" $file
+done &&
- # this seems to be a bad bug in boost
- # see https://svn.boost.org/trac/boost/ticket/6131
- # the following is based on an 12000 lines ArchLinux patch
- for file in $(grep -l foreach -r . | grep "cpp\$\|hpp$"); do
- sedit "/#include/ ! s:foreach:BOOST_FOREACH:g" $file &&
- sedit "s:#include \".*foreach.hpp\":#include <boost/foreach.hpp>:" $file
- done &&
+OPTS+=" -DBINDIR=games \
+ -DDATAROOTDIR=${MODULE_PREFIX}/share/games/ \
+ -DDESKTOPDIR=${MODULE_PREFIX}/share/applications \
+ -DICONDIR=${MODULE_PREFIX}/share/pixmaps \
+ -DMANDIR=${MODULE_PREFIX}/share/man \
+ -DDOCDIR=${MODULE_PREFIX}/share/doc/$MODULE" &&
- OPTS+=" -DBINDIR=games \
- -DDATAROOTDIR=${MODULE_PREFIX}/share/games/ \
- -DDESKTOPDIR=${MODULE_PREFIX}/share/applications \
- -DICONDIR=${MODULE_PREFIX}/share/pixmaps \
- -DMANDIR=${MODULE_PREFIX}/share/man \
- -DDOCDIR=${MODULE_PREFIX}/doc/$MODULE"
+# fribidi is obsolete and would require 0.10.*
+OPTS+=" -DENABLE_FRIBIDI=OFF" &&
- # fribidi is obsolete and would require 0.10.*
- OPTS+=" -DENABLE_FRIBIDI=OFF"
+if ! in_depends pango cairo; then
+ message "${PROBLEM_COLOR}Wesnoth requires pango to be build with cairo backend."
+ message "${PROBLEM_COLOR}Please rebuild pango and select cairo backend."
+ exit 1
+fi &&
- if ! in_depends pango cairo; then
- message "${PROBLEM_COLOR}Wesnoth requires pango to be build with cairo backend."
- message "${PROBLEM_COLOR}Please rebuild pango and select cairo backend."
- exit 1
- fi
-
- default_cmake_build
-) > $C_FIFO 2>&1
+default_cmake_build
More information about the Lunar-commits
mailing list