[88768] trunk/dports/lang

ryandesign at macports.org ryandesign at macports.org
Tue Jan 10 17:48:56 PST 2012


Revision: 88768
          http://trac.macports.org/changeset/88768
Author:   ryandesign at macports.org
Date:     2012-01-10 17:48:56 -0800 (Tue, 10 Jan 2012)
Log Message:
-----------
libf2c: new port, version 20110801; see #32804

Added Paths:
-----------
    trunk/dports/lang/libf2c/
    trunk/dports/lang/libf2c/Portfile
    trunk/dports/lang/libf2c/files/
    trunk/dports/lang/libf2c/files/patch-makefile.u.diff

Added: trunk/dports/lang/libf2c/Portfile
===================================================================
--- trunk/dports/lang/libf2c/Portfile	                        (rev 0)
+++ trunk/dports/lang/libf2c/Portfile	2012-01-11 01:48:56 UTC (rev 88768)
@@ -0,0 +1,49 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                libf2c
+version             20110801
+categories          lang
+platforms           darwin
+maintainers         ryandesign
+
+description         library to which you must link code you have converted from Fortran to C using f2c
+
+long_description    ${name} is the ${description}.
+
+homepage            http://www.netlib.org/f2c/
+master_sites        ${homepage}
+dist_subdir         ${name}/${version}
+distname            ${name}
+use_zip             yes
+
+checksums           rmd160  dfff83383f3ffc2d290d4a206dfc92abcd171050 \
+                    sha256  f13c01421e9668dc86c78159d87c2f802dd1f8e62037834285c7ab77200d97d5
+
+extract.mkdir       yes
+
+patchfiles          patch-makefile.u.diff
+
+use_configure       no
+
+variant universal {}
+
+build.args          -f makefile.u \
+                    CC="${configure.cc} [get_canonical_archflags cc]" \
+                    CFLAGS="${configure.cflags}"
+
+pre-build {
+    system -W ${worksrcpath} "${build.cmd} [join ${build.args}] hadd"
+}
+
+destroot.args       [join ${build.args}]
+destroot.destdir    LIBDIR=${destroot}${prefix}/lib
+
+post-destroot {
+    xinstall -m 644 ${worksrcpath}/f2c.h ${destroot}${prefix}/include
+}
+
+livecheck.type      moddate
+livecheck.url       [lindex ${master_sites} 0]${distfiles}


Property changes on: trunk/dports/lang/libf2c/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/lang/libf2c/files/patch-makefile.u.diff
===================================================================
--- trunk/dports/lang/libf2c/files/patch-makefile.u.diff	                        (rev 0)
+++ trunk/dports/lang/libf2c/files/patch-makefile.u.diff	2012-01-11 01:48:56 UTC (rev 88768)
@@ -0,0 +1,11 @@
+--- makefile.u.orig	2012-01-07 18:34:04.000000000 -0600
++++ makefile.u	2012-01-07 18:41:38.000000000 -0600
+@@ -20,8 +20,6 @@
+ # compile, then strip unnecessary symbols
+ .c.o:
+ 	$(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c
+-	ld -r -x -o $*.xxx $*.o
+-	mv $*.xxx $*.o
+ ## Under Solaris (and other systems that do not understand ld -x),
+ ## omit -x in the ld line above.
+ ## If your system does not have the ld command, comment out
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120110/799b81d4/attachment.html>


More information about the macports-changes mailing list