101 | | system "install_name_tool -id ${prefix}/lib/R/modules/R_X11.so \ |
102 | | ${destroot}${prefix}/lib/R/modules/R_X11.so" |
103 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
104 | | ${destroot}${prefix}/lib/R/modules/R_X11.so" |
105 | | system "install_name_tool -id ${prefix}/lib/R/modules/internet.so \ |
106 | | ${destroot}${prefix}/lib/R/modules/internet.so" |
107 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
108 | | ${destroot}${prefix}/lib/R/modules/internet.so" |
109 | | system "install_name_tool -id ${prefix}/lib/R/modules/lapack.so \ |
110 | | ${destroot}${prefix}/lib/R/modules/lapack.so" |
111 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
112 | | ${destroot}${prefix}/lib/R/modules/lapack.so" |
113 | | system "install_name_tool -id ${prefix}/lib/R/modules/vfonts.so \ |
114 | | ${destroot}${prefix}/lib/R/modules/vfonts.so" |
115 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
116 | | ${destroot}${prefix}/lib/R/modules/vfonts.so" |
117 | | system "install_name_tool -id ${prefix}/lib/R/library/tools/libs/tools.so \ |
118 | | ${destroot}${prefix}/lib/R/library/tools/libs/tools.so" |
119 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
120 | | ${destroot}${prefix}/lib/R/library/tools/libs/tools.so" |
121 | | system "install_name_tool -id ${prefix}/lib/R/library/spatial/libs/spatial.so \ |
122 | | ${destroot}${prefix}/lib/R/library/spatial/libs/spatial.so" |
123 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
124 | | ${destroot}${prefix}/lib/R/library/spatial/libs/spatial.so" |
125 | | system "install_name_tool -id ${prefix}/lib/R/library/class/libs/class.so \ |
126 | | ${destroot}${prefix}/lib/R/library/class/libs/class.so" |
127 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
128 | | ${destroot}${prefix}/lib/R/library/class/libs/class.so" |
129 | | system "install_name_tool -id ${prefix}/lib/R/library/lattice/libs/lattice.so \ |
130 | | ${destroot}${prefix}/lib/R/library/lattice/libs/lattice.so" |
131 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
132 | | ${destroot}${prefix}/lib/R/library/lattice/libs/lattice.so" |
133 | | system "install_name_tool -id ${prefix}/lib/R/library/tcltk/libs/tcltk.so \ |
134 | | ${destroot}${prefix}/lib/R/library/tcltk/libs/tcltk.so" |
135 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
136 | | ${destroot}${prefix}/lib/R/library/tcltk/libs/tcltk.so" |
137 | | system "install_name_tool -id ${prefix}/lib/R/library/survival/libs/survival.so \ |
138 | | ${destroot}${prefix}/lib/R/library/survival/libs/survival.so" |
139 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
140 | | ${destroot}${prefix}/lib/R/library/survival/libs/survival.so" |
141 | | system "install_name_tool -id ${prefix}/lib/R/library/stats/libs/stats.so \ |
142 | | ${destroot}${prefix}/lib/R/library/stats/libs/stats.so" |
143 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
144 | | ${destroot}${prefix}/lib/R/library/stats/libs/stats.so" |
145 | | system "install_name_tool -id ${prefix}/lib/R/library/KernSmooth/libs/KernSmooth.so \ |
146 | | ${destroot}${prefix}/lib/R/library/KernSmooth/libs/KernSmooth.so" |
147 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
148 | | ${destroot}${prefix}/lib/R/library/KernSmooth/libs/KernSmooth.so" |
149 | | system "install_name_tool -id ${prefix}/lib/R/library/mgcv/libs/mgcv.so \ |
150 | | ${destroot}${prefix}/lib/R/library/mgcv/libs/mgcv.so" |
151 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
152 | | ${destroot}${prefix}/lib/R/library/mgcv/libs/mgcv.so" |
153 | | system "install_name_tool -id ${prefix}/lib/R/library/methods/libs/methods.so \ |
154 | | ${destroot}${prefix}/lib/R/library/methods/libs/methods.so" |
155 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
156 | | ${destroot}${prefix}/lib/R/library/methods/libs/methods.so" |
157 | | system "install_name_tool -id ${prefix}/lib/R/library/nlme/libs/nlme.so \ |
158 | | ${destroot}${prefix}/lib/R/library/nlme/libs/nlme.so" |
159 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
160 | | ${destroot}${prefix}/lib/R/library/nlme/libs/nlme.so" |
161 | | system "install_name_tool -id ${prefix}/lib/R/library/grDevices/libs/grDevices.so \ |
162 | | ${destroot}${prefix}/lib/R/library/grDevices/libs/grDevices.so" |
163 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
164 | | ${destroot}${prefix}/lib/R/library/grDevices/libs/grDevices.so" |
165 | | system "install_name_tool -id ${prefix}/lib/R/library/foreign/libs/foreign.so \ |
166 | | ${destroot}${prefix}/lib/R/library/foreign/libs/foreign.so" |
167 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
168 | | ${destroot}${prefix}/lib/R/library/foreign/libs/foreign.so" |
169 | | system "install_name_tool -id ${prefix}/lib/R/library/MASS/libs/MASS.so \ |
170 | | ${destroot}${prefix}/lib/R/library/MASS/libs/MASS.so" |
171 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
172 | | ${destroot}${prefix}/lib/R/library/MASS/libs/MASS.so" |
173 | | system "install_name_tool -id ${prefix}/lib/R/library/nnet/libs/nnet.so \ |
174 | | ${destroot}${prefix}/lib/R/library/nnet/libs/nnet.so" |
175 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
176 | | ${destroot}${prefix}/lib/R/library/nnet/libs/nnet.so" |
177 | | system "install_name_tool -id ${prefix}/lib/R/library/grid/libs/grid.so \ |
178 | | ${destroot}${prefix}/lib/R/library/grid/libs/grid.so" |
179 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
180 | | ${destroot}${prefix}/lib/R/library/grid/libs/grid.so" |
181 | | system "install_name_tool -id ${prefix}/lib/R/library/rpart/libs/rpart.so \ |
182 | | ${destroot}${prefix}/lib/R/library/rpart/libs/rpart.so" |
183 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
184 | | ${destroot}${prefix}/lib/R/library/rpart/libs/rpart.so" |
185 | | system "install_name_tool -id ${prefix}/lib/R/library/splines/libs/splines.so \ |
186 | | ${destroot}${prefix}/lib/R/library/splines/libs/splines.so" |
187 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
188 | | ${destroot}${prefix}/lib/R/library/splines/libs/splines.so" |
189 | | system "install_name_tool -id ${prefix}/lib/R/library/cluster/libs/cluster.so \ |
190 | | ${destroot}${prefix}/lib/R/library/cluster/libs/cluster.so" |
191 | | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
192 | | ${destroot}${prefix}/lib/R/library/cluster/libs/cluster.so" |
| 91 | |
| 92 | foreach so [ exec find ${destroot}${prefix}/lib/R -name "\*.so" ] { |
| 93 | regsub ":$" ${so} "" destroot_so_path |
| 94 | regsub ${destroot} ${destroot_so_path} "" so_path |
| 95 | system "install_name_tool -id ${so_path} ${destroot_so_path}" |
| 96 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib ${destroot_so_path}" |
| 97 | } |