freebsd-ports/biology/phyml/Makefile
Wen Heping 9a1421510b - Update to 3.2.0
- Update pkg-descr

PR:		205890
Submitted by:	tkato432@yahoo.com
2016-02-26 13:03:05 +00:00

60 lines
1.3 KiB
Makefile

# Created by: ballen
# $FreeBSD$
PORTNAME= phyml
DISTVERSIONPREFIX= v
DISTVERSION= 3.2.0
PORTEPOCH= 1
CATEGORIES= biology
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple, fast, and accurate algorithm to estimate large phylogenies
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GITHUB= yes
GH_ACCOUNT= stephaneguindon
USES= autoreconf libtool pkgconfig
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= MPICH2 OPENMPI
MPICH2_LIB_DEPENDS= libmpich.so:${PORTSDIR}/net/mpich2
MPICH2_MAKE_ARGS= CC="${LOCALBASE}/bin/mpicc"
OPENMPI_LIB_DEPENDS= libmpi.so:${PORTSDIR}/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
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>