summaryrefslogtreecommitdiffstats
path: root/biology/fasta3/Makefile
blob: f288bbb7fe54dc5764c84df14f857ca139d0420b (plain)
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
# Created by: Johann Visagie <johann@egenetics.com>
# $FreeBSD$

PORTNAME=	fasta3
PORTVERSION=	36.3.8
CATEGORIES=	biology
MASTER_SITES=	http://faculty.virginia.edu/wrpearson/fasta/fasta36/
DISTNAME=	fasta-${PORTVERSION}
DIST_SUBDIR=	fasta3/2014-01-29

MAINTAINER=	wendell@bsd.com.br
COMMENT=	Collection of programs for searching DNA and protein databases

LICENSE=	Fasta
LICENSE_NAME=	Fasta program copyright W. Pearson and U.Virginia
LICENSE_FILE=	${WRKSRC}/COPYRIGHT
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

OPTIONS_DEFINE=	DOCS EXAMPLES

NO_CDROM=	May not be sold or incorporated into a commercial product

WRKSRC=		${WRKDIR}/${DISTNAME}
BUILD_WRKSRC=	${WRKSRC}/src
INSTALL_WRKSRC=	${BUILD_WRKSRC}

MAKEFILE=	Makefile.freebsd
MAKE_ENV=	THR_LIBS="-pthread" XDIR="${STAGEDIR}${PREFIX}/bin" \
		FASTA_HOST="$$(${UNAME} -n)"

SUB_FILES=	pkg-message

PLIST_SUB=	VER="${PORTVERSION:R:R}"

MAN1_LINKS=	fastf35.1 fasts35.1 fastm35.1 fastx35.1 fasty35.1 \
		ggsearch35.1 lalign35.1 ssearch35.1 tfasta35.1 tfastf35.1 \
		tfasts35.1 tfastx35.1 tfasty35.1 prfx35.1 prss35.1
MAN1_FILES=	fasta36.1 fastf3.1 fasts3.1 prss3.1 map_db.1 ps_lav.1
DOC_FILES=	README.versions \
		fasta_func.doc readme.* fasta.defaults \
		fasta.options fasta_versions.html changes*.html
DATA=		data/*.mat
EXAMPLES=	seq/*.aa seq/*.lc seq/*.seq seq/*.lib

post-patch:
	@${CP} ${WRKSRC}/make/${MAKEFILE} ${BUILD_WRKSRC}
	@${RM} ${WRKSRC}/bin/README

post-install:
	(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} * ${STAGEDIR}${PREFIX}/bin)
	(cd ${WRKSRC}/conf && ${INSTALL_DATA} fastlibs \
		${STAGEDIR}${PREFIX}/etc/fastlibs.sample)
	@${MKDIR} ${STAGEDIR}${DATADIR}
.for data in ${DATA}
	(cd ${WRKSRC} && ${INSTALL_DATA} ${data} ${STAGEDIR}${DATADIR})
.endfor
.for manpage in ${MAN1_FILES}
	(cd ${WRKSRC}/doc && ${INSTALL_MAN} ${manpage} \
		${STAGEDIR}${MAN1PREFIX}/man/man1)
.endfor
.for links in ${MAN1_LINKS}
	(${LN} -sf fasta36.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/${links})
.endfor
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in COPYRIGHT FASTA_LIST README
	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.for docfile in ${DOC_FILES}
	(cd ${WRKSRC}/doc && ${INSTALL_DATA} ${docfile} ${STAGEDIR}${DOCSDIR})
.endfor
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for ex in ${EXAMPLES}
	(cd ${WRKSRC} && ${INSTALL_DATA} ${ex} ${STAGEDIR}${EXAMPLESDIR})
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud