1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/biology/bolt-lmm/Makefile
Mathieu Arnold cf118ccf87
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00

54 lines
1.6 KiB
Makefile

PORTNAME= bolt-lmm
DISTVERSION= 2.3.4
PORTREVISION= 4
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
CXXFLAGS_powerpc64= -DNO_WARN_X86_INTRINSICS -mvsx
CXXFLAGS_powerpc64le= -DNO_WARN_X86_INTRINSICS -mvsx
MAKE_ARGS= BOOST_INSTALL_DIR=${LOCALBASE} \
NLOPT_INSTALL_DIR=${LOCALBASE} \
ZLIB_STATIC_DIR=/usr/lib \
LIBSTDCXX_STATIC_DIR=/usr/lib \
GLIBC_STATIC_DIR=/usr/lib \
SSEFLAGS="" \
MEMCPY="" \
LLAPACK="-lopenblas -lgfortran"
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>