[53058] trunk/dports/math/atlas/Portfile
jameskyle at macports.org
jameskyle at macports.org
Sun Jun 28 16:18:05 PDT 2009
Revision: 53058
http://trac.macports.org/changeset/53058
Author: jameskyle at macports.org
Date: 2009-06-28 16:18:05 -0700 (Sun, 28 Jun 2009)
Log Message:
-----------
Updated the building of dylib's to refer to the full path of the linked libraries
Ticket #20071
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2009-06-28 23:12:58 UTC (rev 53057)
+++ trunk/dports/math/atlas/Portfile 2009-06-28 23:18:05 UTC (rev 53058)
@@ -98,7 +98,9 @@
ui_debug "performing fake configure of atlas for optimized lapack"
# atlas docs: 3.1.2
set atlas_path ${workpath}/${name}-${version}
- file mkdir ${workpath}/${name}-${version}/temp
+ ui_debug "Clean out old temp directory if exists"
+ file delete -force ${atlas_path}/temp
+ file mkdir ${atlas_path}/temp
ui_debug "Assembled Command: '${configure.cmd} ${configure.args}"
system "cd ${atlas_path}/temp && \
${configure.cmd} ${configure.args}"
@@ -109,9 +111,10 @@
set atlas_fflags [join [lrange [split [exec grep "F77FLAGS = " $atlas_path/temp/Make.inc] =] 1 end] =]
ui_debug "Found atlas F77FLAGS: ${atlas_fflags}"
- # Remove the old test configure directory
- system "rm -rf ${atlas_path}/temp"
+ ui_debug "Remove the old test configure directory"
+ file delete -force ${atlas_path}/temp
+
# compile lapack
system "cd ${workpath}/${lapackname}-${lapackversion} && \
cp INSTALL/make.inc.gfortran make.inc"
@@ -140,9 +143,10 @@
post-configure {
# recursively remove directories
+ ui_debug "reinplace for make to recursively remove directories on clean"
reinplace "s|rm -f|rm -rf|g" ${workpath}/${name}-${version}/build/Makefile
- # patch ${name}-${version}/build/Make.top to install dynamic libs
+ ui_debug "patch ${name}-${version}/build/Make.top to install dynamic libs"
system "cd ${worksrcpath}/build/ && \
patch -p0 < ${filespath}/${make_patch}"
}
@@ -153,18 +157,25 @@
-all_load -L. -L${prefix}/lib/gcc43 -ldylib1.o -dylib_install_name"
system "cd ${workpath}/${name}-${version}/build/lib && \
- ${ld} libatlas.dylib libatlas.a -o libatlas.dylib -lSystem"
+ ${ld} libatlas.dylib libatlas.a -o libatlas.dylib -lSystem \
+ -install_name ${prefix}/lib/libatlas.dylib"
system "cd ${workpath}/${name}-${version}/build/lib && \
- ${ld} libptcblas.dylib libptcblas.a -o libptcblas.dylib -latlas -lSystem"
+ ${ld} libptcblas.dylib libptcblas.a -o libptcblas.dylib -latlas \
+ -lSystem -install_name ${prefix}/lib/libptcblas.dylib \
+ -compatibility_version 1.0.0 -current_version 218.0.0"
system "cd ${workpath}/${name}-${version}/build/lib && \
- ${ld} libptf77blas.dylib libptf77blas.a -o libptf77blas.dylib -lgfortran \
- -latlas -lSystem"
+ ${ld} libptf77blas.dylib libptf77blas.a -o libptf77blas.dylib \
+ -lgfortran -latlas -lSystem \
+ -install_name ${prefix}/lib/libptf77blas.dylib \
+ -compatibility_version 1.0.0 -current_version 218.0.0"
system "cd ${workpath}/${name}-${version}/build/lib && \
${ld} liblapack.dylib liblapack.a -o liblapack.dylib -lptf77blas \
- -lgfortran -lptcblas -latlas -lgcc_s.1 -lSystem"
+ -lgfortran -lptcblas -latlas -lgcc_s.1 -lSystem \
+ -install_name ${prefix}/lib/liblapack.dylib \
+ -compatibility_version 1.0.0 -current_version 218.0.0"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090628/a0eda4f7/attachment.html>
More information about the macports-changes
mailing list