aboutsummaryrefslogtreecommitdiffstats
path: root/biology/cd-hit/Makefile
blob: 00c9d2e7c763ec6867d690d0a269e9c71945a95f (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
# Created by: Jason Bacon <bacon4000@gmail.com>
# $FreeBSD$

PORTNAME=   cd-hit
PORTVERSION=    4.6.4
PORTREVISION=   1
DISTVERSIONPREFIX=  V
CATEGORIES= biology

MAINTAINER= bacon4000@gmail.com
COMMENT=    Clustering and comparing protein or nucleotide sequences

LICENSE=    GPLv2

USE_GITHUB= yes
GH_ACCOUNT= weizhongli
GH_PROJECT= cdhit

USES=       compiler:openmp gmake shebangfix
WRKSRC=     ${WRKDIR}/cdhit-${PORTVERSION}
SHEBANG_FILES=  ${WRKSRC}/*.pl

MAKE_FLAGS= openmp=yes

post-patch:
    @${REINPLACE_CMD} \
        -e 's|g++|${CXX}|g' \
        -e 's|\$$(PREFIX)|$${DESTDIR}$${PREFIX}/bin|g' \
        ${WRKSRC}/${MAKEFILE}
    @${REINPLACE_CMD} \
        -e 's|/bin/bash|${LOCALBASE}/bin/bash|g' \
        ${WRKSRC}/*.pl

post-stage:
    @cd ${STAGEDIR}${PREFIX}/bin && \
        ${STRIP_CMD} cd-hit cd-hit-2d cd-hit-454 \
        cd-hit-div cd-hit-est cd-hit-est-2d

.include <bsd.port.mk>