1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/biology/phyml/Makefile
Robert Clausecker 8e2ec289a2 biology/phyml: fix build on non-x86
- only initialise x86-only fields on x86.
 - make code compatible with platforms where char is unsigned

Obtained from:	9c55b683c8
MFH:		2023Q2
2023-05-08 10:25:50 +02:00

62 lines
1.4 KiB
Makefile

PORTNAME= phyml
DISTVERSIONPREFIX= v
DISTVERSION= 3.3.20220408
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= biology
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple, fast, and accurate algorithm to estimate large phylogenies
WWW= https://github.com/stephaneguindon/phyml
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= autoreconf libtool pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= stephaneguindon
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-beagle --disable-native
PLIST_FILES= bin/phyml${BIN_SUFFIX}
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_RADIO= MPI
OPTIONS_RADIO_MPI= MPICH OPENMPI
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:MMPICH} || ${PORT_OPTIONS:MOPENMPI}
CONFIGURE_ARGS+= --enable-mpi
BIN_SUFFIX= -mpi
.else
CONFIGURE_ARGS+= --disable-mpi
BIN_SUFFIX= # none
.endif
.if ${ARCH} != amd64 && ${ARCH} != i386
post-patch:
@${REINPLACE_CMD} -e 's|VECTOR_FLAG=-march=native|dnl &|' ${WRKSRC}/configure.ac
.endif
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>