aboutsummaryrefslogtreecommitdiffstats
path: root/biology/mafft/Makefile
blob: 85218e58d2f95e960815a08d0a6980bb8db7ea15 (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
# 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://align.bmr.kyushu-u.ac.jp/mafft/software/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src
EXTRACT_SUFX=   .tgz

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

RUN_DEPENDS=    fasta35:${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>