[22818] trunk/dports/lang
source_changes at macosforge.org
source_changes at macosforge.org
Thu Mar 15 06:51:00 PDT 2007
Revision: 22818
http://trac.macosforge.org/projects/macports/changeset/22818
Author: takanori at macports.org
Date: 2007-03-15 06:51:00 -0700 (Thu, 15 Mar 2007)
Log Message:
-----------
New port: g95
Ticket: #11511
Submitted by: takeshi at mac.com
Reviewed by: takanori@
Added Paths:
-----------
trunk/dports/lang/g95/
trunk/dports/lang/g95/Portfile
trunk/dports/lang/g95/files/
trunk/dports/lang/g95/files/patch-Makefile.in
Added: trunk/dports/lang/g95/Portfile
===================================================================
--- trunk/dports/lang/g95/Portfile (rev 0)
+++ trunk/dports/lang/g95/Portfile 2007-03-15 13:51:00 UTC (rev 22818)
@@ -0,0 +1,69 @@
+PortSystem 1.0
+name g95
+version 0.90
+revision 1
+platforms darwin
+categories lang
+maintainers takeshi at mac.com
+description Another GNU Fortran 95 compiler
+long_description \
+ G95 is a stable, production Fortran 95 compiler \
+ available for multiple cpu architectures and operating systems. \
+ Innovations and optimizations continue to be worked on. \
+ Parts of the F2003 standard have been implemented in g95.
+homepage http://g95.org/
+master_sites ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.0.3/:gcc \
+ ftp://anonymous%%40g95%%2Eorg:none@ftp.g95.org/v0.9/:g95
+
+set version_gcc 4.0.3
+set dcore gcc-core-${version_gcc}.tar.gz
+set dg95 ${name}_source.tgz
+set gcclib lib/gcc-lib/${os.arch}-apple-${os.platform}${os.version}/${version_gcc}
+distfiles ${dcore}:gcc ${dg95}:g95
+
+checksums ${dcore} sha1 2694281fa05ae0e39cd871fcc52745e35a2dfefc \
+ ${dg95} sha1 1f8d30fd39f8f23a71030802405e23abcc8a00b4
+
+depends_lib port:odcctools
+
+patchfiles patch-Makefile.in
+
+pre-configure {
+ file mkdir ${workpath}/gcc-${version_gcc}/${name}
+ reinplace "s|/usr/bin/libtool|${prefix}/bin/odlibtool|" ${workpath}/gcc-${version_gcc}/gcc/config/darwin.h
+ system "unset CPPFLAGS; unset LDFLAGS; \
+ cd ${workpath}/gcc-${version_gcc}/${name}; \
+ ../configure --prefix=${prefix}/${gcclib} --enable-languages=c --with-as=${prefix}/bin/odas --with-ld=${prefix}/bin/odld --with-nm=${prefix}/bin/odnm --with-included-gettext; \
+ make"
+}
+
+configure.env CPPFLAGS="" LDFLAGS=""
+configure.args --with-gcc-dir=${workpath}/gcc-${version_gcc}
+
+post-build {
+ system "cd ${worksrcpath}; tar zxvf libf95.a-${version}.tar.gz; \
+ cd libf95.a-${version}; \
+ ./configure --prefix=${prefix}; \
+ make"
+}
+
+pre-destroot {
+ reinplace "s|${prefix}/${gcclib}|${destroot}${prefix}/${gcclib}|g" ${worksrcpath}/Makefile
+ reinplace "s|${prefix}/${gcclib}|${destroot}${prefix}/${gcclib}|g" ${worksrcpath}/libf95.a-${version}/Makefile
+}
+
+destroot {
+ system "cd ${worksrcpath}; \
+ make install prefix=${destroot}${prefix}; \
+ cd libf95.a-${version}; \
+ make install prefix=${destroot}${prefix}; \
+ ranlib ${destroot}${prefix}/${gcclib}/libf95.a; \
+ ranlib ${destroot}${prefix}/${gcclib}/libgcc.a; \
+ ranlib ${destroot}${prefix}/${gcclib}/libgcc_eh.a"
+ file mkdir ${destroot}${prefix}/share/doc/${name}
+ file rename ${destroot}${prefix}/G95Manual.pdf ${destroot}${prefix}/share/doc/${name}
+ system "ln -sf ${prefix}/${gcclib}/libf95.a ${destroot}${prefix}/lib/libf95.a"
+ file mkdir ${destroot}${prefix}/${gcclib}/lib
+ system "ln -sf ${prefix}/${gcclib}/libgcc_s.1.0.dylib ${destroot}${prefix}/${gcclib}/lib/libgcc_s.1.0.dylib"
+ system "ln -sf ${prefix}/${gcclib}/libgcc_s.1.0.dylib ${destroot}${prefix}/${gcclib}/lib/libgcc_s.dylib"
+}
Property changes on: trunk/dports/lang/g95/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/lang/g95/files/patch-Makefile.in
===================================================================
--- trunk/dports/lang/g95/files/patch-Makefile.in (rev 0)
+++ trunk/dports/lang/g95/files/patch-Makefile.in 2007-03-15 13:51:00 UTC (rev 22818)
@@ -0,0 +1,24 @@
+--- Makefile.in.orig 2007-03-02 15:15:24.000000000 +0900
++++ Makefile.in 2007-03-02 15:53:28.000000000 +0900
+@@ -2589,7 +2589,6 @@
+
+ install-exec-am: install-binPROGRAMS
+ @$(NORMAL_INSTALL)
+- $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
+
+ install-info: install-info-am
+
+@@ -2653,13 +2652,9 @@
+ install-data-hook:
+ -ln -sf f951$(EXEEXT) @DEST_LIBDIR@/cc1
+ if test "`uname`" = "Darwin" ; then \
+- ar x /usr/lib/libgcc.a darwin-fpsave.o ; \
+- ar rs @DEST_LIBDIR@/libgcc.a darwin-fpsave.o ; \
+- rm ./darwin-fpsave.o ; \
+ ranlib @DEST_LIBDIR@/libgcc_eh.a ; \
+ ranlib @DEST_LIBDIR@/libgcc.a ; \
+ fi
+- cp INSTALL @DEST_LIBDIR@/../../../..
+ cp G95Manual.pdf @DEST_LIBDIR@/../../../..
+ if test -n "`ls @GCC_DIR@/g95/gcc/libgcc_s.*`" ; then \
+ (cd @GCC_DIR@/g95/gcc; tar cf - libgcc_s.*) | \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070315/5adbe815/attachment.html
More information about the macports-changes
mailing list