[28632] trunk/dports/science

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 5 12:44:22 PDT 2007


Revision: 28632
          http://trac.macosforge.org/projects/macports/changeset/28632
Author:   gwright at macports.org
Date:     2007-09-05 12:44:22 -0700 (Wed, 05 Sep 2007)

Log Message:
-----------
New port: CDF 31, the Common Data Format from NASA Goddard Space Flight Center.

Added Paths:
-----------
    trunk/dports/science/cdf/
    trunk/dports/science/cdf/Portfile
    trunk/dports/science/cdf/files/
    trunk/dports/science/cdf/files/patch-Makefile

Added: trunk/dports/science/cdf/Portfile
===================================================================
--- trunk/dports/science/cdf/Portfile	                        (rev 0)
+++ trunk/dports/science/cdf/Portfile	2007-09-05 19:44:22 UTC (rev 28632)
@@ -0,0 +1,58 @@
+# $Id: Portfile 22908 2007-03-18 17:04:14Z takanori at macports.org $
+
+PortSystem 1.0
+name		cdf
+version		31
+maintainers	gwright at macports.org
+platforms	darwin
+categories	science
+
+description	CDF: Common Data Format
+long_description	\
+		The Common Data Format (CDF) is a self-describing data	\
+		format for the storage and manipulation of scalar and	\
+		multidimensional data in a platform and discipline	\
+		independent fashion. 
+
+homepage	http://cdf.gsfc.nasa.gov/
+master_sites	ftp://rumba.gsfc.nasa.gov/pub/cdf/dist/${name}${version}/unix
+
+distfiles	${name}${version}-dist-all${extract.suffix}
+
+checksums	sha1 dfef1275fb4f7966633f6e6ca331b06ee7fc48f0
+
+depends_build	port:gcc42
+
+fetch.use_epsv	no
+configure	{ }
+worksrcdir	${name}${version}-dist
+
+platform darwin i386 {
+		  global cdf_arch
+		  set cdf_arch i386
+}
+
+platform darwin powerpc {
+		  global cdf_arch
+		  set cdf_arch ppc
+		}
+
+patchfiles	patch-Makefile
+
+build		{
+		  system "make OS=macosx ENV=${cdf_arch} FORTRAN=yes FC=gfortran-mp-4.2 all"
+		}
+
+destroot	{
+		  reinplace "s|(INSTALLDIR)/bin/definitions.B|/${prefix}/bin/definitions.B|" ${worksrcpath}/Makefile
+		  reinplace "s|(INSTALLDIR)/bin/definitions.C|/${prefix}/bin/definitions.C|" ${worksrcpath}/Makefile
+		  reinplace "s|(INSTALLDIR)/bin/definitions.K|/${prefix}/bin/definitions.K|" ${worksrcpath}/Makefile
+		  system "make INSTALLDIR=${destroot}${prefix} install"
+		}
+
+post-destroot	{
+		  reinplace "s|${destroot}${prefix}|${prefix}|" ${destroot}${prefix}/bin/definitions.B
+		  reinplace "s|${destroot}${prefix}|${prefix}|" ${destroot}${prefix}/bin/definitions.C
+		  reinplace "s|${destroot}${prefix}|${prefix}|" ${destroot}${prefix}/bin/definitions.K
+		}
+

