freebsd-ports/biology/phyml/Makefile
Yuri Victorovich fbdb8def9f Change 4 ports from net/mpich2 to net/mpich
mpich2 is the obsolete version 2.x, mpich is at the current version 3.x

Ports:
biology/phyml benchmarks/mdtest benchmarks/imb math/parmetis
2018-09-22 18:00:24 +00:00

68 lines
1.6 KiB
Makefile

# Created by: ballen
# $FreeBSD$
PORTNAME= phyml
DISTVERSIONPREFIX= v
DISTVERSION= 3.3.20180621
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= biology
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple, fast, and accurate algorithm to estimate large phylogenies
LICENSE= GPLv2
#LICENSE_FILE= ${WRKSRC}/COPYING
USES= autoreconf libtool pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= stephaneguindon
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-beagle
PORTDOCS= *
PORTEXAMPLES= *
PLIST_FILES= bin/phyml${BIN_SUFFIX}
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_RADIO= MPI
OPTIONS_RADIO_MPI= MPICH OPENMPI
MPICH_DESC= Parallel processing support via MPICH
MPICH_LIB_DEPENDS= libmpich.so:net/mpich
MPICH_MAKE_ARGS= CC="${LOCALBASE}/bin/mpicc"
OPENMPI_LIB_DEPENDS= libmpi.so:net/openmpi
OPENMPI_MAKE_ARGS= CC="${LOCALBASE}/mpi/openmpi/bin/mpicc"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMPICH2} || ${PORT_OPTIONS:MOPENMPI}
CONFIGURE_ARGS+= --enable-mpi
BIN_SUFFIX= -mpi
.else
CONFIGURE_ARGS+= --disable-mpi
BIN_SUFFIX= # none
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|-O2 .* $${ARCH_flag}|$${CFLAGS}|' ${WRKSRC}/configure.ac
.if ${ARCH} != amd64 && ${ARCH} != i386
@${REINPLACE_CMD} -e 's|VECTOR_FLAG=-march=native|dnl &|' ${WRKSRC}/configure.ac
.endif
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/utilities.h
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.pdf \
${STAGEDIR}${DOCSDIR})
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \
${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>