1998-05-03 03:43:08 +02:00
|
|
|
# New ports collection makefile for: mpich (portable mpi standard imp.)
|
|
|
|
# Date created: 2 May 1998
|
2003-08-18 08:15:19 +02:00
|
|
|
# Whom: dbader@ece.unm.edu
|
1998-05-03 03:43:08 +02:00
|
|
|
#
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1998-05-03 03:43:08 +02:00
|
|
|
#
|
|
|
|
|
2006-07-22 10:35:22 +02:00
|
|
|
PORTNAME= mpich2
|
2008-04-08 21:02:12 +02:00
|
|
|
PORTVERSION= 1.0.7
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 1
|
2008-06-07 23:20:58 +02:00
|
|
|
PORTEPOCH= 3
|
2002-11-24 14:41:11 +01:00
|
|
|
CATEGORIES= net parallel
|
2008-04-08 21:02:12 +02:00
|
|
|
MASTER_SITES= http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/
|
2001-08-26 19:57:37 +02:00
|
|
|
DIST_SUBDIR= mpich
|
2006-07-22 10:35:22 +02:00
|
|
|
#PATCH_SITES= ftp://ftp.mcs.anl.gov/pub/mpi/mpich2-patch/
|
|
|
|
#PATCHFILES=
|
1998-05-03 03:43:08 +02:00
|
|
|
|
2008-08-24 16:34:11 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-07-22 10:35:22 +02:00
|
|
|
COMMENT= A portable implementation of MPI-1 and MPI-2
|
2005-05-14 14:16:02 +02:00
|
|
|
|
2006-12-19 21:08:10 +01:00
|
|
|
#BUILD_DEPENDS= doctext:${PORTSDIR}/textproc/sowing
|
|
|
|
|
2006-07-22 10:35:22 +02:00
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
# You may define these options:
|
|
|
|
#
|
|
|
|
# - WITHOUT_JAVA don't build MPE Jumpshot-4
|
|
|
|
# - WITHOUT_X11 disable MPE graphics routines
|
2006-09-25 21:43:30 +02:00
|
|
|
# - WITH_SMPD use SMPD instead of MPD for OS-mixed cluster
|
2006-07-22 10:35:22 +02:00
|
|
|
#-----------------------------------------------------------------------
|
1998-05-03 03:43:08 +02:00
|
|
|
|
2006-07-22 10:35:22 +02:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PERL5_BUILD=yes
|
2007-12-11 22:09:42 +01:00
|
|
|
USE_GNOME= pkgconfig
|
2004-02-22 23:34:16 +01:00
|
|
|
|
2006-07-22 10:35:22 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-03-09 01:33:51 +01:00
|
|
|
CONFIGURE_ARGS= --enable-romio --enable-sharedlibs=gcc
|
2007-12-13 22:14:28 +01:00
|
|
|
CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" LDFLAGS="${PTHREAD_LIBS}" F77="${F77}" FFLAGS="${FFLAGS}"
|
2006-07-22 10:35:22 +02:00
|
|
|
FFLAGS?= -O2
|
|
|
|
NOCCACHE= yes
|
|
|
|
MAKE_ENV= CCACHE_DISABLE=yes
|
2005-05-26 03:44:10 +02:00
|
|
|
|
2007-07-12 10:46:45 +02:00
|
|
|
USE_FORTRAN= yes
|
2007-01-11 00:42:54 +01:00
|
|
|
F90FLAGS+= ${FFLAGS}
|
2007-12-13 22:14:28 +01:00
|
|
|
CONFIGURE_ENV+= F90="${FC}" F90FLAGS="${F90FLAGS}"
|
2007-01-11 00:42:54 +01:00
|
|
|
|
2006-07-22 10:35:22 +02:00
|
|
|
NO_MTREE= yes
|
2006-08-08 17:56:40 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-07-22 10:35:22 +02:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
2005-05-26 03:44:10 +02:00
|
|
|
|
2004-02-22 23:34:16 +01:00
|
|
|
.if defined(WITHOUT_X11)
|
2006-07-22 10:35:22 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-graphics
|
|
|
|
WITHOUT_JAVA= yes
|
2004-02-22 23:34:16 +01:00
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.else
|
2008-08-24 16:34:11 +02:00
|
|
|
CONFIGURE_ARGS+= --x-includes=${X11BASE}/include --x-libraries==${X11BASE}/lib
|
|
|
|
USE_XORG= x11 xt
|
2008-04-08 21:02:12 +02:00
|
|
|
PLIST_SUB+= X11=${PLX11}
|
2004-02-22 23:34:16 +01:00
|
|
|
.endif
|
2006-07-22 10:35:22 +02:00
|
|
|
.if defined(WITHOUT_JAVA)
|
2005-05-14 14:16:02 +02:00
|
|
|
CONFIGURE_ARGS+= --without-java
|
2002-09-12 19:58:39 +02:00
|
|
|
PLIST_SUB+= JAVA="@comment "
|
2008-04-08 21:02:12 +02:00
|
|
|
PLX11= "@comment "
|
2002-09-12 19:58:39 +02:00
|
|
|
.else
|
2005-05-14 14:16:02 +02:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.4+
|
|
|
|
BUILD_DEPENDS+= javavm:${PORTSDIR}/java/javavmwrapper
|
2006-07-22 10:35:22 +02:00
|
|
|
RUN_DEPENDS+= javavm:${PORTSDIR}/java/javavmwrapper
|
2005-05-14 14:16:02 +02:00
|
|
|
PLIST_SUB+= JAVA=""
|
2008-04-08 21:02:12 +02:00
|
|
|
PLX11= ""
|
2002-09-12 19:58:39 +02:00
|
|
|
.endif
|
2000-11-17 12:45:09 +01:00
|
|
|
|
2006-09-25 21:43:30 +02:00
|
|
|
.if defined(WITH_SMPD)
|
|
|
|
CONFIGURE_ARGS+= --with-pmi=smpd --with-pm=smpd
|
|
|
|
PLIST_SUB+= PM_MPD="@comment " PM_SMPD=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-pmi=simple --with-pm=mpd
|
|
|
|
PLIST_SUB+= PM_MPD="" PM_SMPD="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-07-22 10:35:22 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
CONFIGURE_ARGS+= --without-docdir --without-htmldir
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-docdir=${DOCSDIR} --with-htmldir=${DOCSDIR}
|
2005-05-14 14:16:02 +02:00
|
|
|
.endif
|
|
|
|
|
2007-09-22 09:21:12 +02:00
|
|
|
LIBSSO= fmpich mpich mpichcxx
|
2007-03-09 01:33:51 +01:00
|
|
|
|
2006-08-04 17:02:06 +02:00
|
|
|
THREAD2FIX= configure test/mpi/threads/comm/Makefile.in \
|
|
|
|
test/mpi/threads/pt2pt/Makefile.in
|
2006-07-22 10:35:22 +02:00
|
|
|
LOCALBASE2FIX= src/mpe2/src/slog2sdk/trace_rlog/configure \
|
2008-04-08 21:02:12 +02:00
|
|
|
src/mpe2/src/slog2sdk/trace_sample/configure \
|
|
|
|
src/mpe2/src/graphics/configure
|
2006-07-22 10:35:22 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-09-06 23:14:00 +02:00
|
|
|
.if ${OSVERSION} >= 700000 && defined(PACKAGE_BUILDING)
|
|
|
|
WITHOUT_JAVA= yo # No package for Java ATM
|
|
|
|
.endif
|
|
|
|
|
2008-04-08 21:02:12 +02:00
|
|
|
.if ${ARCH} == "ia64" || ${ARCH} == "sparc64"
|
|
|
|
WITHOUT_JAVA= yo # No package for Java ATM
|
|
|
|
.endif
|
|
|
|
|
2006-09-17 10:44:00 +02:00
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
# gmake should not be required, this is a work-around
|
|
|
|
USE_GMAKE= yes
|
|
|
|
.endif
|
|
|
|
|
2007-01-11 00:42:54 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.include "${FILESDIR}/manpages"
|
|
|
|
.endif
|
|
|
|
|
2006-07-22 10:35:22 +02:00
|
|
|
PREFIX:= ${PREFIX}/${PORTNAME}
|
|
|
|
|
2006-09-25 21:43:30 +02:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "You could define the following options:"
|
|
|
|
.if !defined(WITHOUT_JAVA)
|
|
|
|
@${ECHO_MSG} "- WITHOUT_JAVA do not build MPE Jumpshot-4"
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
@${ECHO_MSG} "- WITHOUT_X11 disable MPE graphics routines"
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_SMPD)
|
|
|
|
@${ECHO_MSG} "- WITH_SMPD use SMPD instead of MPD, to work with SMPD under MS Windows"
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG}
|
|
|
|
|
2006-07-22 10:35:22 +02:00
|
|
|
pre-configure:
|
|
|
|
${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${THREAD2FIX:S|^|${WRKSRC}/|}
|
|
|
|
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${LOCALBASE2FIX:S|^|${WRKSRC}/|}
|
|
|
|
|
2007-03-20 01:58:48 +01:00
|
|
|
${REINPLACE_CMD} -e 's|echo aout|echo elf|g' ${WRKSRC}/confdb/libtool-2.13.m4
|
|
|
|
${REINPLACE_CMD} -e 's|echo aout|echo elf|g' ${WRKSRC}/confdb/libtool.m4
|
|
|
|
${REINPLACE_CMD} -e 's|echo aout|echo elf|g' ${WRKSRC}/src/mpe2/src/slog2sdk/trace_rlog/libtool.m4
|
|
|
|
${REINPLACE_CMD} -e 's|echo aout|echo elf|g' ${WRKSRC}/src/mpe2/src/slog2sdk/trace_sample/libtool.m4
|
|
|
|
${REINPLACE_CMD} -e 's|echo aout|echo elf|g' ${THREAD2FIX:S|^|${WRKSRC}/|}
|
|
|
|
${REINPLACE_CMD} -e 's|echo aout|echo elf|g' ${LOCALBASE2FIX:S|^|${WRKSRC}/|}
|
2008-05-25 23:49:02 +02:00
|
|
|
.for fin in Makefile.in src/mpe2/sbin/mpeinstall.in
|
|
|
|
. if defined(NOPORTDOCS)
|
|
|
|
${REINPLACE_CMD} -e 's|%%PORTDOCS%%|#|' ${WRKSRC}/${fin}
|
|
|
|
. else
|
|
|
|
${REINPLACE_CMD} -e 's|%%PORTDOCS%%||' ${WRKSRC}/${fin}
|
|
|
|
. endif
|
|
|
|
.endfor
|
2007-03-20 01:58:48 +01:00
|
|
|
|
2007-12-11 22:09:42 +01:00
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} -e 's|$${exec_prefix}|${PREFIX}|g; \
|
|
|
|
s|$${prefix}|${PREFIX}|g' ${WRKSRC}/src/pkgconfig/mpich2-ch3.pc
|
|
|
|
|
2005-05-14 14:16:02 +02:00
|
|
|
post-install:
|
2007-03-09 01:33:51 +01:00
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}
|
|
|
|
${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/bin
|
|
|
|
.for lib in ${LIBSSO}
|
2007-09-22 09:21:12 +02:00
|
|
|
${MV} ${PREFIX}/lib/lib${lib}.so.1.1 ${PREFIX}/lib/lib${lib}.so.1
|
|
|
|
${LN} -sf ${PREFIX}/lib/lib${lib}.so.1 ${PREFIX}/lib/lib${lib}.so
|
|
|
|
${LN} -sf ${PREFIX}/lib/lib${lib}.so.1 ${PREFIX}/lib/lib${lib}.so.1.1
|
2007-03-09 01:33:51 +01:00
|
|
|
.endfor
|
2006-07-22 10:35:22 +02:00
|
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/bin
|
|
|
|
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/bin
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2005-05-14 14:16:02 +02:00
|
|
|
|
|
|
|
.if defined(MAINTAINER_MODE)
|
2006-07-22 10:35:22 +02:00
|
|
|
regression-test: install
|
|
|
|
.if !exists(${HOME}/.mpd.conf)
|
|
|
|
@${ECHO_CMD} "MPD_SECRETWORD=change_on_install" > ${HOME}/.mpd.conf
|
|
|
|
${CHMOD} go-r ${HOME}/.mpd.conf
|
|
|
|
@${ECHO_MSG} "${HOME}/.mpd.conf has been generated - please change the secret word!"
|
|
|
|
.endif
|
|
|
|
${PREFIX}/bin/mpd &
|
|
|
|
(cd ${WRKSRC} && \
|
2006-12-19 21:08:10 +01:00
|
|
|
PATH=${PATH}:${PREFIX}/bin VERBOSE=1 ${MAKE} testing)
|
2006-07-22 10:35:22 +02:00
|
|
|
${PREFIX}/bin/mpdallexit
|
2005-05-14 14:16:02 +02:00
|
|
|
.endif
|
1998-07-27 02:25:59 +02:00
|
|
|
|
2000-04-02 06:26:02 +02:00
|
|
|
.include <bsd.port.post.mk>
|