Added: trunk/dports/science/cdf/files/patch-Makefile
===================================================================
--- trunk/dports/science/cdf/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/science/cdf/files/patch-Makefile	2007-09-05 19:44:22 UTC (rev 28632)
@@ -0,0 +1,52 @@
+--- Makefile.sav	2007-09-05 15:18:41.000000000 -0400
++++ Makefile	2007-09-05 15:21:01.000000000 -0400
+@@ -166,39 +166,39 @@
+ EXEEXT_macosx=
+ 
+ CURSES_macosx_ppc=yes
+-CC_macosx_ppc=gcc
++CC_macosx_ppc=gcc-mp-4.2
+ LD_macosx_ppc=libtool -syslibroot /Developer/SDKs/MacOSX10.4u.sdk -arch_only ppc
+ LDOPTIONS_macosx_ppc=-dynamic
+ PIC_macosx_ppc=
+-COPTIONS_macosx_ppc=-isysroot/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -D__ppc__ -D__MACH__ -D__APPLE__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
++COPTIONS_macosx_ppc=-isysroot/Developer/SDKs/MacOSX10.4u.sdk -D__ppc__ -D__MACH__ -D__APPLE__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
+ COPTIONSld_macosx_ppc=-arch ppc -isysroot/Developer/SDKs/MacOSX10.4u.sdk
+-FOPTIONS_macosx_ppc=-w
++FOPTIONS_macosx_ppc=-w -fsecond-underscore
+ FOPTIONSld_macosx_ppc=
+ CURSESLIB_macosx_ppc=-lcurses
+ SYSLIBSexe_macosx_ppc=-L/Developer/SDKs/MacOSX10.4u.sdk -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 -lm -lc -lgcc -lSystemStubs
+ SYSLIBSshr_macosx_ppc=-L/Developer/SDKs/MacOSX10.4u.sdk -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 -lm -lc -lgcc -lSystemStubs
+ 
+ CURSES_macosx_ppc64=yes
+-CC_macosx_ppc64=gcc
++CC_macosx_ppc64=gcc-mp-4.2
+ LD_macosx_ppc64=libtool -syslibroot /Developer/SDKs/MacOSX10.4u.sdk -arch_only ppc64
+ LDOPTIONS_macosx_ppc64=-dynamic
+ PIC_macosx_ppc64=
+-COPTIONS_macosx_ppc64=-isysroot/Developer/SDKs/MacOSX10.4u.sdk -arch ppc64 -m64 -DMACOSX64 -D__ppc__ -D__MACH__ -D__APPLE__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
++COPTIONS_macosx_ppc64=-isysroot/Developer/SDKs/MacOSX10.4u.sdk -m64 -DMACOSX64 -D__ppc__ -D__MACH__ -D__APPLE__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
+ COPTIONSld_macosx_ppc64=-arch ppc64 -isysroot/Developer/SDKs/MacOSX10.4u.sdk
+-FOPTIONS_macosx_ppc64=-w
++FOPTIONS_macosx_ppc64=-w -fsecond-underscore
+ FOPTIONSld_macosx_ppc64=
+ CURSESLIB_macosx_ppc64=-lcurses
+ SYSLIBSexe_macosx_ppc64=-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/ppc64 -lm -lc -gcc
+ SYSLIBSshr_macosx_ppc64=-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/ppc64 -lm -lc -gcc
+ 
+ CURSES_macosx_i386=yes
+-CC_macosx_i386=gcc
++CC_macosx_i386=gcc-mp-4.2
+ LD_macosx_i386=libtool -syslibroot /Developer/SDKs/MacOSX10.4u.sdk -arch_only i386
+ LDOPTIONS_macosx_i386=-dynamic
+ PIC_macosx_i386=
+-COPTIONS_macosx_i386=-isysroot/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -Di386 -D__MACH__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
+-COPTIONSld_macosx_i386=-arch i386 -isysroot/Developer/SDKs/MacOSX10.4u.sdk
+-FOPTIONS_macosx_i386=-w
++COPTIONS_macosx_i386=-isysroot/Developer/SDKs/MacOSX10.4u.sdk -Di386 -D__MACH__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
++COPTIONSld_macosx_i386=-isysroot/Developer/SDKs/MacOSX10.4u.sdk
++FOPTIONS_macosx_i386=-w -fsecond-underscore
+ FOPTIONSld_macosx_i386=
+ CURSESLIB_macosx_i386=-lcurses
+ SYSLIBSexe_macosx_i386=-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib -L/usr/lib/gcc/i686-apple-darwin8/4.0.1 -lm -lc -lgcc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070905/5e817259/attachment.html


More information about the macports-changes mailing list