blob: 5299f94a01c6e8de170c29f9a2e9fb8bc42edd4c (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# ex:ts=8
# New ports collection makefile for: WU BLAST
# Date created: 27 May 2004
# Whom: Fernan Aguero <fernan@iib.unsam.edu.ar>
#
# $FreeBSD$
#
PORTNAME= wu-blast
PORTVERSION= 2.0
PORTREVISION= 20060322 # YYYYMMDD
CATEGORIES= biology
MASTER_SITES= #
EXTRACT_SUFX= .tar.Z
MAINTAINER= fernan@iib.unsam.edu.ar
COMMENT= WU BLAST, a software package for sequence similarity searches
# Distfiles change rapidly, but since they can only be downloaded from
# the author, this is not a problem.
IGNOREFILES= ${DISTFILES}
RESTRICTED= License does not allow redistribution of binaries. You should first register for the software, which is free for academic use.
ONLY_FOR_ARCHS= i386 amd64
NO_BUILD= yes
DOWNLOAD_URL= http://blast.wustl.edu/licensing
NO_WRKSUBDIR= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
PORTDOCS= COPYRIGHT FAQ-Indexing.html HISTORY LICENSE Memory.html \
README.html parameters.html tabular.html
BINS= blasta gb2fasta gt2fasta memfile nrdb pam patdb \
pir2fasta sp2fasta xdformat xdget
SCRIPTS= wu-blastall wu-formatdb
BLASTA_LINKS= blastn blastp blastx tblastn tblastx
XDFORMAT_LINKS= setdb pressdb
.include <bsd.port.pre.mk>
.if ${ARCH} == amd64
.if ${OSVERSION} >= 600000
DISTNAME= blast${PORTVERSION:S/.0//}.freebsd-6.x-x64
.else
DISTNAME= blast${PORTVERSION:S/.0//}.freebsd-5.x-x64
.endif
.else
.if ${OSVERSION} >= 50000 && ${OSVERSION} < 600000
DISTNAME= blast${PORTVERSION:S/.0//}.freebsd-5.x-i686
.else
DISTNAME= blast${PORTVERSION:S/.0//}.freebsd-6.x-i686
.endif
.endif
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= You must manually fetch ${PORTNAME}${PORTVERSION:S/.0//} for the FreeBSD platform (${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
.endif
post-patch:
@${SED} -e 's,%%DATADIR%%,${DATADIR},g' < ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
do-install:
.for bin in ${BINS}
${INSTALL_PROGRAM} ${WRKSRC}/${bin} ${PREFIX}/bin
.endfor
.for script in ${SCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/${script} ${PREFIX}/bin
.endfor
${CHMOD} a-rw,a+x ${PREFIX}/bin/blasta
.for blink in ${BLASTA_LINKS}
@(cd ${PREFIX}/bin && ${LN} -s blasta ${blink})
.endfor
.for xlink in ${XDFORMAT_LINKS}
@(cd ${PREFIX}/bin && ${LN} -s xdformat ${xlink})
.endfor
.if !defined (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_MAN} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
${MKDIR} ${DATADIR}
${CP} -R ${WRKSRC}/matrix ${DATADIR}
${CP} -R ${WRKSRC}/filter ${DATADIR}
${CP} ${WRKSRC}/sysblast.sample ${DATADIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|