--- Portfile.orig	2009-10-29 15:48:41.000000000 +0100
+++ Portfile	2009-10-29 16:46:27.000000000 +0100
@@ -32,7 +32,7 @@
 
 depends_lib 	port:fftw-3-single port:openmotif
 
-configure.args  --bindir=${prefix}/lib/${name}/bin --with-x
+configure.args  --bindir=${prefix}/lib/${name}/bin --enable-shared --with-x
 
 variant nox description {Disable X11/Motif GUI} {
   depends_lib-delete       port:openmotif
@@ -51,6 +51,17 @@
   configure.compiler       macports-gcc-4.2
 }
 
+platform darwin 10 {
+  configure.args-append    --enable-apple-64bit
+  depends_build-delete     port:gcc42
+  configure.compiler       gcc-4.2
+}
+
+if {${os.major}>8} { 
+  variant mpi_system conflicts openmpi description {Enable multiple CPU's using system OpenMPI} {
+  configure.args-append    --enable-mpi
+}}
+
 variant gcc43 conflicts gcc44 description {build with macports-gcc-4.3} {
   depends_build-delete         port:gcc42
   depends_build-append         port:gcc43

