Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= pnetcdf |
8 |
PORTNAME= pnetcdf |
9 |
PORTVERSION= 1.0.1 |
9 |
PORTVERSION= 1.0.1 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 2 |
11 |
CATEGORIES= science parallel |
11 |
CATEGORIES= science parallel |
12 |
MASTER_SITES= http://www-unix.mcs.anl.gov/parallel-netcdf/ |
12 |
MASTER_SITES= http://www-unix.mcs.anl.gov/parallel-netcdf/ |
13 |
DISTNAME= parallel-netcdf-${PORTVERSION} |
13 |
DISTNAME= parallel-netcdf-${PORTVERSION} |
Lines 19-45
CONFLICTS= hdf-4.*
Link Here
|
19 |
|
19 |
|
20 |
USE_BZIP2= YES |
20 |
USE_BZIP2= YES |
21 |
|
21 |
|
22 |
OPTIONS= OPENMPI "Use openmpi instead of mpich2" off |
22 |
OPTIONS= OPENMPI "Use openmpi instead of mpich2" off \ |
|
|
23 |
FORTRAN "With Fortran Interface" off |
23 |
|
24 |
|
24 |
GNU_CONFIGURE= yes |
25 |
GNU_CONFIGURE= yes |
25 |
USE_LDCONFIG= yes |
26 |
USE_LDCONFIG= yes |
26 |
USE_GMAKE= yes |
27 |
USE_GMAKE= yes |
|
|
28 |
USE_AUTOTOOLS= autoconf:259 |
27 |
|
29 |
|
28 |
MAN1= ncmpigen.1 ncmpidump.1 |
30 |
MAN1= ncmpigen.1 ncmpidump.1 |
29 |
MAN3= pnetcdf.3 |
31 |
MAN3= pnetcdf.3 |
30 |
|
32 |
|
31 |
.include <bsd.port.pre.mk> |
33 |
.include <bsd.port.pre.mk> |
32 |
|
34 |
|
|
|
35 |
.if defined(WITH_FORTRAN) |
36 |
WANT_FORTRAN= yes |
37 |
PLIST_SUB+= FORTRANINC="" |
38 |
#BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42 |
39 |
#FC= gfortran42 |
40 |
#F77= gfortran42 |
41 |
CONFIGURE_ARGS+= --disable-f77 |
42 |
.else |
43 |
PLIST_SUB+= FORTRANINC="@comment " |
44 |
CONFIGURE_ARGS+= --disable-fortran --disable-f77 |
45 |
.endif |
46 |
|
33 |
.if defined(WITH_OPENMPI) |
47 |
.if defined(WITH_OPENMPI) |
34 |
BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi |
48 |
BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi |
35 |
RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi |
49 |
RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi |
36 |
CONFIGURE_ARGS= --enable-shared --mandir=${PREFIX}/man --disable-f77 --with-mpi=${PREFIX}/mpi/openmpi |
50 |
CONFIGURE_ARGS+= --enable-shared --mandir=${PREFIX}/man --with-mpi=${PREFIX}/mpi/openmpi |
37 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran" |
51 |
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran" |
38 |
.else |
52 |
.else |
39 |
BUILD_DEPENDS+= ${LOCALBASE}/mpich2/bin/mpicc:${PORTSDIR}/net/mpich2 |
53 |
BUILD_DEPENDS+= ${LOCALBASE}/mpich2/bin/mpicc:${PORTSDIR}/net/mpich2 |
40 |
RUN_DEPENDS+= ${LOCALBASE}/mpich2/lib/libmpich.so:${PORTSDIR}/net/mpich2 |
54 |
RUN_DEPENDS+= ${LOCALBASE}/mpich2/lib/libmpich.so:${PORTSDIR}/net/mpich2 |
41 |
CONFIGURE_ARGS= --enable-shared --mandir=${PREFIX}/man --disable-f77 --with-mpi=${PREFIX}/mpich2 |
55 |
CONFIGURE_ARGS+= --enable-shared --mandir=${PREFIX}/man --with-mpi=${PREFIX}/mpich2 |
42 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran" |
56 |
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran" |
43 |
.endif |
57 |
.endif |
44 |
|
58 |
|
45 |
post-install: |
59 |
post-install: |