mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
ab1713728d
PR: 273219
39 lines
940 B
Makefile
39 lines
940 B
Makefile
PORTNAME= gemma
|
|
DISTVERSION= 0.98.3
|
|
PORTREVISION= 4
|
|
CATEGORIES= biology
|
|
|
|
MAINTAINER= jwb@FreeBSD.org
|
|
COMMENT= Genome-wide Efficient Mixed Model Association
|
|
WWW= https://github.com/genetics-statistics/GEMMA
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libgsl.so:math/gsl
|
|
|
|
USES= blaslapack:openblas compiler:c++11-lang eigen:3 gmake \
|
|
localbase:ldflags
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= genetics-statistics
|
|
GH_PROJECT= GEMMA
|
|
|
|
MAKEFILE= ${FILESDIR}/Makefile
|
|
# Assuming openblas is built with pthreads, not openmp
|
|
CXXFLAGS+= -I${LOCALBASE}/include/eigen3 -DOPENBLAS -pthread
|
|
LDFLAGS+= -lopenblas -pthread
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
pre-configure:
|
|
@${REINPLACE_CMD} -e 's|../bin/gemma|../gemma|' ${WRKSRC}/test/*.sh
|
|
|
|
do-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
(cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
do-test:
|
|
(cd ${WRKSRC}/test && ${SH} test_suite.sh)
|
|
|
|
.include <bsd.port.mk>
|