summaryrefslogtreecommitdiff
path: root/biology/bowtie2/Makefile
blob: 33209677374cf5336673b2dd426b2bb81b697405 (plain)
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
50
51
52
53
54
55
56

PORTNAME=		bowtie2
DISTVERSIONPREFIX=	v
DISTVERSION=		2.4.2
PORTREVISION=		3
CATEGORIES=		biology perl5 python

MAINTAINER=	jwb@FreeBSD.org
COMMENT=	Ultrafast, memory-efficient short read aligner

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/LICENSE

# Requires a 64-bit processor and depends on hard-coded SSE instructions
# Experimental support for AARCH64 as of 2.3.5
ONLY_FOR_ARCHS=	aarch64 amd64
LIB_DEPENDS=	libtbb.so:devel/onetbb
RUN_DEPENDS=	bash:shells/bash

USES=		gmake localbase:ldflags perl5 python shebangfix
USE_PERL5=	run
USE_GITHUB=	yes

SHEBANG_FILES=	bowtie2 bowtie2-build bowtie2-inspect \
		scripts/bowtie2-hbb.sh scripts/*.pl
GH_ACCOUNT=	BenLangmead

OPTIONS_DEFINE=	DOCS EXAMPLES

SUB_FILES=	bowtie2-test

pre-configure:
	@${REINPLACE_CMD} \
		-e 's|^RELEASE_FLAGS|# RELEASE_FLAGS|' \
		-e 's|tbbmalloc_proxy|tbbmalloc|' \
		${WRKSRC}/Makefile

post-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}/scripts
	${INSTALL_PROGRAM} \
		${WRKSRC}/bowtie2*-s \
		${WRKSRC}/bowtie2*-l \
		${STAGEDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} \
		${WRKSRC}/scripts/*.sh \
		${WRKSRC}/scripts/*.pl \
		${STAGEDIR}${DATADIR}/scripts
	${INSTALL_SCRIPT} ${WRKDIR}/bowtie2-test ${STAGEDIR}${PREFIX}/bin

post-install-DOCS-on:
	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

post-install-EXAMPLES-on:
	(cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>