| @@ -1,45 +1,47 @@ | | | @@ -1,45 +1,47 @@ |
1 | # $NetBSD: Makefile,v 1.8 2021/05/24 19:49:10 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.9 2021/12/17 17:57:55 bacon Exp $ |
2 | # | | | |
3 | ########################################################### | | | |
4 | # Generated by fbsd2pkg # | | | |
5 | ########################################################### | | | |
6 | | | 2 | |
7 | DISTNAME= cdhit-4.6.4 | | 3 | DISTNAME= cdhit-4.8.1 |
8 | PKGREVISION= 5 | | | |
9 | CATEGORIES= biology | | 4 | CATEGORIES= biology |
10 | MASTER_SITES= ${MASTER_SITE_GITHUB:=weizhongli/} | | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=weizhongli/} |
11 | GITHUB_TAG= V${PKGVERSION_NOREV} | | 6 | GITHUB_TAG= V${PKGVERSION_NOREV} |
12 | | | 7 | |
13 | MAINTAINER= bacon@NetBSD.org | | 8 | MAINTAINER= bacon@NetBSD.org |
14 | HOMEPAGE= http://weizhong-lab.ucsd.edu/cd-hit/ | | 9 | HOMEPAGE= http://weizhong-lab.ucsd.edu/cd-hit/ |
15 | COMMENT= Clustering and comparing protein or nucleotide sequences | | 10 | COMMENT= Clustering and comparing protein or nucleotide sequences |
16 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
17 | | | 12 | |
18 | USE_LANGUAGES= c++ | | 13 | USE_LANGUAGES= c++ |
19 | USE_TOOLS+= bash:run gmake perl | | 14 | USE_TOOLS+= bash:run gmake perl |
20 | REPLACE_PERL= *.pl | | 15 | REPLACE_PERL= *.pl |
21 | | | 16 | |
22 | # Restore default overridden by GITHUB_TAG | | 17 | # Restore default overridden by GITHUB_TAG |
23 | WRKSRC= ${WRKDIR}/${DISTNAME} | | 18 | WRKSRC= ${WRKDIR}/${DISTNAME} |
24 | | | 19 | |
25 | SUBST_CLASSES+= compiler | | 20 | SUBST_CLASSES+= compiler |
26 | SUBST_STAGE.compiler= pre-configure | | 21 | SUBST_STAGE.compiler= pre-configure |
27 | SUBST_MESSAGE.compiler= Fixing hardcoded compiler name | | 22 | SUBST_MESSAGE.compiler= Fixing hardcoded compiler name |
28 | SUBST_FILES.compiler= ${MAKE_FILE} | | 23 | SUBST_FILES.compiler= ${MAKE_FILE} |
29 | SUBST_SED.compiler= -e 's|g++|${CXX:Q}|g' | | 24 | SUBST_SED.compiler= -e 's|g++|'${CXX:Q}'|g' |
30 | | | 25 | |
31 | SUBST_CLASSES+= bash | | 26 | SUBST_CLASSES+= bash |
32 | SUBST_STAGE.bash= pre-configure | | 27 | SUBST_STAGE.bash= pre-configure |
33 | SUBST_MESSAGE.bash= Fixing bash path | | 28 | SUBST_MESSAGE.bash= Fixing bash path |
34 | SUBST_FILES.bash= cd-hit-2d-para.pl cd-hit-para.pl | | 29 | SUBST_FILES.bash= cd-hit-2d-para.pl cd-hit-para.pl |
35 | SUBST_SED.bash= -e 's|/bin/bash|${PREFIX}/bin/bash|g' | | 30 | SUBST_SED.bash= -e 's|/bin/bash|${PREFIX}/bin/bash|g' |
36 | | | 31 | |
37 | MAKE_FLAGS+= openmp=yes PREFIX=${DESTDIR}${PREFIX}/bin | | 32 | MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX}/bin |
| | | 33 | |
| | | 34 | .include "../../mk/bsd.prefs.mk" |
| | | 35 | |
| | | 36 | .if ${OPSYS} == "Darwin" |
| | | 37 | MAKE_FLAGS+= openmp=no |
| | | 38 | .endif |
38 | | | 39 | |
39 | DOCDIR= ${PREFIX}/share/doc/cdhit | | 40 | DOCDIR= ${PREFIX}/share/doc/cdhit |
40 | INSTALLATION_DIRS+= bin ${DOCDIR} | | 41 | INSTALLATION_DIRS+= bin ${DOCDIR} |
41 | | | 42 | |
42 | post-install: | | 43 | post-install: |
43 | ${INSTALL_DATA} ${WRKSRC}/doc/cdhit-user-guide.pdf ${DESTDIR}${DOCDIR} | | 44 | ${INSTALL_DATA} ${WRKSRC}/doc/cdhit-user-guide.pdf ${DESTDIR}${DOCDIR} |
44 | | | 45 | |
| | | 46 | .include "../../devel/zlib/buildlink3.mk" |
45 | .include "../../mk/bsd.pkg.mk" | | 47 | .include "../../mk/bsd.pkg.mk" |