$NetBSD: patch-af,v 1.6 2001/04/19 00:56:34 jtb Exp $ --- mfhdf/libsrc/Makefile.orig Thu Apr 19 00:17:24 2001 +++ mfhdf/libsrc/Makefile @@ -0,0 +1,27 @@ +.PATH: ${.CURDIR} ${.CURDIR}/../fortran ${.CURDIR}/../fortran/config + +LIB= mfhdf + +LIBDIR= ${PREFIX}/lib + +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 + +CPPFLAGS+= -Dunix -DHDF -DNDEBUG -DNETLONG=int +CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../hdf/src + +NOLINT= 1 +MKPIC= no +MKPICINSTALL= no +MKPROFILE= no + +NOGCCERROR= 1 + +afterinstall: + ${BSD_INSTALL_DATA_DIR} ${PREFIX}/include/hdf + for f in hdf2netcdf.h local_nc.h mfhdf.h netcdf_hdf.h; do \ + ${BSD_INSTALL_DATA} $$f ${PREFIX}/include/hdf/; \ + done + +.include