Ticket #15174: Portfile-boost.diff
File Portfile-boost.diff, 2.3 KB (added by sanchom (Sancho McCann), 17 years ago) |
---|
-
(a) /Users/sanchom/Desktop/Portfile.orig vs. (b) Portfile
a b 3 3 PortSystem 1.0 4 4 5 5 name boost 6 version 1.3 4.17 revision 36 version 1.35.0 7 revision 0 8 8 categories devel 9 9 maintainers sanchom@gmail.com 10 10 description Collection of portable C++ source libraries … … 15 15 master_sites sourceforge 16 16 distname ${name}_[strsed ${version} {g/[.]/_/}] 17 17 use_bzip2 yes 18 checksums md5 2d938467e8a448a2c9763e0a9f8ca7e518 checksums md5 dce952a7214e72d6597516bcac84048b 19 19 platforms darwin 20 20 21 patchfiles patch-tools-build-v2-tools-darwin.jam \ 22 patch-boost-serialization-utility.hpp 23 21 24 depends_build bin:bjam:boost-jam 22 25 23 26 platform darwin 9 { … … 29 32 post-destroot { 30 33 31 34 # get the library version as it shows up in the library names: 32 # eg. 1_34_1 33 set libver [join [lrange [split ${version} {.}] 0 2] {_}] 35 # eg. 1_35 36 # this should be ...] 0 2] {_}] when 1_35_1 and later come out 37 set libver [join [lrange [split ${version} {.}] 0 1] {_}] 34 38 35 39 # ensure the identification name of the dynamic libraries agree 36 40 # with their final destination path (not the destroot path that … … 39 43 set libtail [file tail ${lib}] 40 44 system "install_name_tool -id ${prefix}/lib/${libtail} ${lib}" 41 45 } 46 # set the install_name for every library referenced by another library 47 # to include the final destination path as well 48 foreach lib [glob -directory ${destroot}${prefix}/lib/ *-${libver}.dylib] { 49 set libtail [file tail ${lib}] 50 set installed_name ${prefix}/lib/${libtail} 51 foreach lib2 [glob -directory ${destroot}${prefix}/lib/ *-${libver}.dylib] { 52 system "install_name_tool -change ${libtail} ${installed_name} ${lib2}" 53 } 54 } 42 55 43 56 # create relative symbolic links to the versioned libraries (.dylib only; 44 57 # .a were built with unversioned extensions that are duplicate files of the … … 74 87 } 75 88 76 89 # create a symbolic link in the include directory pointing to the current 77 # version of the boost include directory (e.g. boost-1_3 4_1/boost -> include/boost)90 # version of the boost include directory (e.g. boost-1_35/boost -> include/boost) 78 91 system "cd ${destroot}${prefix}/lib; ln -fs boost-${libver}/boost ${destroot}${prefix}/include/boost" 79 92 } 80 93 }