1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/biology/bolt-lmm/Makefile
Jason W. Bacon e6e8db340a biology/bolt-lmm: Mixed model association testing and variance component analysis
The BOLT-LMM software package currently consists of two main algorithms, the
BOLT-LMM algorithm for mixed model association testing, and the BOLT-REML
algorithm for variance components analysis (i.e., partitioning of
SNP-heritability and estimation of genetic correlations).
2019-05-26 03:36:49 +00:00

45 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= bolt-lmm
DISTVERSION= 2.3.2
CATEGORIES= biology
MASTER_SITES= https://data.broadinstitute.org/alkesgroup/BOLT-LMM/downloads/
DISTNAME= BOLT-LMM_v${PORTVERSION}
MAINTAINER= jwb@FreeBSD.org
COMMENT= Mixed model association testing and variance component analysis
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/license.txt
LIB_DEPENDS= libnlopt.so:math/nlopt \
libopenblas.so:math/openblas \
libboost_program_options.so:devel/boost-libs
# gcc-c++11-lib needed to link with boost. Also requires compiler:openmp, but
# both merely add a GCC requirement.
USES= compiler:gcc-c++11-lib gmake
BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/src
INSTALL_WRKSRC= ${WRKDIR}/${DISTNAME}/src
CXXFLAGS_i386= -DUSE_SSE -msse -msse2
CXXFLAGS_amd64= -DUSE_SSE
PORTEXAMPLES= *
OPTIONS_DEFINE= EXAMPLES
pre-configure:
@${RM} ${WRKSRC}/example/*.orig ${WRKSRC}/bolt
@${REINPLACE_CMD} -e 's|tables/|${DATADIR}/tables/|g' \
${BUILD_WRKSRC}/BoltParams.cpp
@${REINPLACE_CMD} -e 's|../tables/|${DATADIR}/tables/|g' \
${WRKSRC}/example/run_example.sh
do-install:
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/bolt ${STAGEDIR}${PREFIX}/bin
(cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} tables ${STAGEDIR}${DATADIR})
.include <bsd.port.mk>