diff options
Diffstat (limited to 'science/hdf5-18/files/mfhdf')
-rw-r--r-- | science/hdf5-18/files/mfhdf/Makefile | 13 | ||||
-rw-r--r-- | science/hdf5-18/files/mfhdf/dumper/Makefile | 13 | ||||
-rw-r--r-- | science/hdf5-18/files/mfhdf/fortran/Makefile | 42 | ||||
-rw-r--r-- | science/hdf5-18/files/mfhdf/libsrc/Makefile | 43 | ||||
-rw-r--r-- | science/hdf5-18/files/mfhdf/ncdump/Makefile | 22 | ||||
-rw-r--r-- | science/hdf5-18/files/mfhdf/ncgen/Makefile | 72 | ||||
-rw-r--r-- | science/hdf5-18/files/mfhdf/nctest/Makefile | 19 |
7 files changed, 0 insertions, 224 deletions
diff --git a/science/hdf5-18/files/mfhdf/Makefile b/science/hdf5-18/files/mfhdf/Makefile deleted file mode 100644 index 202766e54f67..000000000000 --- a/science/hdf5-18/files/mfhdf/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $FreeBSD$ - -SUBDIR = fortran libsrc ncgen ncdump nctest dumper - -.include <bsd.subdir.mk> - -test: all - @for d in ${SUBDIR} ; do \ - echo "===> testing in $$d"; \ - cd $$d; \ - ${MAKE} test; \ - cd ..; \ - done diff --git a/science/hdf5-18/files/mfhdf/dumper/Makefile b/science/hdf5-18/files/mfhdf/dumper/Makefile deleted file mode 100644 index 1bd8b3dfa744..000000000000 --- a/science/hdf5-18/files/mfhdf/dumper/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $FreeBSD$ - -PROG = hdp -NOMAN = 1 -LDFLAGS += -L${.CURDIR}/../libsrc -L${.CURDIR}/../../hdf/src -lmfhdf -ldf -CFLAGS += -I${.CURDIR}/../libsrc -I${.CURDIR}/../../hdf/src - -SRCS = hdp.c hdp_list.c hdp_sds.c hdp_util.c hdp_vd.c hdp_vg.c hdp_rig.c show.c hdp_dump.c hdp_gr.c - -.include <bsd.prog.mk> - -test: ${PROG} - env LD_LIBRARY_PATH=${.CURDIR}/../libsrc:${.CURDIR}/../../hdf/src sh testhdp.sh diff --git a/science/hdf5-18/files/mfhdf/fortran/Makefile b/science/hdf5-18/files/mfhdf/fortran/Makefile deleted file mode 100644 index 03571382ccc3..000000000000 --- a/science/hdf5-18/files/mfhdf/fortran/Makefile +++ /dev/null @@ -1,42 +0,0 @@ -# $FreeBSD$ - -.PATH: ${.CURDIR} ${.CURDIR}/config - -all: - -NOMAN = 1 - -FFLAGS += ${CFLAGS} -DNDEBUG -Nn802 -Nx400 - -LDFLAGS += -L${.CURDIR}/../libsrc -L${.CURDIR}/../../hdf/src -lmfhdf -ldf - -afterinstall: - install -c -o root -g wheel -m 444 config/netcdf-fbsd.inc \ - ${PREFIX}/include/netcdf.inc - -.include <bsd.prog.mk> - -ENVIR = env LD_LIBRARY_PATH=${.CURDIR}/../libsrc:${.CURDIR}/../../hdf/src - -CLEANFILES+= hdftest hdftest.o ftest ftest-fbsd.o - -config/netcdf.inc: - ln -s netcdf-fbsd.inc config/netcdf.inc - -ftest: ftest-fbsd.f config/netcdf.inc - ${MAKE} PROG=$@ SRCS=ftest-fbsd.f $@ - -hdftest: hdftest.f - ${MAKE} PROG=$@ SRCS=hdftest.f $@ - -test: ftest hdftest - mkdir -p testdir - # ================================ - # netCDF Fortran interface tests - # ================================ - ${ENVIR} ./ftest - ${ENVIR} ./hdftest > hdfout.new - @diff -Bb hdfout.new hdftst.sav && \ - echo "*** HDF-SD Fortran interface tests passed ***" || \ - (echo "*** HDF-SD Fortran interface tests failed ***"; \ - echo "The above differences are OK if small") diff --git a/science/hdf5-18/files/mfhdf/libsrc/Makefile b/science/hdf5-18/files/mfhdf/libsrc/Makefile deleted file mode 100644 index 7ca23f2d374e..000000000000 --- a/science/hdf5-18/files/mfhdf/libsrc/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -# $FreeBSD$ - -.PATH: ${.CURDIR} ${.CURDIR}/../fortran/config ${.CURDIR}/../fortran - -SRCS = array.c attr.c cdf.c dim.c file.c iarray.c error.c \ - globdef.c putget.c putgetg.c sharray.c string.c var.c \ - hdfsds.c mfsd.c nssdc.c xdrposix.c \ - jackets-fbsd.c mfsdf.c mfsdff.f - -LIB = mfhdf -SHLIB_MAJOR = 2 -SHLIB_MINOR = 3 - -LIBDIR = ${PREFIX}/lib - -# uncomment the line below to avoid building static libraries -#INTERNALLIB = Yes - -CFLAGS += -DNDEBUG -DHDF -I${.CURDIR}/../../hdf/src -I${.CURDIR} -.if ${MACHINE_ARCH} == "i386" -CFLAGS += -DSWAP -.endif - -LDADD += -L${.CURDIR}/../../hdf/src -ldf -LDFLAGS += -L. -l${LIB} ${LDADD} - -afterinstall: - install -c -o root -g wheel -m 444 hdf2netcdf.h local_nc.h \ - mfhdf.h netcdf.h ${PREFIX}/include - -.include <bsd.lib.mk> - -test: ${SHLIB_NAME} cdftest hdftest - env LD_LIBRARY_PATH=${.CURDIR}:${.CURDIR}/../../hdf/src ./cdftest > cdfout.new - @diff cdfout.new testout.sav && \ - echo "*** netCDF passes formatted test ***" || \ - (echo "*** netCDF fails formatted test ***" ; \ - echo "The above differences are OK if small") - env LD_LIBRARY_PATH=${.CURDIR}:${.CURDIR}/../../hdf/src ./hdftest > hdfout.new - @diff hdfout.new hdfout.sav && \ - echo "*** HDF passes formatted test ***" || \ - (echo "*** HDF fails formatted test ***" ; \ - echo "The above differences are OK if small") diff --git a/science/hdf5-18/files/mfhdf/ncdump/Makefile b/science/hdf5-18/files/mfhdf/ncdump/Makefile deleted file mode 100644 index 727b1de60b32..000000000000 --- a/science/hdf5-18/files/mfhdf/ncdump/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $FreeBSD$ - -PROG = ncdump -MANDIR = ${PREFIX}/man/man - -LDFLAGS += -L${.CURDIR}/../libsrc -L${.CURDIR}/../../hdf/src -lmfhdf -ldf -CFLAGS += -I${.CURDIR}/../libsrc -SRCS = ncdump.c vardata.c dumplib.c - -.include <bsd.prog.mk> - -ENVIR = env LD_LIBRARY_PATH=${.CURDIR}/../../hdf/src:${.CURDIR}/../libsrc -NCGEN = ${.CURDIR}/../ncgen/ncgen - -test: $(PROG) test0.cdl - ${ENVIR} $(NCGEN) -o test0.nc -n test0.cdl - ${ENVIR} ./$(PROG) test0.nc > test1.cdl - ${ENVIR} $(NCGEN) -o test1.nc -n test1.cdl - ${ENVIR} ./$(PROG) -n test0 test1.nc > test2.cdl - @cmp test1.cdl test2.cdl && \ - echo "*** $(PROGRAM) test successful ***" ; \ - rm test1.cdl test1.nc test2.cdl diff --git a/science/hdf5-18/files/mfhdf/ncgen/Makefile b/science/hdf5-18/files/mfhdf/ncgen/Makefile deleted file mode 100644 index d954137cffa8..000000000000 --- a/science/hdf5-18/files/mfhdf/ncgen/Makefile +++ /dev/null @@ -1,72 +0,0 @@ -# $FreeBSD$ - -PROG = ncgen -MANDIR = ${PREFIX}/man/man -LDFLAGS += -L${.CURDIR}/../libsrc -L${.CURDIR}/../../hdf/src -lmfhdf -ldf -CFLAGS += -I${.CURDIR}/../libsrc -I${.CURDIR}/../../hdf/src -DNDEBUG -SRCS = main.c generate.c load.c ncgentab.c escapes.c \ - getfill.c init.c close.c genlib.c - -ENVIR = env LD_LIBRARY_PATH=${.CURDIR}/../libsrc:${.CURDIR}/../../hdf/src -NCDUMP = ${.CURDIR}/../ncdump/ncdump - -test: $(PROG) test0.cdl btest ctest ftest - -ncgenyy.c: ncgen.l - ${LEX} ${LFLAGS} ncgen.l - mv lex.yy.c ncgenyy.c - -ncgentab.c: ncgenyy.c ncgen.y - ${YACC} ${YFLAGS} ncgen.y - mv y.tab.c ncgentab.c - mv y.tab.h ncgentab.h - -.include <bsd.prog.mk> - -# -# test "-b" option of ncgen -# -btest: $(PROG) test0.cdl test1.cdl - ${ENVIR} ./$(PROG) -b test1.cdl - ${ENVIR} $(NCDUMP) test1.nc > test2.cdl - @diff test1.cdl test2.cdl && \ - echo "*** $(PROG) -b test successful ***" - -# -# test "-c" option of ncgen -# -ctest: test1.cdl ctest0 - ${ENVIR} ./ctest0 # tests `-c' option, creates ctest0.nc - ${ENVIR} $(NCDUMP) -n test1 ctest0.nc > ctest1.cdl - @diff test1.cdl ctest1.cdl && \ - echo "*** $(PROG) -c test successful ***" - -ctest0: ncgen test0.cdl - ${ENVIR} ./$(PROG) -c -o ctest0.nc test0.cdl > test0.c - $(CC) $(CFLAGS) -o $@ test0.c ${LDFLAGS} - -# -# test "-f" option of ncgen -# -ftest: test1.cdl ftest0 - ${ENVIR} ./ftest0 - ${ENVIR} $(NCDUMP) -n test1 ftest0.nc > ftest1.cdl - @if diff test1.cdl ftest1.cdl; then \ - echo "*** ncgen -f test successful ***"; \ - else \ - echo "*** ncgen -f test failed " \ - "(but roundoff differences are OK) ***"; \ - fi - -ftest0: $(PROG) test0.cdl netcdf.inc - ${ENVIR} ./$(PROG) -f -o ftest0.nc test0.cdl > test0.f; \ - $(FC) $(FFLAGS) ${CFLAGS} -o $@ test0.f ${LDFLAGS} - -test1.cdl: test0.nc - ${ENVIR} $(NCDUMP) -n test1 test0.nc > $@ - -test0.nc: $(PROG) test0.cdl - ${ENVIR} ./$(PROG) -b -o test0.nc test0.cdl - -netcdf.inc: - ln -s ../fortran/config/netcdf-fbsd.inc $@ diff --git a/science/hdf5-18/files/mfhdf/nctest/Makefile b/science/hdf5-18/files/mfhdf/nctest/Makefile deleted file mode 100644 index 722d3524a482..000000000000 --- a/science/hdf5-18/files/mfhdf/nctest/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $FreeBSD$ - -PROG = nctest -NOMAN = 1 -CFLAGS += -I${.CURDIR}/../libsrc -LDFLAGS += -L${.CURDIR}/../libsrc -L${.CURDIR}/../../hdf/src -lmfhdf -ldf -SRCS = varget.c vargetg.c varput.c varputg.c vardef.c vartests.c \ - vputget.c vputgetg.c driver.c cdftests.c dimtests.c rec.c \ - atttests.c misctest.c add.c error.c emalloc.c val.c slabs.c - -install: - -.include <bsd.prog.mk> - -test: $(PROG) - @ echo "===========================" - @ echo "netCDF C interface tests" - @ echo "===========================" - env LD_LIBRARY_PATH=${.CURDIR}/../libsrc:${.CURDIR}/../../hdf/src ./$(PROG) |