--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/math/octave/Portfile	2010-06-17 14:00:47.000000000 -0600
+++ localports/math/octave/Portfile	2010-07-13 12:09:00.000000000 -0600
@@ -5,6 +5,7 @@
 
 name                octave
 version             3.2.4
+revision            1
 categories          math science
 maintainers         stechert
 platforms           darwin
@@ -72,12 +73,30 @@
                     TEXI2DVI="${prefix}/bin/texi2dvi" \
                     TEXI2PDF="${prefix}/bin/texi2pdf"
 
-use_parallel_build  no
+use_parallel_build  yes
 universal_variant   no
 
 test.run            yes
 test.target         check
 
+if {![variant_isset g95]} { 
+    if {(${build_arch}=="x86_64" || ${build_arch}=="ppc64")} { 
+        configure.fflags-append -ff2c -fdefault-real-8 
+        pre-patch { 
+            reinplace "s|real sdot|real*4 sdot|g" ${worksrcpath}/configure 
+            reinplace "s|complex cdotu|complex*8 cdotu|g" ${worksrcpath}/configure 
+        } 
+    } else { 
+        configure.fflags-append -ff2c 
+    } 
+} 
+
+variant no_atlas description {use system blas instead of atlas} {
+    depends_lib-delete      port:atlas
+    configure.args-append   --with-blas="-framework Accelerate"
+    configure.env-append    LIBS="-framework Accelerate"
+}
+
 variant gcc43 description {build with the macports gcc43 toolchain} conflicts gcc44 g95 {
     depends_build-append    port:gcc43
     configure.compiler      macports-gcc-4.3

