Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2007 11:05:43 +0800 (CST)
From:      CHAO Shin <quakelee@cn.FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/112540: [PATCH] science/pnetcdf add a dependence
Message-ID:  <200705090305.l4935hSI031761@tarsier.delphij.net>
Resent-Message-ID: <200705090310.l493A5TT050432@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         112540
>Category:       ports
>Synopsis:       [PATCH] science/pnetcdf add a dependence
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 09 03:10:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     CHAO Shin
>Release:        FreeBSD 7.0-current i386
>Organization:
The FreeBSD Simplified Chinese Project
>Environment:
System: FreeBSD portyard.sysdept.sina.com.cn 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Feb 1 19:02:06 CST 2007 root@portyard.sysdept.sina.com.cn:/usr/obj/usr/src/sys/GX270 i386

>Description:
		add a dependence of gcc42. for someone installed mpich2 without
		gfortran42.
>How-To-Repeat:
>Fix:

	

--- patch-pnetcdf.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/science/pnetcdf/Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 Makefile
--- Makefile	30 Apr 2007 13:44:51 -0000	1.1
+++ Makefile	9 May 2007 03:00:06 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	pnetcdf
 PORTVERSION=	1.0.1
+PORTREVISION=	1
 CATEGORIES=	science parallel
 MASTER_SITES=	http://www-unix.mcs.anl.gov/parallel-netcdf/
 DISTNAME=	parallel-netcdf-${PORTVERSION}
@@ -30,12 +31,14 @@ MAN3=		pnetcdf.3
 .include <bsd.port.pre.mk>
 
 .if defined(WITH_OPENMPI)
-BUILD_DEPENDS+=	${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
+BUILD_DEPENDS+=	${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi \
+		gfortran42:${PORTSDIR}/lang/gcc42
 RUN_DEPENDS+=	${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi
 CONFIGURE_ARGS=	--enable-shared --mandir=${PREFIX}/man --disable-f77 --with-mpi=${PREFIX}/mpi/openmpi
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran"
 .else
-BUILD_DEPENDS+=	${LOCALBASE}/mpich2/bin/mpicc:${PORTSDIR}/net/mpich2
+BUILD_DEPENDS+=	${LOCALBASE}/mpich2/bin/mpicc:${PORTSDIR}/net/mpich2 \
+		gfortran42:${PORTSDIR}/lang/gcc42
 RUN_DEPENDS+=	${LOCALBASE}/mpich2/lib/libmpich.so:${PORTSDIR}/net/mpich2
 CONFIGURE_ARGS=	--enable-shared --mandir=${PREFIX}/man --disable-f77 --with-mpi=${PREFIX}/mpich2
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran"
--- patch-pnetcdf.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705090305.l4935hSI031761>