Ticket #13684: boost.patch

File boost.patch, 2.2 KB (added by freespace+macforge@…, 17 years ago)

svn diff

  • Portfile

     
    2727
    2828platform darwin {
    2929        post-destroot {
    30                 cd ${destroot}${prefix}/lib
    3130
    3231                # get the library version as it shows up in the library names:
    3332                # eg. 1_34_1
     
    3635                # ensure the identification name of the dynamic libraries agree
    3736                # with their final destination path (not the destroot path that
    3837                # they've just been installed to)
    39                 foreach lib [glob *-${libver}.dylib] {
     38                foreach lib [glob -directory ${destroot}${prefix}/lib/ *-${libver}.dylib] {
    4039                        system "install_name_tool -id ${prefix}/lib/${lib} ${lib}"
    4140                }
    4241
    4342                # create relative symbolic links to the versioned libraries (.dylib only;
    4443                # .a were built with unversioned extensions that are duplicate files of the
    4544                # versioned extensions... handled next)
    46                 foreach lib [glob *-${libver}.dylib] {
     45                foreach lib [glob -directory ${destroot}${prefix}/lib/ *-${libver}.dylib] {
    4746                        set libname [join [lrange [split [file rootname ${lib}] {-}] 0 end-1] {-}]
    4847                        set libext [file extension ${lib}]
    4948                        set liblink "${libname}${libext}"
     
    5251                                        file delete -force ${liblink}
    5352                                }
    5453                        }
    55                         system "ln -s ${lib} ${liblink}"
     54                        system "cd  ${destroot}${prefix}/lib;ln -s ${lib} ${liblink}"
    5655                }
    5756
    5857                # change the duplicated non-version-named .a libraries to
    5958                # symbolic links to the version-named .a libraries
    60                 foreach lib [glob *-${libver}.a] {
     59                foreach lib [glob -directory ${destroot}${prefix}/lib/ *-${libver}.a] {
    6160                        set libname [join [lrange [split [file rootname ${lib}] {-}] 0 end-1] {-}]
    6261                        set libext [file extension ${lib}]
    6362                        set liblink "${libname}${libext}"
     
    6665                                file delete -force ${liblink}
    6766                        }
    6867                        # add a symbolic link instead
    69                         system "ln -s ${lib} ${liblink}"
     68                        system "cd  ${destroot}${prefix}/lib; ln -s ${lib} ${liblink}"
    7069                }
    7170               
    7271                # create a symbolic link in the include directory pointing to the current
    7372                # version of the boost include directory (e.g. boost-1_34_1/boost -> include/boost)
    74                 system "ln -fs boost-${libver}/boost ${destroot}${prefix}/include/boost"
     73                system "cd  ${destroot}${prefix}/lib; ln -fs boost-${libver}/boost ${destroot}${prefix}/include/boost"
    7574        }
    7675}
    7776