# $FreeBSD: head/biology/bolt-lmm/Makefile 550247 2020-09-27 07:41:33Z linimon $ 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