Ticket #15174: Portfile-boost.diff

File Portfile-boost.diff, 2.3 KB (added by sanchom (Sancho McCann), 16 years ago)

Unified diff to upgrade the portfile

  • (a) /Users/sanchom/Desktop/Portfile.orig vs. (b) Portfile

    a b  
    33PortSystem 1.0
    44
    55name                    boost
    6 version                 1.34.1
    7 revision                3
     6version                 1.35.0
     7revision                0
    88categories              devel
    99maintainers             sanchom@gmail.com
    1010description             Collection of portable C++ source libraries
     
    1515master_sites            sourceforge
    1616distname                ${name}_[strsed ${version} {g/[.]/_/}]
    1717use_bzip2               yes
    18 checksums               md5 2d938467e8a448a2c9763e0a9f8ca7e5
     18checksums               md5 dce952a7214e72d6597516bcac84048b
    1919platforms               darwin
    2020
     21patchfiles              patch-tools-build-v2-tools-darwin.jam \
     22                        patch-boost-serialization-utility.hpp
     23
    2124depends_build           bin:bjam:boost-jam
    2225
    2326platform darwin 9 {
     
    2932        post-destroot {
    3033
    3134                # 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] {_}]
    3438               
    3539                # ensure the identification name of the dynamic libraries agree
    3640                # with their final destination path (not the destroot path that
     
    3943                        set libtail [file tail ${lib}]
    4044                        system "install_name_tool -id ${prefix}/lib/${libtail} ${lib}"
    4145                }
     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                }
    4255
    4356                # create relative symbolic links to the versioned libraries (.dylib only;
    4457                # .a were built with unversioned extensions that are duplicate files of the
     
    7487                }
    7588               
    7689                # create a symbolic link in the include directory pointing to the current
    77                 # version of the boost include directory (e.g. boost-1_34_1/boost -> include/boost)
     90                # version of the boost include directory (e.g. boost-1_35/boost -> include/boost)
    7891                system "cd  ${destroot}${prefix}/lib; ln -fs boost-${libver}/boost ${destroot}${prefix}/include/boost"
    7992        }
    8093}