summaryrefslogtreecommitdiffstats
path: root/biology/consed/Makefile
blob: c4b66e4ab21fc27d3f26831277df392324de9aec (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Created by: Motomichi Matsuzaki <mzaki@biol.s.u-tokyo.ac.jp>
# $FreeBSD$

PORTNAME=	consed
PORTVERSION=	16.0
CATEGORIES=	biology
MASTER_SITES=	http://www.phrap.org/consed/distributions/${PORTVERSION}/
DISTNAME=	${PORTNAME}_linux
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	mzaki@biol.s.u-tokyo.ac.jp
COMMENT=	A graphical tool for editing Phrap assemblies

RUN_DEPENDS=	phred:${PORTSDIR}/biology/phred \
		phrap:${PORTSDIR}/biology/phrap \
		phd2fasta:${PORTSDIR}/biology/phd2fasta

USES=		perl5
USE_LINUX=	yes
USE_LINUX_APPS=	xorglibs
ONLY_FOR_ARCHS=	i386 amd64

RESTRICTED=	Redistribution is not permitted in any form. You must request access permission via e-mail to get the tarball. Free for academic use.
.if defined(PACKAGE_BUILDING)
IGNORE=		distribution files must be obtained via the authors
.endif

NO_WRKSUBDIR=	yes

BUILD_WRKSRC=	${WRKSRC}/misc/mktrace
ALL_TARGET=	mktrace

BINARIES=	consed mktrace sffinfo sff2scf
CONTRIBS=	ace2OligosWithComments.perl ace2fof \
		aceContigs2Phds.perl acestatus.pl export_cons \
		mergeAces.perl recover_consensus_tags revert_fof
SCRIPTS=	ace2Fasta.perl ace2Oligos.perl addReads2Consed.perl \
		amplifyTranscripts.perl catPhdFiles.perl \
		countEditedBases.perl determineReadTypes.perl fasta2Phd.perl \
		findSequenceMatchesForConsed.perl lib2Phd.perl \
		orderPrimerPairs.perl phd2Ace.perl phredPhrap removeReads \
		revertToUneditedRead tagRepeats.perl transferConsensusTags.perl
.for f in ${BINARIES} ${CONTRIBS} ${SCRIPTS}
PLIST_FILES+=	bin/${f}
.endfor

DATADIR=	${PREFIX}/lib/screenLibs
DATAFILES=	primerCloneScreen.seq primerSubcloneScreen.seq \
		repeats.fasta singleVectorForRestrictionDigest.fasta
NULLFILES=	vector.seq
.for f in ${DATAFILES} ${NULLFILES}
PORTDATA+=	${f}.dist
.endfor
PORTDOCS=	README.txt

NO_STAGE=	yes

OPTIONS_DEFINE=	DOCS EXAMPLES 

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MEXAMPLES}
EXAMPLES=	standard autofinish assembly_view polyphred
PLIST=		${PKGDIR}/pkg-plist.examples
.endif

post-build:
	(cd ${WRKSRC}/misc/454; ${CC} ${CFLAGS} sffinfo.c -o sffinfo)
	(cd ${WRKSRC}/misc/454; ${CC} ${CFLAGS} sff2scf.c -o sff2scf)

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/consed_linux2.4 ${PREFIX}/bin/consed
	@${INSTALL_PROGRAM} ${BUILD_WRKSRC}/mktrace ${PREFIX}/bin/
	@${INSTALL_PROGRAM} ${WRKSRC}/misc/454/sffinfo ${PREFIX}/bin/
	@${INSTALL_PROGRAM} ${WRKSRC}/misc/454/sff2scf ${PREFIX}/bin/
.for f in ${BINARIES}
	@${CHMOD} a-r ${PREFIX}/bin/${f}
.endfor
.for f in ${CONTRIBS}
	@${INSTALL_SCRIPT} ${WRKSRC}/contributions/${f} ${PREFIX}/bin/
.endfor
.for f in ${SCRIPTS}
	@${INSTALL_SCRIPT} ${WRKSRC}/scripts/${f} ${PREFIX}/bin/
.endfor
	@${MKDIR} ${DATADIR}
.for f in ${DATAFILES}
	@${INSTALL_DATA} ${WRKSRC}/misc/${f} ${DATADIR}/${f}.dist
.endfor
.for f in ${NULLFILES}
	@${INSTALL_DATA} /dev/null ${DATADIR}/${f}.dist
.endfor
.if ${PORT_OPTIONS:MEXAMPLES}
	@${MKDIR} ${EXAMPLESDIR}
.for dir in ${EXAMPLES}
	@${CP} -R ${WRKSRC}/${dir} ${EXAMPLESDIR}
.endfor
.endif
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.if ! ${PORT_OPTIONS:MEXAMPLES}
	@${ECHO_CMD} "Examples were not installed. You can define WITH_EXAMPLES=yes to install them."
.endif
	@${ECHO_CMD} "You must set the CONSED_HOME environment variable to '${PREFIX}'"

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