[36473] trunk/dports/devel/boost
jmr at macports.org
jmr at macports.org
Sat May 3 17:29:06 PDT 2008
Revision: 36473
http://trac.macosforge.org/projects/macports/changeset/36473
Author: jmr at macports.org
Date: 2008-05-03 17:29:05 -0700 (Sat, 03 May 2008)
Log Message:
-----------
boost: update to version 1.35, from maintainer in #15174.
Modified Paths:
--------------
trunk/dports/devel/boost/Portfile
Added Paths:
-----------
trunk/dports/devel/boost/files/
trunk/dports/devel/boost/files/patch-boost-serialization-utility.hpp
trunk/dports/devel/boost/files/patch-tools-build-v2-tools-darwin.jam
Modified: trunk/dports/devel/boost/Portfile
===================================================================
--- trunk/dports/devel/boost/Portfile 2008-05-04 00:24:28 UTC (rev 36472)
+++ trunk/dports/devel/boost/Portfile 2008-05-04 00:29:05 UTC (rev 36473)
@@ -3,8 +3,8 @@
PortSystem 1.0
name boost
-version 1.34.1
-revision 3
+version 1.35.0
+revision 0
categories devel
maintainers sanchom at gmail.com
description Collection of portable C++ source libraries
@@ -15,9 +15,12 @@
master_sites sourceforge
distname ${name}_[strsed ${version} {g/[.]/_/}]
use_bzip2 yes
-checksums md5 2d938467e8a448a2c9763e0a9f8ca7e5
+checksums md5 dce952a7214e72d6597516bcac84048b
platforms darwin
+patchfiles patch-tools-build-v2-tools-darwin.jam \
+ patch-boost-serialization-utility.hpp
+
depends_build bin:bjam:boost-jam
platform darwin 9 {
@@ -29,8 +32,9 @@
post-destroot {
# get the library version as it shows up in the library names:
- # eg. 1_34_1
- set libver [join [lrange [split ${version} {.}] 0 2] {_}]
+ # eg. 1_35
+ # this should be ...] 0 2] {_}] when 1_35_1 and later come out
+ set libver [join [lrange [split ${version} {.}] 0 1] {_}]
# ensure the identification name of the dynamic libraries agree
# with their final destination path (not the destroot path that
@@ -39,6 +43,15 @@
set libtail [file tail ${lib}]
system "install_name_tool -id ${prefix}/lib/${libtail} ${lib}"
}
+ # set the install_name for every library referenced by another library
+ # to include the final destination path as well
+ foreach lib [glob -directory ${destroot}${prefix}/lib/ *-${libver}.dylib] {
+ set libtail [file tail ${lib}]
+ set installed_name ${prefix}/lib/${libtail}
+ foreach lib2 [glob -directory ${destroot}${prefix}/lib/ *-${libver}.dylib] {
+ system "install_name_tool -change ${libtail} ${installed_name} ${lib2}"
+ }
+ }
# create relative symbolic links to the versioned libraries (.dylib only;
# .a were built with unversioned extensions that are duplicate files of the
@@ -74,7 +87,7 @@
}
# create a symbolic link in the include directory pointing to the current
- # version of the boost include directory (e.g. boost-1_34_1/boost -> include/boost)
+ # version of the boost include directory (e.g. boost-1_35/boost -> include/boost)
system "cd ${destroot}${prefix}/lib; ln -fs boost-${libver}/boost ${destroot}${prefix}/include/boost"
}
}
Added: trunk/dports/devel/boost/files/patch-boost-serialization-utility.hpp
===================================================================
--- trunk/dports/devel/boost/files/patch-boost-serialization-utility.hpp (rev 0)
+++ trunk/dports/devel/boost/files/patch-boost-serialization-utility.hpp 2008-05-04 00:29:05 UTC (rev 36473)
@@ -0,0 +1,10 @@
+--- boost/serialization/utility.hpp.orig 2008-05-02 12:01:05.000000000 -0700
++++ boost/serialization/utility.hpp 2008-05-02 12:01:21.000000000 -0700
+@@ -23,6 +23,7 @@
+ #include <boost/type_traits/remove_const.hpp>
+ #include <boost/serialization/nvp.hpp>
+ #include <boost/serialization/is_bitwise_serializable.hpp>
++#include <boost/mpl/and.hpp>
+
+ namespace boost {
+ namespace serialization {
Added: trunk/dports/devel/boost/files/patch-tools-build-v2-tools-darwin.jam
===================================================================
--- trunk/dports/devel/boost/files/patch-tools-build-v2-tools-darwin.jam (rev 0)
+++ trunk/dports/devel/boost/files/patch-tools-build-v2-tools-darwin.jam 2008-05-04 00:29:05 UTC (rev 36473)
@@ -0,0 +1,11 @@
+--- tools/build/v2/tools/darwin.jam.orig 2008-05-02 11:18:11.000000000 -0700
++++ tools/build/v2/tools/darwin.jam 2008-05-02 11:18:41.000000000 -0700
+@@ -206,7 +206,7 @@
+
+ actions link.dll bind LIBRARIES
+ {
+- $(CONFIG_COMMAND) -dynamiclib -install_name "$(<:B)$(<:S)" -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) $(FRAMEWORK_PATH) -framework$(_)$(FRAMEWORK:D=:S=) $(OPTIONS) $(USER_OPTIONS)
++ $(CONFIG_COMMAND) -headerpad_max_install_names -dynamiclib -install_name "$(<:B)$(<:S)" -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) $(FRAMEWORK_PATH) -framework$(_)$(FRAMEWORK:D=:S=) $(OPTIONS) $(USER_OPTIONS)
+ }
+
+ # We use libtool instead of ar to support universal binary linking
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080503/6fcb5aed/attachment-0001.html
More information about the macports-changes
mailing list