Lines 9-36
Link Here
|
9 |
PORTVERSION= 3.6.3 |
9 |
PORTVERSION= 3.6.3 |
10 |
PORTREVISION= 4 |
10 |
PORTREVISION= 4 |
11 |
CATEGORIES= science |
11 |
CATEGORIES= science |
12 |
MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/netcdf/ \ |
12 |
MASTER_SITES= http://www.unidata.ucar.edu/downloads/netcdf/ftp/ \ |
|
|
13 |
ftp://ftp.unidata.ucar.edu/pub/netcdf/ \ |
13 |
http://sunpoet.net/distfiles/ |
14 |
http://sunpoet.net/distfiles/ |
14 |
|
15 |
|
15 |
MAINTAINER= sunpoet@sunpoet.net |
16 |
MAINTAINER= sunpoet@sunpoet.net |
16 |
COMMENT?= Library for machine-independent, array-oriented data access |
17 |
COMMENT?= Library for machine-independent, array-oriented data access |
17 |
|
18 |
|
18 |
CONFLICTS= hdf-4.* netcdf-4.* |
19 |
CONFLICTS= hdf-4.* netcdf-4.* |
|
|
20 |
PORTSCOUT= limit:^3\. |
19 |
|
21 |
|
20 |
CONFIGURE_ARGS= --enable-shared |
22 |
CONFIGURE_ARGS= --enable-shared |
21 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC ${FTNTYPE}" |
23 |
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC" |
22 |
|
|
|
23 |
GNU_CONFIGURE= yes |
24 |
GNU_CONFIGURE= yes |
24 |
USE_LDCONFIG= yes |
25 |
USE_LDCONFIG= yes |
25 |
#CONFIGURE_ENV+= ${MAKE_ENV} |
|
|
26 |
|
27 |
SLAVEDIRS= science/netcdf-ftn |
28 |
|
29 |
MAN1= ncdump.1 ncgen.1 |
30 |
MAN3= netcdf.3 |
31 |
|
26 |
|
32 |
INFO= netcdf netcdf-c netcdf-cxx netcdf-f77 netcdf-f90 \ |
27 |
INFO= netcdf netcdf-c netcdf-cxx netcdf-f77 netcdf-f90 \ |
33 |
netcdf-install netcdf-tutorial |
28 |
netcdf-install netcdf-tutorial |
|
|
29 |
MAN1= ncdump.1 ncgen.1 |
30 |
MAN3= netcdf.3 |
34 |
|
31 |
|
35 |
OPTIONS= FORTRAN "Build library for Fortran" off |
32 |
OPTIONS= FORTRAN "Build library for Fortran" off |
36 |
|
33 |
|
Lines 38-64
Link Here
|
38 |
CONFIGURE_ARGS+=--enable-docs-install |
35 |
CONFIGURE_ARGS+=--enable-docs-install |
39 |
.else |
36 |
.else |
40 |
CONFIGURE_ARGS+=--disable-docs-install |
37 |
CONFIGURE_ARGS+=--disable-docs-install |
41 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-man-Makefile.in |
|
|
42 |
.endif |
43 |
|
44 |
.if !defined(NOPORTEXAMPLES) |
45 |
CONFIGURE_ARGS+=--enable-examples |
46 |
.else |
47 |
CONFIGURE_ARGS+=--disable-examples |
48 |
.endif |
38 |
.endif |
49 |
|
39 |
|
50 |
.include <bsd.port.pre.mk> |
40 |
.include <bsd.port.pre.mk> |
51 |
|
41 |
|
52 |
.if defined(WITH_FORTRAN) |
42 |
.if defined(WITH_FORTRAN) |
53 |
USE_FORTRAN= yes |
43 |
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -DpgiFortran" |
54 |
PKGNAMESUFFIX+= -ftn |
|
|
55 |
CONFLICTS+= netcdf-3.* |
44 |
CONFLICTS+= netcdf-3.* |
56 |
MAN3+= netcdf_f77.3 netcdf_f90.3 |
45 |
MAN3+= netcdf_f77.3 netcdf_f90.3 |
|
|
46 |
PKGNAMESUFFIX+= -ftn |
57 |
PLIST_SUB+= FORTRAN="" |
47 |
PLIST_SUB+= FORTRAN="" |
58 |
FTNTYPE= -DpgiFortran |
48 |
USE_FORTRAN= yes |
59 |
.else |
49 |
.else |
|
|
50 |
CONFIGURE_ARGS+=--disable-f77 --disable-f90 |
60 |
CONFLICTS+= netcdf-ftn-3.* |
51 |
CONFLICTS+= netcdf-ftn-3.* |
61 |
CONFIGURE_ARGS+=--disable-f77 |
|
|
62 |
PLIST_SUB+= FORTRAN="@comment " |
52 |
PLIST_SUB+= FORTRAN="@comment " |
63 |
.endif |
53 |
.endif |
64 |
|
54 |
|
Lines 69-78
Link Here
|
69 |
@${REINPLACE_CMD} -e \ |
59 |
@${REINPLACE_CMD} -e \ |
70 |
'271 s/\(info_docs\).*/html_docs\)/' \ |
60 |
'271 s/\(info_docs\).*/html_docs\)/' \ |
71 |
${WRKSRC}/man4/Makefile.in |
61 |
${WRKSRC}/man4/Makefile.in |
72 |
|
62 |
.if defined(NOPORTDOCS) |
73 |
post-install: |
63 |
@${REINPLACE_CMD} -e '790 s/install-docDATA //' \ |
74 |
${LN} -fs libnetcdf.so.4 ${PREFIX}/lib/libnetcdf.so |
64 |
${WRKSRC}/man/Makefile.in |
75 |
${LN} -fs libnetcdf_c++.so.4 ${PREFIX}/lib/libnetcdf_c++.so |
65 |
.endif |
76 |
|
66 |
|
77 |
regression-test: build |
67 |
regression-test: build |
78 |
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check |
68 |
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check |