summaryrefslogtreecommitdiffstats
path: root/biology/ncbi-blast+/Makefile
blob: 40290aa49580b131608773c4ef4fbabe6992f875 (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
57
58
59
# Created by: Jason Bacon <bacon4000@gmail.com>
# $FreeBSD$

PORTNAME=	blast+
PORTVERSION=	2.2.30
PORTREVISION=	2
CATEGORIES=	biology
MASTER_SITES=	http://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${PORTVERSION}/ \
		http://acadix.biz/Ports/distfiles/
PKGNAMEPREFIX=	ncbi-
DISTNAME=	ncbi-blast-${PORTVERSION}+-src

MAINTAINER=	bacon4000@gmail.com
COMMENT=	NCBI implementation of Basic Local Alignment Search Tool

LICENSE=	Public_domain
LICENSE_NAME=	Public Domain
LICENSE_FILE=	${WRKSRC}/scripts/projects/blast/LICENSE
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre \
		libbz2.so:${PORTSDIR}/archivers/bzip2
RUN_DEPENDS=	p5-List-MoreUtils>=0:${PORTSDIR}/lang/p5-List-MoreUtils

WRKSRC=		${WRKDIR}/${DISTNAME}/c++

GNU_CONFIGURE=	yes
USES=		gmake shebangfix perl5 python
SHEBANG_FILES=	src/app/blast/legacy_blast.pl \
		src/app/blast/update_blastdb.pl \
		src/app/winmasker/windowmasker_2.2.22_adapter.py

# Requires openmp
USE_GCC=	yes
USE_LDCONFIG=	yes

# The test for amq can hang, but amq is not needed so just avoid the test
CONFIGURE_ENV=	ncbi_cv_prog_amq_w=no

# configure chooses /usr/local/bin/ar with no flags
# FreeBSD boost port flagged by configure as untested version
CONFIGURE_ARGS+=AR="ar cr" --without-boost

# Fix "undefined _ThreadRuneLocale" error on 10.0
# Fix unknown options in configure
# Add staging support to configure-generated Makefile
post-patch:
	${REINPLACE_CMD} \
		-e 's|-D_THREAD_SAFE|-D_THREAD_SAFE -D__RUNETYPE_INTERNAL|' \
		-e '/--infodir=DIR/d' \
		-e '/--mandir=DIR/d' \
		${WRKSRC}/src/build-system/configure
	${REINPLACE_CMD} -e 's|@prefix@|${STAGEDIR}@prefix@|g' \
		${WRKSRC}/src/build-system/Makefile.in.top

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so

.include <bsd.port.mk>
OpenPOWER on IntegriCloud