summaryrefslogtreecommitdiffstats
path: root/science/pnetcdf/Makefile
blob: 4eade2321451a91ffd60e7bbcf90420a079b459f (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
# Created by: Chao Shin <quakelee@cn.FreeBSD.org>
# $FreeBSD$

PORTNAME=	pnetcdf
PORTVERSION=	1.8.1
PORTREVISION=	1
CATEGORIES=	science parallel
MASTER_SITES=	http://cucis.ece.northwestern.edu/projects/PnetCDF/Release/ \
		LOCAL/sunpoet
DISTNAME=	parallel-netcdf-${PORTVERSION}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Library providing high-performance I/O

OPTIONS_DEFINE=	DOCS
OPTIONS_SINGLE=	MPI
OPTIONS_SINGLE_MPI=	OPENMPI OPENMPI2 MPICH2
OPTIONS_DEFAULT=OPENMPI
OPENMPI_DESC=		Parallel processing support via Open MPI 1.x
OPENMPI2_DESC=		Parallel processing support via Open MPI 2.x

CONFLICTS_INSTALL=	hdf-4.*

CFLAGS+=	-fPIC
CONFIGURE_ARGS=	ac_cv_fc_compiler_nag=no
GNU_CONFIGURE=	yes
MAKE_JOBS_UNSAFE=	yes
USE_PERL5=	build
USES=		fortran gmake pathfix perl5 tar:bzip2

PORTDOCS=	COPYRIGHT INSTALL README

MPICH2_CONFIGURE_ON=	--with-mpi=${LOCALBASE}
MPICH2_LIB_DEPENDS=	libmpich.so:net/mpich2
OPENMPI_CONFIGURE_ON=	--with-mpi=${LOCALBASE}/mpi/openmpi
OPENMPI_LIB_DEPENDS=	libmpi.so:net/openmpi
OPENMPI2_CONFIGURE_ON=	--with-mpi=${LOCALBASE}/mpi/openmpi2
OPENMPI2_LIB_DEPENDS=	libmpi.so:net/openmpi2

post-patch:
	@${REINPLACE_CMD} -e '/$$(INSTALL.*$$(PREFIX)/ s|$$(PREFIX)|$$(DESTDIR)&|' ${WRKSRC}/Makefile.in

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/n* ${STAGEDIR}${PREFIX}/bin/pnetcdf_version

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>
OpenPOWER on IntegriCloud