91 | | system "install_name_tool -id ${prefix}/lib/R/lib/libR.dylib \ |
92 | | ${destroot}${prefix}/lib/R/lib/libR.dylib" |
93 | | system "install_name_tool -change libRblas.dylib ${prefix}/lib/R/lib/libRblas.dylib \ |
94 | | ${destroot}${prefix}/lib/R/lib/libR.dylib" |
95 | | |
96 | | system "install_name_tool -id ${prefix}/lib/R/lib/libRblas.dylib \ |
97 | | ${destroot}${prefix}/lib/R/lib/libRblas.dylib" |
98 | | |
99 | | system "install_name_tool -id ${prefix}/lib/R/lib/libRlapack.dylib \ |
100 | | ${destroot}${prefix}/lib/R/lib/libRlapack.dylib" |
101 | | system "install_name_tool -change libRblas.dylib ${prefix}/lib/R/lib/libRblas.dylib \ |
102 | | ${destroot}${prefix}/lib/R/lib/libRlapack.dylib" |
103 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
104 | | ${destroot}${prefix}/lib/R/lib/libRlapack.dylib" |
105 | | |
106 | | foreach so [ exec find ${destroot}${prefix}/lib/R -name "\*.so" ] { |
107 | | regsub ":$" ${so} "" destroot_so_path |
108 | | regsub ${destroot} ${destroot_so_path} "" so_path |
109 | | system "install_name_tool -id ${so_path} ${destroot_so_path}" |
110 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib ${destroot_so_path}" |
111 | | } |
| 99 | platform darwin 8 { |
| 100 | post-destroot { |
| 101 | foreach r { "/bin/R" "/lib/R/bin/R" } { |
| 102 | foreach dir { "R_HOME_DIR" "R_SHARE_DIR" "R_INCLUDE_DIR" "R_DOC_DIR" } { |
| 103 | reinplace "s|${dir}=${destroot}|${dir}=|" \ |
| 104 | "${destroot}${prefix}${r}" |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | foreach v { "rhome" "rincludedir"} { |
| 109 | reinplace "s|${v}=${destroot}|${v}=|" "${destroot}${prefix}/lib/pkgconfig/libR.pc" |
| 110 | } |
| 111 | |
| 112 | system "install_name_tool -id ${prefix}/lib/R/lib/libR.dylib \ |
| 113 | ${destroot}${prefix}/lib/R/lib/libR.dylib" |
| 114 | system "install_name_tool -change libRblas.dylib ${prefix}/lib/R/lib/libRblas.dylib \ |
| 115 | ${destroot}${prefix}/lib/R/lib/libR.dylib" |
| 116 | |
| 117 | system "install_name_tool -id ${prefix}/lib/R/lib/libRblas.dylib \ |
| 118 | ${destroot}${prefix}/lib/R/lib/libRblas.dylib" |
| 119 | |
| 120 | system "install_name_tool -id ${prefix}/lib/R/lib/libRlapack.dylib \ |
| 121 | ${destroot}${prefix}/lib/R/lib/libRlapack.dylib" |
| 122 | system "install_name_tool -change libRblas.dylib ${prefix}/lib/R/lib/libRblas.dylib \ |
| 123 | ${destroot}${prefix}/lib/R/lib/libRlapack.dylib" |
| 124 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
| 125 | ${destroot}${prefix}/lib/R/lib/libRlapack.dylib" |
| 126 | |
| 127 | foreach so [ exec find ${destroot}${prefix}/lib/R -name "\*.so" ] { |
| 128 | regsub ":$" ${so} "" destroot_so_path |
| 129 | regsub ${destroot} ${destroot_so_path} "" so_path |
| 130 | system "install_name_tool -id ${so_path} ${destroot_so_path}" |
| 131 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
| 132 | ${destroot_so_path}" |
| 133 | } |
| 134 | } |