blob: 2be765c72b94f5948c8b3b685af783ecf2887f1d (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Ports collection makefile for: openmpi
# Date created: August 22, 2005
# Whom: Brooks Davis <brooks@freebsd.org>
#
# $FreeBSD$
#
# TODO:
# - F90 support
# - etc/*.sample support
PORTNAME= openmpi
DISTVERSION= 1.0.1rc2
CATEGORIES= net parallel
MASTER_SITES= http://www.open-mpi.org/software/v1.0/downloads/
MAINTAINER= brooks@FreeBSD.org
COMMENT= A High Performance Message Passing Library
LIB_DEPENDS= execinfo:${PORTSDIR}/devel/libexecinfo
BROKEN= Unfetchable
USE_BZIP2= yes
HAS_CONFIGURE= yes
USE_GMAKE= yes
# Can't use until does not imply GNU_CONFIGURE or there's a sane way
# to change the prefix for configure.
#USE_AUTOTOOLS= libtool:15
MPIBASE?= mpi
MPIDIR?= ${MPIBASE}/${UNIQUENAME}
PLIST_SUB+= MPIBASE=${MPIBASE}
PLIST_SUB+= MPIDIR=${MPIDIR}
SUB_FILES+= pkg-message
SUB_LIST+= MPIDIR=${MPIDIR}
PKGMESSAGE= ${WRKDIR}/pkg-message
CONFIGURE_ARGS+= --prefix=${PREFIX}/${MPIDIR} ${CONFIGURE_TARGET}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 503000
.if !exists(/usr/include/stdint.h)
BROKEN= "requires stdint.h"
.else
IGNORE= is not supported for FreeBSD < 5.3
.endif
.endif
post-install:
@${CAT} ${PKGMESSAGE}
#######################################################################
# The following targets are for the port maintainer. Use at your own #
# risk, no user-serviceable parts inside. #
#######################################################################
build-plist: Makefile
${RM} -f pkg-plist
${FIND} ${PREFIX}/${MPIDIR}/* -type f | \
${SED} -e 's|${PREFIX}/${MPIDIR}|%%MPIDIR%%|' | \
${SORT} >> pkg-plist
${FIND} ${PREFIX}/${MPIDIR}/* -type l | \
${SED} -e 's|${PREFIX}/${MPIDIR}|%%MPIDIR%%|' | \
${SORT} >> pkg-plist
${FIND} ${PREFIX}/${MPIDIR}/* -type d | \
${SED} -e 's|${PREFIX}/${MPIDIR}|@dirrm %%MPIDIR%%|' | \
${SORT} -r >> pkg-plist
${ECHO} "@unexec rmdir %D/%%MPIDIR%% 2>/dev/null || true" \
>> pkg-plist
${ECHO} "@unexec rmdir %D/%%MPIBASE%% 2>/dev/null || true" \
>> pkg-plist
.include <bsd.port.post.mk>
|