aboutsummaryrefslogtreecommitdiffstats
path: root/biology/tRNAscan-SE/Makefile
blob: da7e626191506494bdbacfc6da6d0d9e1926965d (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
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:    tRNAscan-SE
# Date created:             15 Jan 2002
# Whom:                 chuynh@biolateral.com.au
#
# $FreeBSD$
#

PORTNAME=   tRNAscan-SE
PORTVERSION=    1.23
PORTREVISION=   1
CATEGORIES= biology
MASTER_SITES=   ftp://selab.janelia.org/pub/software/tRNAscan-SE/
EXTRACT_SUFX=   .tar.Z

MAINTAINER= ports@FreeBSD.org
COMMENT=    An improved tool for transfer RNA detection

USE_PERL5=  yes
MAKE_ARGS=  BINDIR="${PREFIX}/bin" \
        LIBDIR="${DATADIR}" \
        CC="${CC}" \
        CFLAGS="${CFLAGS}"

MAN1=       tRNAscan-SE.1

post-patch:
    @${REINPLACE_CMD} -e 's|tRNAscanSE setpaths|tRNAscanSE|g ; \
         s|if tRNAscan-SE|if ./tRNAscan-SE|g' ${WRKSRC}/Makefile

do-install:
.for f in covels-SE coves-SE eufindtRNA trnascan-1.4
    ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
    ${INSTALL_SCRIPT} ${WRKSRC}/tRNAscan-SE ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/tRNAscan-SE.man ${MANPREFIX}/man/man1/tRNAscan-SE.1
    @${MKDIR} ${DATADIR}
.for f in TPCsignal Dsignal *.cm gcode.*
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
.endfor

#
# have to install before testing as path to data files is hardcoded
#
post-install:
    @ cd ${WRKSRC} && $(MAKE) testrun
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/Manual.ps ${DOCSDIR}
.endif

.include <bsd.port.mk>