[101293] trunk/dports/lang/g95/Portfile

takeshi at macports.org takeshi at macports.org
Mon Jan 7 13:03:48 PST 2013


Revision: 101293
          https://trac.macports.org/changeset/101293
Author:   takeshi at macports.org
Date:     2013-01-07 13:03:48 -0800 (Mon, 07 Jan 2013)
Log Message:
-----------
g95: depends on MacPorts ld64 and cctools. removed deprecated dependency on odcctools. eliminate missing symbols (#34831)

Modified Paths:
--------------
    trunk/dports/lang/g95/Portfile

Modified: trunk/dports/lang/g95/Portfile
===================================================================
--- trunk/dports/lang/g95/Portfile	2013-01-07 20:59:06 UTC (rev 101292)
+++ trunk/dports/lang/g95/Portfile	2013-01-07 21:03:48 UTC (rev 101293)
@@ -5,6 +5,7 @@
 
 name            g95
 version         0.93
+revision        1
 platforms       darwin
 categories      lang
 license         GPL-2
@@ -40,6 +41,7 @@
                 ${dg95}  sha1    b5e503fd6459b65cbda73190685f9490230d9cff \
                 ${dg95}  rmd160  98d03e9a1835f4b3553a72a798bdf1d90a757176
 
+depends_build   port:ld64 port:cctools
 depends_lib     port:libtool port:libiconv
 
 patchfiles      patch-Makefile.in.diff \
@@ -80,12 +82,8 @@
     if {${build_arch} == "i386"} {
         reinplace "s|i686|i386|" ${workpath}/gcc-${version_gcc}/gcc/config/i386/darwin.h
     }
-    if {${os.major} != 8} {
-        set gcc_configargs "--with-as=/usr/bin/as --with-ld=/usr/bin/ld --with-nm=/usr/bin/nm"
-    } else {
-        reinplace "s|/usr/bin/libtool|${prefix}/bin/odlibtool|" ${workpath}/gcc-${version_gcc}/gcc/config/darwin.h
-        set gcc_configargs "--with-as=${prefix}/bin/odas --with-ld=${prefix}/bin/odld --with-nm=${prefix}/bin/odnm"
-    }
+#    set gcc_configargs "--with-as=/usr/bin/as --with-ld=/usr/bin/ld --with-nm=/usr/bin/nm"
+#    set gcc_configargs "--with-as=${prefix}/bin/as --with-ld=${prefix}/bin/ld --with-nm=${prefix}/bin/nm"
     system "export CC=\"${configure.cc}\"; \
             export CPPFLAGS=\"${configure.cppflags}\"; \
             export CFLAGS=\"${configure.cflags} ${configure.cc_archflags}\"; \
@@ -99,7 +97,10 @@
                          --with-included-gettext \
                          --with-libiconv=${prefix} \
                          --libdir=${prefix}/${gcclib} \
-                         ${gcc_configargs} ${buildhost}; \
+                         --with-as=${prefix}/bin/as \
+                         --with-ld=${prefix}/bin/ld \
+                         --with-nm=${prefix}/bin/nm \
+                         ${buildhost}; \
             make"
     system "cd ${workpath}/gcc-${version_gcc}/${name}/gcc; \
             ar d libbackend.a options.o; \
@@ -136,10 +137,7 @@
     xinstall -d ${destroot}${prefix}/share/doc/${name}
     xinstall -m 644 ${worksrcpath}/G95Manual.pdf ${destroot}${prefix}/share/doc/${name}
     system "ln -sf ${prefix}/${gcclib}/libf95.a ${destroot}${prefix}/lib/libf95.a"
+    system -W ${destroot}${prefix} "find . -type f -name '*.dylib' -exec dsymutil {} +"
 }
 
-platform darwin 8 {
-    depends_lib-append port:odcctools
-}
-
 variant gcc42 description {deprecated variant} {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130107/c86f14cb/attachment.html>


More information about the macports-changes mailing list