[53383] trunk/dports/science/udunits/Portfile

takeshi at macports.org takeshi at macports.org
Sat Jul 4 06:32:50 PDT 2009


Revision: 53383
          http://trac.macports.org/changeset/53383
Author:   takeshi at macports.org
Date:     2009-07-04 06:32:49 -0700 (Sat, 04 Jul 2009)
Log Message:
-----------
udunits: commented g95 and newly added gcc43 variants since udunits does not requrie fortran compiler at build time

Modified Paths:
--------------
    trunk/dports/science/udunits/Portfile

Modified: trunk/dports/science/udunits/Portfile
===================================================================
--- trunk/dports/science/udunits/Portfile	2009-07-04 13:13:07 UTC (rev 53382)
+++ trunk/dports/science/udunits/Portfile	2009-07-04 13:32:49 UTC (rev 53383)
@@ -28,22 +28,31 @@
 depends_build   path:bin/perl:perl5
 
 patch {
-	reinplace "s|\$(prefix)/man|\$(prefix)/share/man|" ${worksrcpath}/port/master.mk.in
+        reinplace "s|\$(prefix)/man|\$(prefix)/share/man|" ${worksrcpath}/port/master.mk.in
 }
 
-configure.cppflags-append "-DNDEBUG -Df2cFortran"
-configure.cflags-append -fno-common
+configure.cppflags-append       "-DNDEBUG -Df2cFortran"
+configure.cflags-append         -fno-common
 
 pre-destroot {
-	file delete ${worksrcpath}/lib/libudunits.a
+        file delete ${worksrcpath}/lib/libudunits.a
 }
 
 destroot.destdir    DESTDIR=${destroot} \
                     prefix=${destroot}${prefix} \
                     exec_prefix=${destroot}${prefix}
 
-variant g95 description {compile with g95} {
-    depends_build-append    port:g95
-    configure.fc	${prefix}/bin/g95
-    configure.env-append	FFLAGS="-O2 -fno-common"
-}
+# fortran compiler does not seem to be required
+# gfortran might have problem with preprocessor
+#variant gcc43 conflicts g95 description {compile with gcc43} {
+#    depends_build-append    port:gcc43
+#    configure.env-append    FC=${prefix}/bin/gfortran-mp-4.3
+#    configure.env-append    FFLAGS="-O2 -fno-common"
+#}
+#
+#variant g95 conflicts gcc43 description {compile with g95} {
+#    depends_build-append    port:g95
+#    configure.fc            ${prefix}/bin/g95
+#    configure.env-append    FC=${prefix}/bin/g95
+#    configure.env-append    FFLAGS="-O2 -fno-common"
+#}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090704/8713a78d/attachment.html>


More information about the macports-changes mailing list