aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2006-01-29 04:40:56 +0800
committerthierry <thierry@FreeBSD.org>2006-01-29 04:40:56 +0800
commit13d52c1b5e26214c5e104c7ca9538e2d1cb579b6 (patch)
treecaa799f2e2834e20cf8ba46a4a72ec728199a89e /science
parent34f3c182d11bd15a68c676af2cd1e3df44be59a4 (diff)
downloadfreebsd-ports-gnome-13d52c1b5e26214c5e104c7ca9538e2d1cb579b6.tar.gz
freebsd-ports-gnome-13d52c1b5e26214c5e104c7ca9538e2d1cb579b6.tar.zst
freebsd-ports-gnome-13d52c1b5e26214c5e104c7ca9538e2d1cb579b6.zip
Common Data Format (CDF) is a conceptual data abstraction for storing
multi-dimensional data sets. The basic component of CDF is a software programming interface that is a device independent view of the CDF data model. The application developer is insulated from the actual physical file format for reasons of conceptual simplicity, device independence, and future expandability. CDF files created on any given platform can be transported to any other platform on to which CDF is ported and used with any CDF tools or layered applications. A comparison between CDF, netCDF, HDF and HDF5 is available at <http://cdf.gsfc.nasa.gov/html/FAQ.html>.
Diffstat (limited to 'science')
-rw-r--r--science/Makefile1
-rw-r--r--science/cdf/Makefile59
-rw-r--r--science/cdf/distinfo3
-rw-r--r--science/cdf/files/patch-Makefile52
-rw-r--r--science/cdf/files/patch-src_include_cdfdist.h30
-rw-r--r--science/cdf/files/patch-src_include_cdflib.h11
-rw-r--r--science/cdf/files/patch-src_tests_Makefile29
-rw-r--r--science/cdf/files/pkg-message.in29
-rw-r--r--science/cdf/pkg-descr14
-rw-r--r--science/cdf/pkg-plist58
10 files changed, 286 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index d886f7a47da9..42fa754e24d8 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -10,6 +10,7 @@
SUBDIR += bblimage
SUBDIR += buddy
SUBDIR += cdcl
+ SUBDIR += cdf
SUBDIR += chemtool
SUBDIR += chemtool-devel
SUBDIR += clhep
diff --git a/science/cdf/Makefile b/science/cdf/Makefile
new file mode 100644
index 000000000000..57ad05920bf0
--- /dev/null
+++ b/science/cdf/Makefile
@@ -0,0 +1,59 @@
+# New ports collection makefile for: cdf
+# Date created: 26 January 2006
+# Whom: Thierry Thomas <thierry@pompo.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= cdf3
+PORTVERSION= 3.1
+CATEGORIES= science
+MASTER_SITES= http://windsor.gsfc.nasa.gov/standards/cdf/dist/cdf${VER}/unix/
+DISTNAME= cdf${VER}-dist-cdf
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Device independent view of the CDF data model
+
+MAKE_FLAGS= INSTALLDIR=${PREFIX} OS=${OPSYS:L} ENV=ports \
+ FORTRAN=yes F77=${F77}
+INSTALLS_SHLIB= yes
+
+VER= ${PORTVERSION:S/.//}
+
+F77?= f77
+
+WRKSRC= ${WRKDIR}/cdf${VER}-dist
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+DEFS= B C K
+PORTDOCS= CDF_copyright.txt CHANGES.txt Release.notes Welcome.txt
+
+pre-configure:
+.for def in ${DEFS}
+ ${REINPLACE_CMD} -e 's|<path>|${PREFIX}|' \
+ -e 's|/home/cdf/cdf30-dist|${PREFIX}|' \
+ ${WRKSRC}/src/definitions/definitions.${def}
+.endfor
+
+post-install:
+ ${MV} ${PREFIX}/lib/libcdf.so ${PREFIX}/lib/libcdf.so.0
+ ${LN} -sf ${PREFIX}/lib/libcdf.so.0 ${PREFIX}/lib/libcdf.so
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+ ${INSTALL_DATA} ${WRKSRC}/samples/* ${EXAMPLESDIR}
+ @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
+.endif
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
+
+.if defined(MAINTAINER_MODE)
+test: build
+ (cd ${BUILD_WRKSRC} ; \
+ ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
+.endif
+
+.include <bsd.port.mk>
diff --git a/science/cdf/distinfo b/science/cdf/distinfo
new file mode 100644
index 000000000000..534788c27f9e
--- /dev/null
+++ b/science/cdf/distinfo
@@ -0,0 +1,3 @@
+MD5 (cdf31-dist-cdf.tar.gz) = b23aed930238a49e57072543592cc95a
+SHA256 (cdf31-dist-cdf.tar.gz) = 090e25455b1da147c3f6778542086a7c0e86e6f027e27e8f35ba049d5e25c3db
+SIZE (cdf31-dist-cdf.tar.gz) = 915807
diff --git a/science/cdf/files/patch-Makefile b/science/cdf/files/patch-Makefile
new file mode 100644
index 000000000000..96172ffca73a
--- /dev/null
+++ b/science/cdf/files/patch-Makefile
@@ -0,0 +1,52 @@
+--- Makefile.orig Thu Jan 26 21:56:59 2006
++++ Makefile Sat Jan 28 20:38:26 2006
+@@ -297,6 +297,32 @@
+ SYSLIBSshr_linux_gnu32=-lm -lc
+
+ #------------------------------------------------------------------------------
++# Macros for FreeBSD.
++#------------------------------------------------------------------------------
++
++SHARED_freebsd=yes
++FOPTIONS_freebsd=-w
++FOPTIONSld_freebsd=${FFLAGS}
++SHAREDEXT_freebsd=so
++LDOPTIONSlibcdf_freebsd=-shared
++AROPTIONS_freebsd=rc
++RANLIB_freebsd=yes
++FC_freebsd=${F77}
++EXEEXT_freebsd=
++
++CURSES_freebsd_ports=yes
++CC_freebsd_ports=${CC}
++LD_freebsd_ports=ld
++PIC_freebsd_ports=-fPIC
++COPTIONS_freebsd_ports=${CFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DMALLOC_CHECK_=0
++COPTIONSld_freebsd_ports=
++FOPTIONS_freebsd_ports=${FFLAGS}
++FOPTIONSld_freebsd_ports=
++CURSESLIB_freebsd_ports=-lncurses
++SYSLIBSexe_freebsd_ports=-lm -lc
++SYSLIBSshr_freebsd_ports=-lm -lc
++
++#------------------------------------------------------------------------------
+ # Macros for Cygwin.
+ #------------------------------------------------------------------------------
+
+@@ -411,6 +437,7 @@
+ all.cygwin.gnu: all.build
+ all.mingw.gnu: all.build
+ all.mach.macosx: all.build
++all.freebsd.ports: all.build
+
+ all.build:
+ @cd $(LIBsrcDIR); $(MAKE) \
+@@ -1424,7 +1451,7 @@
+ show.qnx.gnu: show.notsupported
+ show.linux.gnu: show.supported
+ show.linux.gnu32: show.supported
+-show.breebsd.gnu: show.supported
++show.freebsd.ports: show.supported
+ show.cygwin.gnu: show.supported
+ show.mingw.gnu: show.supported
+ show.posix.vax: show.supported
diff --git a/science/cdf/files/patch-src_include_cdfdist.h b/science/cdf/files/patch-src_include_cdfdist.h
new file mode 100644
index 000000000000..3d80fa52a8cf
--- /dev/null
+++ b/science/cdf/files/patch-src_include_cdfdist.h
@@ -0,0 +1,30 @@
+--- ./src/include/cdfdist.h.orig Mon Jul 11 23:50:59 2005
++++ ./src/include/cdfdist.h Fri Jan 27 22:06:09 2006
+@@ -101,7 +101,7 @@
+ # define unix
+ #endif
+
+-#if defined(linux) || defined(__CYGWIN__) || defined(__MINGW32__)
++#if defined(linux) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__FreeBSD__)
+ # if defined(PPC)
+ # define POWERPC
+ # else
+@@ -143,7 +143,7 @@
+ # define alphavmsI
+ # endif
+ # else /* "vms" not defined if "-W ansi89" used. */
+-# if !defined(linux)
++# if !defined(linux) && !defined(__FreeBSD__)
+ # define posixSHELL
+ # define posixSHELLalpha
+ # if __D_FLOAT
+@@ -456,7 +456,8 @@
+ # endif
+ # endif
+ # if defined(macosX) || defined(__osf__) || defined(__CYGWIN__) || \
+- defined(vms) || defined(sgi) || defined(__MINGW32__)
++ defined(vms) || defined(sgi) || defined(__MINGW32__) || \
++ defined(__FreeBSD__)
+ # define FOPEN64 fopen
+ # else
+ # define FOPEN64 fopen64
diff --git a/science/cdf/files/patch-src_include_cdflib.h b/science/cdf/files/patch-src_include_cdflib.h
new file mode 100644
index 000000000000..9f0fdb2d0d75
--- /dev/null
+++ b/science/cdf/files/patch-src_include_cdflib.h
@@ -0,0 +1,11 @@
+--- ./src/include/cdflib.h.orig Mon Jul 11 23:51:18 2005
++++ ./src/include/cdflib.h Fri Jan 27 21:51:27 2006
+@@ -351,7 +351,7 @@
+ #if defined(unix) && !defined(AIX) && !defined(Mach) && !defined(hpux) || \
+ defined(__MINGW32__)
+ # if defined(linux) || defined(__CYGWIN__) || defined(macosX) || \
+- defined(sun) || defined(__MINGW32__)
++ defined(sun) || defined(__MINGW32__) || defined(__FreeBSD__)
+ # define Fif_ENTRYPOINT(ep__,ep_,ep,EP) ep__
+ # else
+ # define Fif_ENTRYPOINT(ep__,ep_,ep,EP) ep_
diff --git a/science/cdf/files/patch-src_tests_Makefile b/science/cdf/files/patch-src_tests_Makefile
new file mode 100644
index 000000000000..501b756554e6
--- /dev/null
+++ b/science/cdf/files/patch-src_tests_Makefile
@@ -0,0 +1,29 @@
+--- src/tests/Makefile.orig Thu May 12 19:12:49 2005
++++ src/tests/Makefile Fri Jan 27 22:20:32 2006
+@@ -31,16 +31,16 @@
+ SHELL=/bin/sh
+ NULL=true
+
+-FORTRAN=
+-FCx=
+-CCx=
+-SHARED=
+-FOPTIONS=
+-FOPTIONSld=
+-COPTIONS=
+-COPTIONSld=
+-SYSLIBS=
+-SHAREDEXT=
++#FORTRAN=
++#FCx=
++#CCx=
++#SHARED=
++#FOPTIONS=
++#FOPTIONSld=
++#COPTIONS=
++#COPTIONSld=
++#SYSLIBS=
++#SHAREDEXT=
+
+ INCLUDEcdf=../include
+
diff --git a/science/cdf/files/pkg-message.in b/science/cdf/files/pkg-message.in
new file mode 100644
index 000000000000..9af80f64c2ac
--- /dev/null
+++ b/science/cdf/files/pkg-message.in
@@ -0,0 +1,29 @@
+A set of script files named `definitions.<shell-type>' should now
+exist in the `bin' directory.
+`<shell-type>' specifies the type of shell (command interpreter)
+for which the script file was written: `C' (C-shell style), `K'
+(Korn shell style), or `B' (Bourne shell style). They are script
+files that a user would execute to set up the environment variables
+and aliases (where supported) necessary to use CDF.
+A user would then execute the appropriate script file to define
+aliases for the toolkit programs and environment variables for
+the locations of the include files, CDF library, etc.
+
+For the Korn, BASH, and POSIX shells, the following command
+would be used:
+
+ . %%PREFIX%%/bin/definitions.K
+
+For the Bourne shell, the following command would be used:
+
+ . %%PREFIX%%/bin/definitions.B
+
+For the C and `tcsh' shells, the following command would be
+used:
+
+ source %%PREFIX%%/bin/definitions.C
+
+Because aliases are not available when using the Bourne shell,
+the toolkit programs must be invoked by specifying the actual
+name of the executable file. The script file `definitions.B'
+describes how to do this.
diff --git a/science/cdf/pkg-descr b/science/cdf/pkg-descr
new file mode 100644
index 000000000000..621ed6fe8851
--- /dev/null
+++ b/science/cdf/pkg-descr
@@ -0,0 +1,14 @@
+Common Data Format (CDF) is a conceptual data abstraction for storing
+multi-dimensional data sets. The basic component of CDF is a software
+programming interface that is a device independent view of the CDF data
+model. The application developer is insulated from the actual physical
+file format for reasons of conceptual simplicity, device independence,
+and future expandability. CDF files created on any given platform can
+be transported to any other platform on to which CDF is ported and used
+with any CDF tools or layered applications. A more detailed introduction
+to CDF can be found in the CDF User's Guide.
+
+A comparison between CDF, netCDF, HDF and HDF5 is available at
+<http://cdf.gsfc.nasa.gov/html/FAQ.html>.
+
+WWW: http://cdf.gsfc.nasa.gov/
diff --git a/science/cdf/pkg-plist b/science/cdf/pkg-plist
new file mode 100644
index 000000000000..6099c8367d8c
--- /dev/null
+++ b/science/cdf/pkg-plist
@@ -0,0 +1,58 @@
+bin/cdfcompare
+bin/cdfconvert
+bin/cdfdir
+bin/cdfdump
+bin/cdfedit
+bin/cdfexport
+bin/cdfinquire
+bin/cdfstats
+bin/definitions.B
+bin/definitions.C
+bin/definitions.K
+bin/skeletoncdf
+bin/skeletontable
+include/cdf.h
+include/cdf.inc
+lib/cdf/help/cdf2skt.olh
+lib/cdf/help/cdf2sktj.olh
+lib/cdf/help/cdfbrow.ilh
+lib/cdf/help/cdfcmp.olh
+lib/cdf/help/cdfcmpj.olh
+lib/cdf/help/cdfcvt.olh
+lib/cdf/help/cdfcvtj.olh
+lib/cdf/help/cdfdirj.olh
+lib/cdf/help/cdfdump.olh
+lib/cdf/help/cdfdumpj.olh
+lib/cdf/help/cdfedit.ilh
+lib/cdf/help/cdfedit.olh
+lib/cdf/help/cdfeditj.olh
+lib/cdf/help/cdfinq.olh
+lib/cdf/help/cdfinqj.olh
+lib/cdf/help/cdfstatj.olh
+lib/cdf/help/cdfstats.olh
+lib/cdf/help/cdfxp.ilh
+lib/cdf/help/skt2cdf.olh
+lib/cdf/help/skt2cdfj.olh
+lib/libcdf.a
+lib/libcdf.so
+lib/libcdf.so.0
+%%PORTDOCS%%%%EXAMPLESDIR%%/OperateAttributes.c
+%%PORTDOCS%%%%EXAMPLESDIR%%/OperateCDF.c
+%%PORTDOCS%%%%EXAMPLESDIR%%/OperateVariables.c
+%%PORTDOCS%%%%EXAMPLESDIR%%/cacsst2.cdf
+%%PORTDOCS%%%%EXAMPLESDIR%%/cacsst2.skt
+%%PORTDOCS%%%%EXAMPLESDIR%%/d103a2x.cdf
+%%PORTDOCS%%%%EXAMPLESDIR%%/example.dat
+%%PORTDOCS%%%%EXAMPLESDIR%%/example1.c
+%%PORTDOCS%%%%EXAMPLESDIR%%/example1.cdf
+%%PORTDOCS%%%%EXAMPLESDIR%%/example2.cdf
+%%PORTDOCS%%%%EXAMPLESDIR%%/example2.f
+%%PORTDOCS%%%%EXAMPLESDIR%%/example2.o
+%%PORTDOCS%%%%EXAMPLESDIR%%/geocpi0.cdf
+%%PORTDOCS%%%%EXAMPLESDIR%%/geocpi0.skt
+%%PORTDOCS%%%%EXAMPLESDIR%%/ij01r39.cdf
+%%PORTDOCS%%%%EXAMPLESDIR%%/read_example1.c
+%%PORTDOCS%%%%EXAMPLESDIR%%/zfia10x.cdf
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+@dirrm lib/cdf/help
+@dirrm lib/cdf