[110052] trunk/dports/math/blitz-devel/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Aug 25 10:24:13 PDT 2013


Revision: 110052
          https://trac.macports.org/changeset/110052
Author:   jeremyhu at macports.org
Date:     2013-08-25 10:24:13 -0700 (Sun, 25 Aug 2013)
Log Message:
-----------
blitz-devel: nomaintainer, clang++ build fixes (via bump to hg tip), fortran recipe, universal

Modified Paths:
--------------
    trunk/dports/math/blitz-devel/Portfile

Modified: trunk/dports/math/blitz-devel/Portfile
===================================================================
--- trunk/dports/math/blitz-devel/Portfile	2013-08-25 17:11:51 UTC (rev 110051)
+++ trunk/dports/math/blitz-devel/Portfile	2013-08-25 17:24:13 UTC (rev 110052)
@@ -4,16 +4,15 @@
 PortSystem          1.0
 
 name                blitz-devel
-version             0.10-20110812
-revision            1
+version             0.10-20120703
 categories          math devel
 platforms           darwin
 license             GPL-2+
-maintainers         gmail.com:andre.dos.anjos
+maintainers         nomaintainer
 
 fetch.type      hg
 hg.url          http://blitz.hg.sourceforge.net:8000/hgroot/blitz/blitz
-hg.tag          4223fee30010
+hg.tag          ab84372f3dce
 
 description         a C++ class library for scientific computing
 
@@ -42,14 +41,6 @@
                     --disable-dot \
                     --disable-latex-docs
 
-if {$build_arch == "x86_64" || $build_arch == "ppc64"} {
-    configure.args-append --enable-64bit
-}
-
-configure.cppflags-append "-pthread"
-configure.cxxflags-append "-pthread"
-configure.fflags-append   "-pthread"
-
 destroot.args       docdir=${prefix}/share/doc/${name}
 
 variant docs description {Generate API documentation} {
@@ -61,32 +52,66 @@
                         --enable-dot
 }
 
-variant gcc43 conflicts gcc44 gcc45 gcc46 description {Use the gcc43 compiler} {
-    configure.compiler  macports-gcc-4.3
+set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
+set default_fortran_variant +gcc48
+
+foreach ver ${gcc_versions} {
+    set ver_no_dot [join [split ${ver} "."] ""]
+
+    variant gcc${ver_no_dot} description {build with gfortran from gcc${ver_no_dot}} {}
+
+    variant gcc${ver_no_dot} conflicts g95 {}
+    variant g95 conflicts gcc${ver_no_dot} {}
+
+    foreach over ${gcc_versions} {
+        if {${ver} == ${over}} {
+            continue
+        }
+
+        set over_no_dot [join [split ${over} "."] ""]
+        variant gcc${ver_no_dot} conflicts gcc${over_no_dot} {}
+    }
+
+    if {[variant_isset gcc${ver_no_dot}]} {
+        if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
+            set default_fortran_variant ""
+        }
+    }
 }
 
-variant gcc44 conflicts gcc43 gcc45 gcc46 description {Use the gcc44 compiler} {
-    configure.compiler  macports-gcc-4.4
+variant g95 description {build with g95} {}
+
+if {[variant_isset g95]} {
+    if {${default_fortran_variant} != "+g95"} {
+        set default_fortran_variant ""
+    }
 }
 
-variant gcc45 conflicts gcc43 gcc44 gcc46 description {Use the gcc45 compiler} {
-    configure.compiler  macports-gcc-4.5
+if {${default_fortran_variant} != ""} {
+    default_variants "${default_fortran_variant}"
 }
 
-variant gcc46 conflicts gcc43 gcc44 gcc45 description {Use the gcc46 compiler} {
-    configure.compiler  macports-gcc-4.6
+foreach ver ${gcc_versions} {
+    set ver_no_dot [join [split ${ver} "."] ""]
+
+    if {[variant_isset gcc${ver_no_dot}]} {
+        depends_lib-append port:libgcc
+        depends_build-append port:gcc${ver_no_dot}
+
+        configure.fc  ${prefix}/bin/gfortran-mp-${ver}
+        configure.f77 ${prefix}/bin/gfortran-mp-${ver}
+        configure.f90 ${prefix}/bin/gfortran-mp-${ver}
+    }
 }
 
-pre-build {
-    build.env-append CC=${configure.cc} CXX=${configure.cc} F77=${configure.f77}
+if {[variant_isset g95]} {
+    depends_lib-append port:libgcc
+    depends_build-append port:g95
+
+    configure.fc ${prefix}/bin/g95
+    configure.f77 ${prefix}/bin/g95
+    configure.f90 ${prefix}/bin/g95
 }
- 
-pre-destroot {
-    destroot.env-append CC=${configure.cc} CXX=${configure.cxx} F77=${configure.f77}
-}
 
-# does not build universal software
-universal_variant   no
-
 # does not do any live check
 livecheck.type sourceforge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130825/4e62e879/attachment.html>


More information about the macports-changes mailing list