aboutsummaryrefslogtreecommitdiffstats
path: root/biology/primer3/Makefile
blob: 01c1f8d9bb75f52ce903b25428222d1f2cbb1fe0 (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
# New ports collection makefile for:    primer3
# Date created:             25 February 2002
# Whom:                 Tony Maher <tonym@biolateral.com.au>
#
# $FreeBSD$
#

PORTNAME=   primer3
PORTVERSION=    1.1.4
CATEGORIES= biology
MASTER_SITES=   SF

MAINTAINER= fernan@iib.unsam.edu.ar
COMMENT=    Primer3 helps to choose primers for PCR reactions

USE_GMAKE=  yes
WRKSRC=     ${WRKDIR}/src
DOCUMENTS=  README.txt example

post-patch:
    @${REINPLACE_CMD} \
        -e 's#^CC *=#CC ?=#;' \
        -e 's#^CFLAGS.*#CFLAGS  += \$$\(CC_OPTS\)#;' \
        -e 's#CC_OPTS = -g#CC_OPTS =#;' \
        -e 's#LDFLAGS = -g#LDFLAGS +=#;' \
        -e 's#^WHITEHEAD_SPECIFIC_HACK.*##;' \
        ${WRKDIR}/src/Makefile

do-install:
    @${INSTALL_PROGRAM} ${WRKDIR}/src/primer3_core ${PREFIX}/bin/primer3
    @${MKDIR} ${DATADIR}
    @${INSTALL_DATA} ${WRKDIR}/COPYING.txt ${DATADIR}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in ${DOCUMENTS}
    @${INSTALL_DATA} ${WRKDIR}/${file} ${DOCSDIR}
.endfor
    @${RM} -rf ${WRKDIR}/test/primer*_list_tmp
    @${MKDIR} ${EXAMPLESDIR}
    @cd ${WRKDIR}/test && ${FIND} * | ${CPIO} --quiet \
        -pdum -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif

post-install:
    @${CAT} ${DATADIR}/COPYING.txt

.include <bsd.port.mk>