[55492] trunk/dports/math
takeshi at macports.org
takeshi at macports.org
Tue Aug 11 23:13:55 PDT 2009
Revision: 55492
http://trac.macports.org/changeset/55492
Author: takeshi at macports.org
Date: 2009-08-11 23:13:52 -0700 (Tue, 11 Aug 2009)
Log Message:
-----------
qrupdate: adding qrupdate intended for use in octave
Added Paths:
-----------
trunk/dports/math/qrupdate/
trunk/dports/math/qrupdate/Portfile
Added: trunk/dports/math/qrupdate/Portfile
===================================================================
--- trunk/dports/math/qrupdate/Portfile (rev 0)
+++ trunk/dports/math/qrupdate/Portfile 2009-08-12 06:13:52 UTC (rev 55492)
@@ -0,0 +1,45 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name qrupdate
+version 1.0.1
+categories math
+maintainers nomaintainer
+description library for fast updates of QR and Cholesky decompositions
+long_description \
+ a Fortran library for fast updates of QR and Cholesky decompositions
+homepage http://sourceforge.net/projects/${name}/
+platforms darwin
+master_sites sourceforge
+
+checksums md5 73d87b081e6fb89c9dc5b0ef0773b4dc \
+ sha1 679aa98ff823332ead25b5c5c9c01210155a510d \
+ md160 d1f120ae97d840bf7b932c7d18abb54360d7d1f6
+
+depends_build port:gcc43
+
+patch {
+# foreach f {Makeconf Makeconf.g95} {
+# reinplace "s|PREFIX=/usr/local|PREFIX=${prefix}|" ${worksrcpath}/${f}
+# }
+# reinplace "s|\$\(PREFIX\)|\$(DESTDIR)\$(PREFIX)|g" ${worksrcpath}/src/Makefile
+ reinplace "s|gfortran|gfortran-mp-4.3|" ${worksrcpath}/Makeconf
+ if {[variant_isset g95]} {
+ reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/Makefile
+ reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/src/Makefile
+ }
+}
+
+use_configure no
+build.target lib
+destroot {
+ xinstall -m 644 ${worksrcpath}/lib${name}.a ${destroot}${prefix}/lib
+ system "ranlib ${destroot}${prefix}/lib/lib${name}.a"
+}
+
+variant g95 description {build with g95} {
+ depends_build-delete port:gcc43
+ depends_build-append port:g95
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090811/73d4429a/attachment-0001.html>
More information about the macports-changes
mailing list