aboutsummaryrefslogtreecommitdiffstats
path: root/net/lam/Makefile
blob: 4c9491ff75300931adcf160f54804450c374b8b9 (plain) (blame)
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
51
# Created by: bremner@unb.ca
# $FreeBSD$

PORTNAME=   lam
PORTVERSION=    7.1.5b2
PORTREVISION=   2
CATEGORIES= net parallel
MASTER_SITES=   http://www.lam-mpi.org/download/files/ \
        http://www.thinkingnerds.com/lam/download/files/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Local Area Multicomputer MPI implementation

BROKEN=     unfetchable

LICENSE=    lam
LICENSE_NAME=   Software License for LAM/MPI
LICENSE_FILE=   ${WRKSRC}/LICENSE
LICENSE_PERMS=  ${_LICENSE_PERMS_DEFAULT}

USES=        libtool perl5 tar:bzip2
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-rsh=ssh --without-fc
USE_LDCONFIG=   yes

.include <bsd.port.pre.mk>

.if ${ARCH} == amd64 || ${ARCH} == ia64 || ${ARCH} == sparc64
# Note: to enable TotalView on 64 bits platforms,
# --enable-tv-dll-force should be added to CONFIGURE_ARGS
PLIST_SUB+= 32BIT_ONLY="@comment "
.else
PLIST_SUB+= 32BIT_ONLY=""
.endif

pre-configure:
    @${REINPLACE_CMD} -E -e 's|/usr/bin/env perl|${PERL} -w| ; \
        s|use warnings;||' ${WRKSRC}/tools/mpiexec/mpiexec

post-install:
.if ${ARCH} != "armv6" && ${ARCH} != "i386" && ${ARCH} != "powerpc"
    ${RMDIR} ${STAGEDIR}${PREFIX}/lib/lam
.endif

.if defined(MAINTAINER_MODE)
regression-test:    install
    (cd ${BUILD_WRKSRC}/examples;   \
    ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
.endif

.include <bsd.port.post.mk>