[37223] trunk/dports/math/arpack/Portfile

mmoll at macports.org mmoll at macports.org
Fri May 30 20:00:26 PDT 2008


Revision: 37223
          http://trac.macosforge.org/projects/macports/changeset/37223
Author:   mmoll at macports.org
Date:     2008-05-30 20:00:24 -0700 (Fri, 30 May 2008)

Log Message:
-----------
math/arpack: for the mpi variant we now explicitly check if openmpi was compiled with fortran support

Modified Paths:
--------------
    trunk/dports/math/arpack/Portfile

Modified: trunk/dports/math/arpack/Portfile
===================================================================
--- trunk/dports/math/arpack/Portfile	2008-05-30 19:42:37 UTC (rev 37222)
+++ trunk/dports/math/arpack/Portfile	2008-05-31 03:00:24 UTC (rev 37223)
@@ -48,9 +48,14 @@
   distfiles-append parpack96.tar.gz ppatch.tar.gz
   checksums-append parpack96.tar.gz md5 598d0453b938ccd99a078246be5927f3 \
   		   ppatch.tar.gz md5 e6f0d70dd99f719c0efee351d0875c96
+	pre-fetch { 	 
+	   if {![file exists ${prefix}/bin/openmpif77]} {
+	     return -code error "Please install one of the following variants of the openmpi port: gcc42, gcc43, g95."
+	   }
+	}
 	pre-build { foreach entry [glob -directory ${worksrcpath}/PARPACK */MPI/mpif.h] { delete $entry } }
-	depends_build bin:mpif77:openmpi
-	build.args all FC=${prefix}/lib/openmpi/bin/mpif77 home=${worksrcpath}
+	depends_build port:openmpi
+	build.args all FC=${prefix}/bin/openmpif77 home=${worksrcpath}
 	destroot    {
 	   xinstall -m 644 -v -W ${worksrcpath} libarpack.a libparpack.a ${destroot}${prefix}/lib
 	}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080530/3515f3d2/attachment.htm 


More information about the macports-changes mailing list