aboutsummaryrefslogtreecommitdiffstats
path: root/biology/mummer/Makefile
blob: 1df3fc503670e202ced70085295056ed1d49d23f (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
# Created by: Tony Maher
# $FreeBSD$

PORTNAME=   mummer
PORTVERSION=    3.23
PORTREVISION=   1
CATEGORIES= biology
MASTER_SITES=   SF
DISTNAME=   MUMmer${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Modular system for rapid whole genome alignment

USES=       gmake perl5

PROGRAMS=   annotate combineMUMs delta-filter gaps \
        mgaps mummer repeat-match show-aligns \
        show-coords show-diff show-snps show-tiling
SCRIPTS=    dnadiff exact-tandems mapview mummerplot nucmer \
        nucmer2xfig promer run-mummer1 run-mummer3
DOCUMENTS=  COPYRIGHT INSTALL LICENSE README

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

post-extract:
    @${REINPLACE_CMD} -e 's,type perl,type ${LOCALBASE}/bin/perl,' ${WRKSRC}/scripts/Makefile
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000024
    @${REINPLACE_CMD} -e 's,type gcc,type clang,' ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's,type g++,type clang++,' ${WRKSRC}/Makefile
.endif

do-install:
    ${INSTALL_PROGRAM} ${PROGRAMS:S|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_SCRIPT} ${SCRIPTS:S|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${DOCUMENTS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>