diff options
author | jtb <jtb@pkgsrc.org> | 2001-03-22 23:19:16 +0000 |
---|---|---|
committer | jtb <jtb@pkgsrc.org> | 2001-03-22 23:19:16 +0000 |
commit | d1b301a2f25f36e4a91271366a9c93415da55506 (patch) | |
tree | 4e68d3097c1ae7303c78e384923443878158a741 /devel/hdf/Makefile | |
parent | 3fe813dd941fee21eb54a0966c7546234d68c7f0 (diff) | |
download | pkgsrc-d1b301a2f25f36e4a91271366a9c93415da55506.tar.gz |
Added F2CBASE_DEFAULT=${LOCALBASE} so that EVAL_PREFIX will give a
sensible value if a dependency is not yet installed. Problem noted by
Matthias Drochner with fix by Alistair Crooks.
Fixed `ncgen' to generate files which #include "netcdf_hdf.h" and
"netcdf_hdf.inc" thus allowing the HDF and netCDF packages to coexist.
Added test target in package Makefile for compiling and running the tests
for the libraries and the `ncdump' program.
Diffstat (limited to 'devel/hdf/Makefile')
-rw-r--r-- | devel/hdf/Makefile | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/devel/hdf/Makefile b/devel/hdf/Makefile index f8f0e4ac864..44373a68c39 100644 --- a/devel/hdf/Makefile +++ b/devel/hdf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2001/03/09 22:47:43 jtb Exp $ +# $NetBSD: Makefile,v 1.5 2001/03/22 23:19:16 jtb Exp $ DISTNAME= HDF4.1r4 PKGNAME= hdf-4.1r4 @@ -15,6 +15,7 @@ DEPENDS+= jpeg-[0-9]*:../../graphics/jpeg USE_FORTRAN= #defined +F2CBASE_DEFAULT=${LOCALBASE} EVAL_PREFIX+= JPEGBASE=jpeg F2CBASE=f2c .if (${MACHINE_ARCH} == "alpha") @@ -27,15 +28,23 @@ post-patch: libsrc/cdftest.c libsrc/globdef.c libsrc/local_nc.h \ libsrc/xdrposix.c libsrc/xdrstdio.c ncdump/dumplib.c \ ncdump/vardata.c ncgen/generate.c ncgen/ncgen.h \ - libsrc/mfhdf.h; do \ + libsrc/mfhdf.h nctest/add.c nctest/atttests.c \ + nctest/cdftests.c nctest/dimtests.c nctest/driver.c \ + nctest/error.c nctest/misctest.c nctest/rec.c \ + nctest/slabs.c nctest/val.c nctest/vardef.c \ + nctest/varget.c nctest/vargetg.c nctest/varput.c \ + nctest/varputg.c nctest/vartests.c nctest/vputget.c \ + nctest/vputgetg.c; do \ ${SED} -e 's:"netcdf.h":"netcdf_hdf.h":g' \ -e 's:\<netcdf.h\>:\<netcdf_hdf.h\>:g' \ - < ${WRKSRC}/mfhdf/$$i > ${WRKSRC}/mfhdf/$$i.tmp \ + ${WRKSRC}/mfhdf/$$i > ${WRKSRC}/mfhdf/$$i.tmp \ && ${MV} -f ${WRKSRC}/mfhdf/$$i.tmp \ ${WRKSRC}/mfhdf/$$i; \ done ${MV} -f ${WRKSRC}/mfhdf/libsrc/netcdf.h.in \ ${WRKSRC}/mfhdf/libsrc/netcdf_hdf.h + ${MV} -f ${WRKSRC}/mfhdf/fortran/config/netcdf-fbsd.inc \ + ${WRKSRC}/mfhdf/fortran/netcdf_hdf.inc ${MV} -f ${WRKSRC}/mfhdf/ncdump/ncdump.1 \ ${WRKSRC}/mfhdf/ncdump/hdfncdump.1 ${MV} -f ${WRKSRC}/mfhdf/ncgen/ncgen.1 \ @@ -52,7 +61,7 @@ pre-build: pre-configure: ${CC} ${FILESDIR}/bytesex.c -o ${WRKSRC}/bytesex -SWAP=`${WRKSRC}/bytesex` +SWAP= `${WRKSRC}/bytesex` do-configure: @for f in libsrc dumper ncgen ncdump; do \ @@ -64,7 +73,15 @@ do-configure: done post-install: - ${INSTALL_DATA} ${WRKSRC}/mfhdf/fortran/config/netcdf-fbsd.inc \ - ${PREFIX}/include/hdf/netcdf_hdf.inc + ${INSTALL_DATA} ${WRKSRC}/mfhdf/fortran/netcdf_hdf.inc \ + ${PREFIX}/include/hdf + +test: build + @cd ${WRKSRC}/hdf/test && ${SETENV} ${MAKE_ENV} ${MAKE} + @cd ${WRKSRC}/hdf/test && ./testhdf + @cd ${WRKSRC}/hdf/test && ./fortest + @cd ${WRKSRC}/mfhdf/dumper && ${SH} testhdp.sh + @cd ${WRKSRC}/mfhdf/ncdump && ${SETENV} ${MAKE_ENV} ${MAKE} test + @cd ${WRKSRC}/mfhdf/nctest && ${SETENV} ${MAKE_ENV} ${MAKE} test .include "../../mk/bsd.pkg.mk" |