[71460] trunk/dports/games/wesnoth

ryandesign at macports.org ryandesign at macports.org
Mon Sep 13 08:39:33 PDT 2010


Revision: 71460
          http://trac.macports.org/changeset/71460
Author:   ryandesign at macports.org
Date:     2010-09-13 08:39:31 -0700 (Mon, 13 Sep 2010)
Log Message:
-----------
wesnoth: find Boost when prefix is not /opt/local

Modified Paths:
--------------
    trunk/dports/games/wesnoth/Portfile

Added Paths:
-----------
    trunk/dports/games/wesnoth/files/
    trunk/dports/games/wesnoth/files/patch-m4-boost.m4.diff

Modified: trunk/dports/games/wesnoth/Portfile
===================================================================
--- trunk/dports/games/wesnoth/Portfile	2010-09-13 15:14:20 UTC (rev 71459)
+++ trunk/dports/games/wesnoth/Portfile	2010-09-13 15:39:31 UTC (rev 71460)
@@ -39,13 +39,15 @@
                         port:gettext \
                         port:zlib
 
+patchfiles              patch-m4-boost.m4.diff
+
 configure.args          --with-freetype-prefix=${prefix} \
                         --with-libiconv-prefix=${prefix} \
                         --disable-desktop-entry \
                         --disable-sdltest \
                         --disable-python \
                         --disable-server \
-                        --with-boost=${prefix}/include/boost
+                        --with-boost=${prefix}
 
 platform macosx {
     pre-destroot {

Added: trunk/dports/games/wesnoth/files/patch-m4-boost.m4.diff
===================================================================
--- trunk/dports/games/wesnoth/files/patch-m4-boost.m4.diff	                        (rev 0)
+++ trunk/dports/games/wesnoth/files/patch-m4-boost.m4.diff	2010-09-13 15:39:31 UTC (rev 71460)
@@ -0,0 +1,18 @@
+--- m4/boost.m4.orig	2008-03-24 12:43:24.000000000 -0500
++++ m4/boost.m4	2010-09-13 10:32:57.000000000 -0500
+@@ -89,7 +89,6 @@
+ && B_V_MIN == $boost_version_minor \
+ && B_V_SUB < $boost_version_subminor)"
+     for boost_inc in "$with_boost/include" '' \
+-             /opt/local/include /usr/local/include /opt/include /usr/include \
+              "$with_boost" C:/Boost/include
+     do
+       test -e "$boost_inc" || continue
+@@ -269,7 +268,6 @@
+     boost_tmp_lib=$with_boost
+     test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
+     for boost_ldpath in "$boost_tmp_lib/lib" '' \
+-             /opt/local/lib /usr/local/lib /opt/lib /usr/lib \
+              "$with_boost" C:/Boost/lib /lib /usr/lib64 /lib64
+     do
+       test -e "$boost_ldpath" || continue
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100913/7565ba0f/attachment.html>


More information about the macports-changes mailing list