blob: 1318ee09ca505a190e5ca58d90a997b8ba0f32b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $NetBSD: Makefile,v 1.11 2001/05/03 22:16:50 jtb Exp $
DISTNAME= HDF4.1r4
PKGNAME= hdf-4.1r4
CATEGORIES= devel
MASTER_SITES= ftp://hdf.ncsa.uiuc.edu/HDF/HDF/HDF_Current/tar/ \
ftp://sunsite.doc.ic.ac.uk/packages/HDF/HDF/HDF_Current/tar/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://hdf.ncsa.uiuc.edu/hdf4.html
COMMENT= NCSA Hierarchical Data Format
DEPENDS+= jpeg-[0-9]*:../../graphics/jpeg
USE_FORTRAN= #defined
JPEGBASE_DEFAULT=${LOCALBASE}
EVAL_PREFIX+= JPEGBASE=jpeg
# This is ugly, but saves 31 patches
post-patch:
for i in fortran/config/jackets-fbsd.c \
fortran/fort_ps/mfhdfp.h fortran/jackets.src \
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 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 \
&& ${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 \
${WRKSRC}/mfhdf/ncgen/hdfncgen.1
post-install:
${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"
|