[92665] trunk/dports/math

ram at macports.org ram at macports.org
Thu May 3 06:03:43 PDT 2012


Revision: 92665
          https://trac.macports.org/changeset/92665
Author:   ram at macports.org
Date:     2012-05-03 06:03:43 -0700 (Thu, 03 May 2012)
Log Message:
-----------
math/fftw-3*: unify

Modified Paths:
--------------
    trunk/dports/math/fftw-3/Portfile

Removed Paths:
-------------
    trunk/dports/math/fftw-3-long/
    trunk/dports/math/fftw-3-single/

Modified: trunk/dports/math/fftw-3/Portfile
===================================================================
--- trunk/dports/math/fftw-3/Portfile	2012-05-03 13:03:38 UTC (rev 92664)
+++ trunk/dports/math/fftw-3/Portfile	2012-05-03 13:03:43 UTC (rev 92665)
@@ -37,9 +37,8 @@
     compatible.
 
 checksums \
-    md5 76f5f3c7577613d0fbedaae77450ac91 \
-    sha1 3fecc492f576503a6a509d2073bd82b3fe0aef13 \
-    rmd160 86ef73f8f934d5f0e5d21f07fc05683f7b3c1d82
+    rmd160 86ef73f8f934d5f0e5d21f07fc05683f7b3c1d82 \
+    sha256 c77fc5cda6ce868857aa565cb9b0df0d7a4fcf388ce5c6d482acd80e2452b73
 
 configure.args \
     --enable-threads \
@@ -76,6 +75,93 @@
   }
 }
 
+subport fftw-3-single {
+    revision 2
+
+    configure.args-append --enable-float
+
+    array set merger_configure_args {
+        ppc    "--enable-fma --enable-altivec"
+        ppc64  "--enable-fma --enable-altivec"
+        i386   "--enable-sse"
+        x86_64 "--enable-sse"
+    }
+
+    depends_lib port:fftw-3
+
+    platform i386 {
+        if {![variant_isset universal]} {
+            configure.args-delete --enable-sse2
+            configure.args-append --enable-sse
+        }
+    }
+
+    platform powerpc {
+        if {![variant_isset universal]} {
+            configure.args-append --enable-altivec
+        }
+    }
+
+    post-destroot {
+        file delete ${destroot}${prefix}/include/fftw3.f
+        file delete ${destroot}${prefix}/include/fftw3.f03
+        file delete ${destroot}${prefix}/include/fftw3l.f03
+        file delete ${destroot}${prefix}/include/fftw3q.f03
+        file delete ${destroot}${prefix}/include/fftw3.h
+        file delete ${destroot}${prefix}/bin/fftw-wisdom-to-conf
+        file delete ${destroot}${prefix}/share/man/man1/fftw-wisdom-to-conf.1
+        file delete ${destroot}${prefix}/share/info/fftw3.info
+        file delete ${destroot}${prefix}/share/info/fftw3.info-1
+        file delete ${destroot}${prefix}/share/info/fftw3.info-2
+        file delete ${destroot}${prefix}/share/info/fftw3.info-3
+        file delete ${destroot}${prefix}/share/info/fftw3.info-4
+        file delete ${destroot}${prefix}/share/info/fftw3.info-5
+    }
+}
+
+subport fftw-3-long {
+    revision 2
+
+    configure.args-append --enable-long-double
+
+     array set merger_configure_args {
+        ppc    ""
+        ppc64  ""
+        i386   ""
+        x86_64 ""
+    }
+
+    depends_lib port:fftw-3
+
+    platform i386 {
+        if {![variant_isset universal]} {
+            configure.args-delete --enable-sse2
+        }
+    }
+
+    platform powerpc {
+        if {![variant_isset universal]} {
+            configure.args-delete --enable-fma
+        }
+    }
+
+    post-destroot {
+        file delete ${destroot}${prefix}/include/fftw3.f
+        file delete ${destroot}${prefix}/include/fftw3.f03
+        file delete ${destroot}${prefix}/include/fftw3l.f03
+        file delete ${destroot}${prefix}/include/fftw3q.f03
+        file delete ${destroot}${prefix}/include/fftw3.h
+        file delete ${destroot}${prefix}/bin/fftw-wisdom-to-conf
+        file delete ${destroot}${prefix}/share/man/man1/fftw-wisdom-to-conf.1
+        file delete ${destroot}${prefix}/share/info/fftw3.info
+        file delete ${destroot}${prefix}/share/info/fftw3.info-1
+        file delete ${destroot}${prefix}/share/info/fftw3.info-2
+        file delete ${destroot}${prefix}/share/info/fftw3.info-3
+        file delete ${destroot}${prefix}/share/info/fftw3.info-4
+        file delete ${destroot}${prefix}/share/info/fftw3.info-5
+    }
+}
+
 variant gcc42 description {create Fortran wrappers using gcc42} conflicts gcc43 gcc44 gcc45 gcc46 g95 {
     depends_lib-append    port:gcc42
     depends_skip_archcheck gcc42
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120503/883ec599/attachment.html>


More information about the macports-changes mailing list