File:  [cvs.NetBSD.org] / pkgsrc / biology / cdhit / Makefile
Revision 1.2: download - view: text, annotated - select for diffs
Sat Jul 9 06:37:51 2016 UTC (8 years, 5 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, HEAD
Bump PKGREVISION for perl-5.24.0 for everything mentioning perl.

# $NetBSD: Makefile,v 1.2 2016/07/09 06:37:51 wiz Exp $
#
###########################################################
#               Generated by fbsd2pkg                     #
###########################################################

DISTNAME=	cdhit-4.6.4
PKGREVISION=	1
CATEGORIES=	biology
MASTER_SITES=	${MASTER_SITE_GITHUB:=weizhongli/}
GITHUB_TAG=	V${PKGVERSION_NOREV}

MAINTAINER=	jwbacon@tds.net
HOMEPAGE=	http://weizhong-lab.ucsd.edu/cd-hit/
COMMENT=	Clustering and comparing protein or nucleotide sequences
LICENSE=	gnu-gpl-v2

USE_LANGUAGES=	c++
USE_TOOLS+=	bash:run gmake perl
REPLACE_PERL=	*.pl

# Restore default overridden by GITHUB_TAG
WRKSRC=		${WRKDIR}/${DISTNAME}

SUBST_CLASSES+=		compiler
SUBST_STAGE.compiler=	post-patch
SUBST_MESSAGE.compiler=	Fixing hardcoded compiler name
SUBST_FILES.compiler=	${MAKE_FILE}
SUBST_SED.compiler=	-e 's|g++|${CXX:Q}|g'

SUBST_CLASSES+=		bash
SUBST_STAGE.bash=	post-patch
SUBST_MESSAGE.bash=	Fixing bash path
SUBST_FILES.bash=	cd-hit-2d-para.pl cd-hit-para.pl
SUBST_SED.bash=		-e 's|/bin/bash|${PREFIX}/bin/bash|g'

MAKE_FLAGS+=		openmp=yes PREFIX=${DESTDIR}${PREFIX}/bin

DOCDIR=			${PREFIX}/share/doc/cdhit
INSTALLATION_DIRS+=	bin ${DOCDIR}

post-install:
	${INSTALL_DATA} ${WRKSRC}/doc/cdhit-user-guide.pdf ${DESTDIR}${DOCDIR}

.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>