aboutsummaryrefslogtreecommitdiff
path: root/biology/embassy/Makefile
blob: cbb37e290d666c64df877d3480d73c17c9ec8dc6 (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# ex:ts=8
# New ports collection makefile for:	embassy
# Date created:		1.November.2004
# Whom:	      		Fernan Aguero <fernan@iib.unsamn.edu.ar>
#
# $FreeBSD$
#

PORTNAME=	embassy
PORTVERSION=	6.2.0
PORTREVISION=	2
CATEGORIES=	biology
MASTER_SITES=	ftp://emboss.open-bio.org/pub/EMBOSS/
DIST_SUBDIR=	emboss

MAINTAINER=	fernan@iib.unsam.edu.ar
COMMENT=	A collection of contributed EMBOSS applications

LIB_DEPENDS=	nucleus.6:${PORTSDIR}/biology/emboss

PREFIX?=	${LOCALBASE}/emboss
NO_MTREE=	yes
USE_SUBMAKE=	yes
USE_ICONV=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
USE_XORG=	x11
USE_MOTIF=	yes
USE_LDCONFIG=	yes

OPTIONS=	DOMAINATRIX	"Protein domain apps" on \
		DOMALIGN	"Protein domain apps" on \
		DOMSEARCH	"Protein domain apps" on \
		SIGNATURE	"Protein domain apps" on \
		STRUCTURE	"Protein domain apps" on \
		EMNU		"EMBOSS simple menu" on \
		ESIM4		"Align cDNA/EST to genome" on \
		HMMER		"HMM alignment and searches" on \
		MEMENEW		"Motif detection" on \
		MSE		"A multiple sequence screen editor" on \
		MYEMBOSS	"Examples for developers of EMBOSS apps" on \
		PHYLIPNEW	"Phylogeny inference" on \
		TOPO		"Transmembrane display" on \
		VIENNA		"RNA folding" on \
		MIRA		"Whole Genome shotgun and EST assembler" on \
		IPRSCAN		"InterPro scan" on \
		CBSTOOLS	"CBS Tools" on

CPPFLAGS+=	-I${PREFIX}/include -I${LOCALBASE}/include -I${LOCALBASE}/emboss/include
LDFLAGS+=	-L${PREFIX}/lib -L${LOCALBASE}/lib -L${LOCALBASE}/emboss/lib

CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

EMBASSY_WRKDIR=		${WRKSRC}/EMBASSY
DOMAINATRIX_VERSION=	0.1.0
EMNU_VERSION=		1.05
ESIM4_VERSION=		1.0.0
HMMER_VERSION=		2.3.2
MEMENEW_VERSION=	4.0.0
MSE_VERSION=		3.0.0
TOPO_VERSION=		2.0.0
PHYLIPNEW_VERSION=	3.69
DOMALIGN_VERSION=	0.1.0
DOMSEARCH_VERSION=	0.1.0
SIGNATURE_VERSION=	0.1.0
STRUCTURE_VERSION=	0.1.0
MYEMBOSS_VERSION=	6.2.0
VIENNA_VERSION=		1.7.2
MIRA_VERSION=		2.8.2
IPRSCAN_VERSION=	4.3.1
CBSTOOLS_VERSION=	1.0.0
EMBASSY_APPS=		DOMAINATRIX EMNU ESIM4 HMMER MEMENEW MSE PHYLIPNEW \
			TOPO DOMALIGN DOMSEARCH SIGNATURE STRUCTURE MYEMBOSS \
			VIENNA MIRA IPRSCAN CBSTOOLS

.include <bsd.port.pre.mk>

.for app in ${EMBASSY_APPS}
.if !defined(WITHOUT_${app})
APPLIST+=	${app}
${app}_WRKSRC=	${EMBASSY_WRKDIR}/${app}-${${app}_VERSION}
${app}_DISTFILE=${app}-${${app}_VERSION}${EXTRACT_SUFX}
DISTFILES+=	${${app}_DISTFILE}
PLIST_${app}=	""
.else
PLIST_${app}=	"@comment "
.endif
PLIST_SUB+=	PLIST_${app}=${PLIST_${app}}
.endfor

do-extract:
.for app in ${APPLIST}
	@ ${MKDIR} ${EMBASSY_WRKDIR}
	@ cd ${EMBASSY_WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
	  ${_DISTDIR}/${${app}_DISTFILE} ${EXTRACT_AFTER_ARGS}
	@ if [ `id -u` = 0 ]; then \
	    ${CHMOD} -R ug-s ${${app}_WRKSRC}; \
	    ${CHOWN} -R 0:0 ${${app}_WRKSRC}; \
	  fi
.endfor

post-extract:
	@${REINPLACE_CMD} -e 's#emboss_doc##g' ${EMBASSY_WRKDIR}/MIRA-2.8.2/Makefile.in

post-patch:
	@${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} -e 's|echo aout|echo elf|'

do-configure:
.for app in ${APPLIST}
	@ cd ${${app}_WRKSRC} && \
	  ${SETENV} ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
.endfor

do-build:
.for app in ${APPLIST}
	@ cd ${${app}_WRKSRC} && \
	  ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
.endfor

do-install:
.for app in ${APPLIST}
	@ cd ${${app}_WRKSRC} && \
	  ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \
	  ${MAKE_ARGS} ${INSTALL_TARGET}
.endfor

.include <bsd.port.post.mk>