[22025] trunk/dports/math
source_changes at macosforge.org
source_changes at macosforge.org
Wed Feb 14 12:55:54 PST 2007
Revision: 22025
http://trac.macosforge.org/projects/macports/changeset/22025
Author: jmpp at macports.org
Date: 2007-02-14 12:55:53 -0800 (Wed, 14 Feb 2007)
Log Message:
-----------
New port: math/arpack. Thanks to Mark Moll for the contribution.
Added Paths:
-----------
trunk/dports/math/arpack/
trunk/dports/math/arpack/Portfile
trunk/dports/math/arpack/files/
trunk/dports/math/arpack/files/patch-arpack.diff
Added: trunk/dports/math/arpack/Portfile
===================================================================
--- trunk/dports/math/arpack/Portfile (rev 0)
+++ trunk/dports/math/arpack/Portfile 2007-02-14 20:55:53 UTC (rev 22025)
@@ -0,0 +1,47 @@
+PortSystem 1.0
+
+name arpack
+version 1
+categories math
+platforms darwin
+maintainers moll at isi.edu
+description Package for solving large scale eigenvalue problems
+long_description \
+ ARPACK is a collection of Fortran77 subroutines designed to solve large \
+ scale eigenvalue problems. \
+homepage http://www.caam.rice.edu/software/ARPACK
+master_sites ${homepage}/SRC/
+distfiles arpack96.tar.gz patch.tar.gz
+checksums arpack96.tar.gz md5 fffaa970198b285676f4156cebc8626e \
+ patch.tar.gz md5 14830d758f195f272b8594a493501fa2
+
+# We need gfortran. Gcc41 doesn't seem to compile on Intel Mac, so we'll take
+# gcc42. Too bad that the actual gfortran binary in gcc42 is called
+# gfortran-dp-4.2, otherwise we could just say bin:gfortran:gcc42.
+depends_build port:gcc42
+use_configure no
+worksrcdir ARPACK
+patchfiles patch-arpack.diff
+build.args all FC=gfortran-dp-4.2 home=${worksrcpath}
+destroot {
+ xinstall -m 644 -v -W ${worksrcpath} libarpack.a ${destroot}${prefix}/lib
+}
+post-destroot {
+ system "ranlib ${destroot}${prefix}/lib/libarpack.a"
+}
+
+variant mpi {
+ distfiles-append parpack96.tar.gz ppatch.tar.gz
+ checksums-append parpack96.tar.gz md5 598d0453b938ccd99a078246be5927f3 \
+ ppatch.tar.gz md5 e6f0d70dd99f719c0efee351d0875c96
+ pre-build { system "rm ${worksrcpath}/PARPACK/*/MPI/mpif.h" }
+ depends_build bin:mpif77:openmpi
+ build.args all FC=${prefix}/lib/openmpi/bin/mpif77 home=${worksrcpath}
+ destroot {
+ xinstall -m 644 -v -W ${worksrcpath} libarpack.a libparpack.a ${destroot}${prefix}/lib
+ }
+ post-destroot {
+ system "ranlib ${destroot}${prefix}/lib/libarpack.a"
+ system "ranlib ${destroot}${prefix}/lib/libparpack.a"
+ }
+}
Added: trunk/dports/math/arpack/files/patch-arpack.diff
===================================================================
--- trunk/dports/math/arpack/files/patch-arpack.diff (rev 0)
+++ trunk/dports/math/arpack/files/patch-arpack.diff 2007-02-14 20:55:53 UTC (rev 22025)
@@ -0,0 +1,138 @@
+*** ./ARmake.inc Fri Apr 26 12:12:57 1996
+--- ./ARmake.inc Thu Dec 7 21:01:43 2006
+***************
+*** 34,39 ****
+--- 34,44 ----
+ #
+ PLAT = SUN4
+ #
++ # The communication library ( need for parallel library only )
++ # Current availible platforms are: BLACS or MPI
++ #
++ COMMLIB = MPI
++ #
+ # %------------------------------------------------------%
+ # | The directories to find the various pieces of ARPACK |
+ # %------------------------------------------------------%
+***************
+*** 42,47 ****
+--- 47,54 ----
+ LAPACKdir = $(home)/LAPACK
+ UTILdir = $(home)/UTIL
+ SRCdir = $(home)/SRC
++ PSRCdir = $(home)/PARPACK/SRC/$(COMMLIB)
++ PUTILdir = $(home)/PARPACK/UTIL/$(COMMLIB)
+ #
+ DIRS = $(BLASdir) $(LAPACKdir) $(UTILdir) $(SRCdir)
+ #
+***************
+*** 51,67 ****
+ # | NOTE: ARPACK assumes the use of LAPACK version 2 codes. |
+ # %-------------------------------------------------------------------%
+ #
+! #DIRS = $(UTILdir) $(SRCdir)
+ #
+ # %---------------------------------------------------%
+ # | The name of the libraries to be created/linked to |
+ # %---------------------------------------------------%
+ #
+! ARPACKLIB = $(home)/libarpack_$(PLAT).a
+! LAPACKLIB =
+ BLASLIB =
+ #
+ ALIBS = $(ARPACKLIB) $(LAPACKLIB) $(BLASLIB)
+ #
+ #
+ # %---------------------------------------------------------%
+--- 58,78 ----
+ # | NOTE: ARPACK assumes the use of LAPACK version 2 codes. |
+ # %-------------------------------------------------------------------%
+ #
+! DIRS = $(UTILdir) $(SRCdir)
+ #
+ # %---------------------------------------------------%
+ # | The name of the libraries to be created/linked to |
+ # %---------------------------------------------------%
+ #
+! ARPACKLIB = $(home)/libarpack.a
+! PARPACKLIB = $(home)/libparpack.a
+! LAPACKLIB = -framework Accelerate
+ BLASLIB =
+ #
+ ALIBS = $(ARPACKLIB) $(LAPACKLIB) $(BLASLIB)
++ MPILIBS =
++ PLIBS = $(PARPACKLIB) $(ALIBS) $(MPILIBS)
++
+ #
+ #
+ # %---------------------------------------------------------%
+***************
+*** 102,108 ****
+ # %-----------------------------------------%
+ #
+ FC = f77
+! FFLAGS = -O -cg89
+
+ LDFLAGS =
+ CD = cd
+--- 113,119 ----
+ # %-----------------------------------------%
+ #
+ FC = f77
+! FFLAGS = -O2 -ff2c -fno-underscoring
+
+ LDFLAGS =
+ CD = cd
+***************
+*** 112,118 ****
+ LN = ln
+ LNFLAGS = -s
+
+! MAKE = /bin/make
+
+ RM = rm
+ RMFLAGS = -f
+--- 123,129 ----
+ LN = ln
+ LNFLAGS = -s
+
+! MAKE = make
+
+ RM = rm
+ RMFLAGS = -f
+*** ./UTIL/second.f Mon Oct 2 11:56:44 1995
+--- ./UTIL/second.f Fri Dec 8 10:56:45 2006
+***************
+*** 20,34 ****
+ REAL TARRAY( 2 )
+ * ..
+ * .. External Functions ..
+! REAL ETIME
+! EXTERNAL ETIME
+ * ..
+ * .. Executable Statements ..
+ *
+
+! T1 = ETIME( TARRAY )
+! T = TARRAY( 1 )
+!
+ RETURN
+ *
+ * End of SECOND
+--- 20,34 ----
+ REAL TARRAY( 2 )
+ * ..
+ * .. External Functions ..
+! REAL SECOND_
+! EXTERNAL SECOND_
+ * ..
+ * .. Executable Statements ..
+ *
+
+! * T1 = ETIME( TARRAY )
+! * T = TARRAY( 1 )
+! T = SECOND_()
+ RETURN
+ *
+ * End of SECOND
+q
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070214/1ea9de15/attachment.html
More information about the macports-changes
mailing list