Added: trunk/dports/science/cdf-to-fits/Portfile (0 => 61066)
--- trunk/dports/science/cdf-to-fits/Portfile (rev 0)
+++ trunk/dports/science/cdf-to-fits/Portfile 2009-12-01 16:08:10 UTC (rev 61066)
@@ -0,0 +1,45 @@
+# $Id$
+
+PortSystem 1.0
+
+name cdf-to-fits
+version 1.0
+maintainers gmail.com:doc.aronnax
+categories science
+description CDF to FITS converter
+long_description Tool for converting CDF files to FITS files
+homepage http://cdf.gsfc.nasa.gov/html/dtws.html
+platforms darwin
+fetch.use_epsv no
+master_sites ftp://cdaweb.gsfc.nasa.gov/pub/cdf/conversion_tools/source/
+distname ${name}
+dist_subdir ${name}/${version}
+extract.suffix .tar
+extract.cmd tar
+extract.pre_args -xf
+extract.post_args
+
+# cdf is not universal
+universal_variant no
+
+checksums md5 d805504740ec92c40a85b712fe57b168 \
+ sha1 c2a6802b4819f4f39a6f24ecd940c9841e19fa16 \
+ rmd160 091fa81c6bc92a875134e041aa2da6152dfb754b
+
+depends_lib port:cfitsio \
+ port:cdf
+
+patchfiles patch-Makefile.in.diff
+
+configure.args --with-cfitsio-prefix=${prefix} \
+ --with-cdf-prefix=${prefix}
+
+destroot.post_args INSTDIR=${destroot}${prefix}/bin
+
+post-destroot {
+ set docdir ${destroot}${prefix}/share/doc/${name}
+ xinstall -d ${docdir}
+ xinstall -m 644 -W ${worksrcpath} \
+ README \
+ ${docdir}
+}
Property changes on: trunk/dports/science/cdf-to-fits/Portfile
___________________________________________________________________
Added: trunk/dports/science/cdf-to-fits/files/patch-Makefile.in.diff (0 => 61066)
--- trunk/dports/science/cdf-to-fits/files/patch-Makefile.in.diff (rev 0)
+++ trunk/dports/science/cdf-to-fits/files/patch-Makefile.in.diff 2009-12-01 16:08:10 UTC (rev 61066)
@@ -0,0 +1,11 @@
+--- Makefile.in.orig 2004-05-24 06:12:14.000000000 -0700
++++ Makefile.in 2009-10-08 19:38:37.000000000 -0700
+@@ -1,7 +1,7 @@
+ #
+ # Makefile for cdf-to-fits
+ #
+-INSTALL_DIR = `pwd`
++INSTALL_DIR = ${INSTDIR}
+ CC = @CC@
+
+ CFLAGS = @CFLAGS@