--- /Users/sanchom/Desktop/Portfile.orig	2008-05-02 10:50:02.000000000 -0700
+++ Portfile	2008-05-02 12:05:43.000000000 -0700
@@ -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@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"
 	}
 }

