1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/net/openmpi/Makefile
Gabor Kovesdan 42542fb076 - Remove the DESTDIR modifications from individual ports as we have a new,
fully chrooted DESTDIR, which does not need such any more.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
2007-08-04 11:41:30 +00:00

92 lines
2.7 KiB
Makefile

# Ports collection makefile for: openmpi
# Date created: August 22, 2005
# Whom: Brooks Davis <brooks@freebsd.org>
#
# $FreeBSD$
#
# TODO:
# - etc/*.sample support
PORTNAME= openmpi
DISTVERSION= 1.2.2
PORTREVISION= 1
CATEGORIES= net parallel
MASTER_SITES= http://www.open-mpi.org/software/ompi/v1.2/downloads/
MAINTAINER= brooks@FreeBSD.org
COMMENT= A High Performance Message Passing Library
LIB_DEPENDS= execinfo:${PORTSDIR}/devel/libexecinfo
USE_BZIP2= yes
HAS_CONFIGURE= yes
USE_GMAKE= yes
MPIBASE?= mpi
MPIDIR?= ${MPIBASE}/${UNIQUENAME}
PLIST_SUB+= MPIBASE=${MPIBASE}
PLIST_SUB+= MPIDIR=${MPIDIR}
CONFIGURE_ARGS+= --prefix=${PREFIX}/${MPIDIR} ${CONFIGURE_TARGET}
USE_LDCONFIG= ${PREFIX}/${MPIDIR}/lib \
${PREFIX}/${MPIDIR}/lib/openmpi
MANPREFIX= ${PREFIX}/${MPIDIR}
.include "${.CURDIR}/Makefile.man"
.include <bsd.port.pre.mk>
USE_FORTRAN= yes
CONFIGURE_ENV+= F77=${F77} FC=${FC}
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
.if exists(${LOCALBASE}/lib/libtorque.so)
WITH_TORQUE= yes
.endif
.if defined(WITH_TORQUE)
LIB_DEPENDS+= torque.0:${PORTSDIR}/sysutils/torque
CONFIGURE_ARGS+= --with-tm=${LOCALBASE}
PLIST_SUB+= TORQUE=""
.else
PLIST_SUB+= TORQUE="@comment "
.endif
#######################################################################
# The following targets are for the port maintainer. Use at your own #
# risk, no user-serviceable parts inside. #
# #
# XXX: we should generate MLINKS programaticaly, but it would take #
# some effort and there's only one entry at this time. #
#######################################################################
build-plist: Makefile
${RM} ${PLIST}
${FIND} ${PREFIX}/${MPIDIR} -name man -prune -o -type f -print | \
${SED} -e 's|${PREFIX}/${MPIDIR}|%%MPIDIR%%|' | \
${SORT} >> ${PLIST}
${FIND} ${PREFIX}/${MPIDIR} -name man -prune -o -type l -print | \
${SED} -e 's|${PREFIX}/${MPIDIR}|%%MPIDIR%%|' | \
${SORT} >> ${PLIST}
${FIND} ${PREFIX}/${MPIDIR} -type d | \
egrep -v "${PREFIX}/${MPIDIR}$$" | \
${SED} -e 's|${PREFIX}/${MPIDIR}|@dirrm %%MPIDIR%%|' | \
${SORT} -r >> ${PLIST}
${ECHO} "@dirrmtry %%MPIDIR%%" \
>> ${PLIST}
${ECHO} "@dirrmtry %%MPIBASE%%" \
>> ${PLIST}
@echo "# Do not edit! Auto-generated file." > ${.CURDIR}/Makefile.man
@echo "# See build-plist target in Makefile." >> ${.CURDIR}/Makefile.man
@echo "#" >> ${.CURDIR}/Makefile.man
@echo "MLINKS=mpic++.1 mpiCC.1" >> ${.CURDIR}/Makefile.man
${FIND} ${PREFIX}/${MPIDIR}/man -type f | \
${SED} -e 's|.*man\([0-9LN]\)/\(.*\)|MAN\1+=\2|' -e 's/\.gz$$//' \
>> ${.CURDIR}/Makefile.man
.include <bsd.port.post.mk>