Lines 1-24
Link Here
|
1 |
# New ports collection makefile for: wise |
1 |
# Created by: Tony Maher <tonym@biolateral.com.au> |
2 |
# Date created: 26 February 2002 |
|
|
3 |
# Whom: Tony Maher <tonym@biolateral.com.au> |
4 |
# |
5 |
# $FreeBSD: head/biology/wise/Makefile 300895 2012-07-14 12:56:14Z beat $ |
2 |
# $FreeBSD: head/biology/wise/Makefile 300895 2012-07-14 12:56:14Z beat $ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= wise |
4 |
PORTNAME= wise |
9 |
PORTVERSION= 2.2.0 |
5 |
PORTVERSION= 2.4.1 |
10 |
CATEGORIES= biology |
6 |
CATEGORIES= biology |
11 |
MASTER_SITES= ftp://ftp.ebi.ac.uk/pub/software/unix/wise2/ |
7 |
MASTER_SITES= http://www.ebi.ac.uk/~birney/wise2/ |
12 |
DISTNAME= ${PORTNAME}${PORTVERSION} |
8 |
DISTNAME= ${PORTNAME}${PORTVERSION} |
13 |
|
9 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= Intelligent algorithms for DNA searches |
11 |
COMMENT= Intelligent algorithms for DNA searches |
16 |
|
12 |
|
17 |
WRKTOP= ${WRKDIR}/${DISTNAME} |
13 |
OPTIONS_DEFINE= DOCS EXAMPLES |
18 |
WRKSRC= ${WRKTOP}/src |
14 |
|
|
|
15 |
BUILD_WRKSRC= ${WRKSRC}/src |
16 |
|
17 |
USE_GNOME= glib20 |
19 |
MAKEFILE= makefile |
18 |
MAKEFILE= makefile |
|
|
19 |
MAKE_JOBS_SAFE= yes |
20 |
|
20 |
SUB_FILES= pkg-message |
21 |
SUB_FILES= pkg-message |
21 |
|
22 |
|
|
|
23 |
PORTDOCS= * |
24 |
PORTEXAMPLES= * |
25 |
PLIST_FILES= ${BINFILES:S,^,bin/,} ${DATAFILES:S,^,%%DATADIR%%/,} |
26 |
PLIST_DIRS= %%DATADIR%% |
27 |
|
22 |
# |
28 |
# |
23 |
# Actually want an 'ALL_TARGET = all perl' which then requires |
29 |
# Actually want an 'ALL_TARGET = all perl' which then requires |
24 |
# 'USE_PERL5= yes' but the perl sub-build is currently broken. |
30 |
# 'USE_PERL5= yes' but the perl sub-build is currently broken. |
Lines 29-96
Link Here
|
29 |
# something like '@cd ${WRKSRC}/perl/Wise2; ${MAKE} install' |
35 |
# something like '@cd ${WRKSRC}/perl/Wise2; ${MAKE} install' |
30 |
# |
36 |
# |
31 |
|
37 |
|
32 |
BINFILES= dba dnal estwise estwisedb genewise genewisedb \ |
38 |
BINFILES= dba dnal estwise estwisedb genewise genewisedb promoterwise \ |
33 |
genomewise psw pswdb |
39 |
psw pswdb scanwise scanwise_server |
34 |
DATAFILES= BLOSUM30.bla BLOSUM45.bla BLOSUM62.bla BLOSUM80.bla \ |
40 |
DATAFILES= BLOSUM30.bla BLOSUM45.bla BLOSUM62.bla BLOSUM80.bla aa.rnd \ |
35 |
aa.rnd blosum30.bla blosum62.bla cb.tmf codon.table \ |
41 |
cb.tmf codon.table gene.stat gon120.bla gon160.bla \ |
36 |
gene.stat gon120.bla gon160.bla gon200.bla gon250.bla \ |
42 |
gon200.bla gon250.bla gon350.bla human.gf human.gp \ |
37 |
gon350.bla human.gf human.gp human.stats idenity.bla \ |
43 |
human.stats idenity.bla methods pb.gf pombe.gf tm.pri \ |
38 |
methods pb.gf pombe.gf tm.pri wise.2 wise.per worm.gf |
44 |
wise.2 wise.per worm.gf |
39 |
DOCFILES= README apiend.tex appendix.tex dynamite.tex \ |
45 |
|
40 |
genewise21.eps genewise6.eps gettex.pl makefile \ |
46 |
.include <bsd.port.options.mk> |
41 |
wise2.tex wise2api.tex wise3arch.tex |
47 |
|
42 |
EXFILES= README db.hmm hn_est.fa human.genomic \ |
48 |
post-patch: |
43 |
keratin_intron.human keratin_intron.mouse pep.fa \ |
49 |
@${FIND} ${BUILD_WRKSRC} -name "makefile" | ${XARGS} \ |
44 |
road.pep rrm.HMM vav.dna xeno.cdna xeno.pep |
50 |
${REINPLACE_CMD} -e \ |
45 |
|
51 |
's|^CC =|CC ?=| ; \ |
46 |
# |
52 |
s|^CFLAGS =|CFLAGS +=| ; \ |
47 |
# Top level makefile does not respect CFLAGS. Fixing it means |
53 |
s|-O[0-9] | | ; \ |
48 |
# having to fix some of the sub-directory makefiles. |
54 |
s|-g | | ; \ |
49 |
# Note: some makefiles are ok and know that '-c' does not belong |
55 |
s|-g[0-9] | | ; \ |
50 |
# in CFLAGS and are part of the rule. |
56 |
s|-lpthread|-pthread| ; \ |
51 |
# |
57 |
s|glib-config|pkg-config glib-2.0| ; \ |
52 |
|
58 |
/welcome.csh/s|^|#|' |
53 |
post-configure: |
|
|
54 |
@${REINPLACE_CMD} \ |
55 |
-e s'#^CFLAGS = -c -O#CFLAGS ?= -c -O#;' \ |
56 |
-e s'#\tcsh welcome.csh##;' \ |
57 |
${WRKSRC}/${MAKEFILE} |
58 |
@${REINPLACE_CMD} \ |
59 |
-e s'#CFLAGS) $?#CFLAGS) -c $?#;' \ |
60 |
${WRKSRC}/base/${MAKEFILE} |
61 |
@${REINPLACE_CMD} \ |
62 |
-e s'#INCFLAGS) $?#INCFLAGS) -c $?#;' \ |
63 |
${WRKSRC}/dynlibsrc/${MAKEFILE} |
64 |
@${REINPLACE_CMD} \ |
65 |
-e s'#INCFLAGS) $?#INCFLAGS) -c $?#;' \ |
66 |
-e s'#CFLAGS) estwise.c#CFLAGS) -c estwise.c#;' \ |
67 |
-e s'#CFLAGS) estwiseb.c#CFLAGS) -c estwiseb.c#;' \ |
68 |
-e s'#CFLAGS) estwisedb.c#CFLAGS) -c estwisedb.c#;' \ |
69 |
-e s'#CFLAGS) genewise.c#CFLAGS) -c genewise.c#;' \ |
70 |
-e s'#CFLAGS) genewisedb.c#CFLAGS) -c genewisedb.c#;' \ |
71 |
${WRKSRC}/models/${MAKEFILE} |
72 |
|
59 |
|
73 |
do-install: |
60 |
do-install: |
74 |
.for file in ${BINFILES} |
61 |
.for i in ${BINFILES} |
75 |
@${INSTALL_PROGRAM} ${WRKSRC}/bin/${file} ${PREFIX}/bin |
62 |
(cd ${BUILD_WRKSRC}/bin && ${INSTALL_PROGRAM} ${i} ${PREFIX}/bin) |
76 |
.endfor |
63 |
.endfor |
77 |
@${MKDIR} ${DATADIR} |
64 |
@${MKDIR} ${DATADIR} |
78 |
.for file in ${DATAFILES} |
65 |
.for i in ${DATAFILES} |
79 |
@${INSTALL_DATA} ${WRKTOP}/wisecfg/${file} ${DATADIR} |
66 |
(cd ${WRKSRC}/wisecfg && ${INSTALL_DATA} ${i} ${DATADIR}) |
80 |
.endfor |
67 |
.endfor |
81 |
.if !defined(NOPORTDOCS) |
68 |
.if ${PORT_OPTIONS:MDOCS} |
82 |
@${MKDIR} ${DOCSDIR} |
69 |
@${MKDIR} ${DOCSDIR} |
83 |
.for file in ${DOCFILES} |
70 |
@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}) |
84 |
@${INSTALL_DATA} ${WRKTOP}/docs/${file} ${DOCSDIR} |
71 |
.endif |
85 |
.endfor |
72 |
.if ${PORT_OPTIONS:MEXAMPLES} |
86 |
@${MKDIR} ${EXAMPLESDIR} |
73 |
@${MKDIR} ${EXAMPLESDIR} |
87 |
.for file in ${EXFILES} |
74 |
@(cd ${WRKSRC}/test_data && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) |
88 |
@${INSTALL_DATA} ${WRKTOP}/test_data/${file} ${EXAMPLESDIR} |
|
|
89 |
.endfor |
90 |
|
91 |
.endif |
75 |
.endif |
92 |
|
|
|
93 |
post-install: |
94 |
@${CAT} ${PKGMESSAGE} |
76 |
@${CAT} ${PKGMESSAGE} |
95 |
|
77 |
|
96 |
.include <bsd.port.mk> |
78 |
.include <bsd.port.mk> |