summaryrefslogtreecommitdiff
path: root/biology/mafft/Makefile
blob: 5dd099a5c08f211c36939b19bab81701d7665f96 (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
# ex:ts=8
# New ports collection makefile for:	mafft
# Date created:				1 Feb 2006
# Whom:					Fernan Aguero <fernan@iib.unsam.edu.ar>
#
# $FreeBSD$
#

PORTNAME=	mafft
PORTVERSION=	5.743
CATEGORIES=	biology
MASTER_SITES=	http://www.biophys.kyoto-u.ac.jp/~katoh/programs/align/mafft/ \
		http://genoma.unsam.edu.ar/~fernan/freebsd/distfiles/
DISTNAME=	${PORTNAME}-${PORTVERSION}-src
EXTRACT_SUFX=	.tgz

MAINTAINER=	fernan@iib.unsam.edu.ar
COMMENT=	Multiple sequence alignments based on fast Fourier transform

RUN_DEPENDS=	fasta34:${PORTSDIR}/biology/fasta3

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
BUILD_WRKSRC=	${WRKSRC}/src

MAKE_ENV+=	CFLAG="${CFLAGS}"

post-patch:
	@${REINPLACE_CMD} -E 's,^(CC|PREFIX) =,\1 ?=,' \
		${WRKSRC}/src/Makefile

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/mafft ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/binaries/* ${PREFIX}/bin
	@ ${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/test/* ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
	@ ${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/readme ${DOCSDIR}
.endif

.include <bsd.port.mk>