aboutsummaryrefslogtreecommitdiff
path: root/biology/kallisto/Makefile
blob: 8774208d90975177d581b396e81a7ac1082f7c67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PORTNAME=		kallisto
DISTVERSIONPREFIX=	v
DISTVERSION=		0.50.1
PORTEPOCH=		1
CATEGORIES=		biology

MAINTAINER=	jwb@FreeBSD.org
COMMENT=	Quantify abundances of transcripts from RNA-Seq data
WWW=		https://pachterlab.github.io/kallisto/about.html

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/license.txt

ONLY_FOR_ARCHS=	aarch64 amd64 powerpc64 powerpc64le riscv64
ONLY_FOR_ARCHS_REASON=	Requires a 64-bit processor

LIB_DEPENDS=	libhdf5.so:science/hdf5 \
		libsz.so:science/libaec \
		libhts.so:biology/htslib

USES=		cmake:noninja compiler:c++11-lang gmake localbase:ldflags
USE_GITHUB=	yes
GH_ACCOUNT=	pachterlab

SUB_FILES=	kallisto-test

PORTEXAMPLES=		*
PLIST_FILES=		bin/kallisto
EXAMPLES_PLIST_FILES=	bin/kallisto-test

# hdf5 is being phased out and is no longer built in by default, but is still
# required for Sleuth (requires kallisto bootstrap estimates) and other
# downstream tools.  Remove this after Sleuth et al catch up.
CMAKE_ARGS+=		-DUSE_HDF5:BOOL=ON -DUSE_BAM:BOOL=ON
# WIP: Remove before committing
CMAKE_ARGS+=		-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
MAKE_JOBS_UNSAFE=	yes
LDFLAGS+=		-lhts -lz

OPTIONS_DEFINE=	EXAMPLES

post-extract:
	${RM} -rf ${WRKSRC}/ext/htslib

post-install-EXAMPLES-on:
	${INSTALL_SCRIPT} ${WRKDIR}/kallisto-test ${STAGEDIR}${PREFIX}/bin
	cd ${WRKSRC}/test && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>