86 lines
2.3 KiB
Makefile
86 lines
2.3 KiB
Makefile
# $NetBSD$
|
|
#
|
|
###########################################################
|
|
# Generated by fbsd2pkg #
|
|
# Thu Jul 20 18:34:44 CDT 2017 #
|
|
###########################################################
|
|
|
|
DISTNAME= canu-${PV}
|
|
CATEGORIES= biology java
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=marbl/}
|
|
GITHUB_PROJECT= canu
|
|
GITHUB_TAG= v${PV}
|
|
|
|
MAINTAINER= bacon@NetBSD.org
|
|
HOMEPAGE= http://canu.readthedocs.io/
|
|
COMMENT= Single molecule sequence assembler for genomes large and small
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
DEPENDS+= gnuplot>0:../../graphics/gnuplot
|
|
|
|
# Screwy Makefile compiles directly into ${DESTDIR}${PREFIX}
|
|
SUBST_CLASSES+= optimize
|
|
SUBST_STAGE.optimize= post-patch
|
|
SUBST_SED.optimize+= -e 's|-O4|-O2|g'
|
|
SUBST_SED.optimize+= -e 's|-funroll-loops||g'
|
|
SUBST_SED.optimize+= -e 's|-fexpensive-optimizations||g'
|
|
SUBST_FILES.optimize+= ${WRKSRC}/Makefile
|
|
|
|
SUBST_CLASSES+= jar
|
|
SUBST_STAGE.jar= post-patch
|
|
SUBST_SED.jar= -e 's|\\$$bin/mhap-|${PREFIX}/${JAVAJARDIR}/mhap-|g'
|
|
SUBST_FILES.jar= ${WRKSRC}/pipelines/canu/OverlapMhap.pm
|
|
|
|
SUBST_CLASSES+= perl
|
|
SUBST_STAGE.perl= post-patch
|
|
SUBST_SED.perl= -e 's|$$FindBin::RealBin/../lib/site_perl|${PREFIX}/${SITE_PERL_REL}|g'
|
|
SUBST_FILES.perl= ${WRKSRC}/pipelines/canu.pl
|
|
|
|
REPLACE_PERL+= bogart/*.pl \
|
|
pipelines/*.pl \
|
|
bogus/*.pl \
|
|
bogart-analysis/*.pl \
|
|
overlapBasedTrimming/*.pl \
|
|
overlapInCore-analysis/*.pl \
|
|
merTrim/*.pl \
|
|
erateEstimate/*.pl \
|
|
meryl/.pl \
|
|
fastq-utilities/*.pl \
|
|
*.pl
|
|
|
|
# May work on other 64-bit processors, but untested
|
|
ONLY_FOR_PLATFORM= *-*-x86_64
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_JAVA= run
|
|
USE_JAVA2= 8
|
|
USE_TOOLS+= gmake pax perl
|
|
GCC_REQD+= 4.8
|
|
|
|
WRKSRC= ${WRKDIR}/canu-${PV}/src
|
|
MAKE_ENV+= DESTDIR=${WRKSRC}
|
|
|
|
PV= 1.7
|
|
|
|
TMP_INST= ${WRKSRC}${PREFIX}/${OPSYS}-${MACHINE_ARCH:S/x86_64/amd64/}
|
|
SITE_PERL_REL= lib/perl5/site_perl
|
|
JAVAJARDIR= share/java/classes
|
|
INSTALLATION_DIRS= bin ${JAVAJARDIR}
|
|
|
|
post-extract:
|
|
${CHMOD} -R g-w ${WRKDIR}
|
|
|
|
post-build:
|
|
${MKDIR} ${TMP_INST}/lib/perl5
|
|
${MV} ${TMP_INST}/lib/site_perl ${TMP_INST}/lib/perl5
|
|
|
|
do-install:
|
|
cd ${TMP_INST}/bin && ${PAX} -wr * ${DESTDIR}${PREFIX}/bin
|
|
cd ${TMP_INST}/lib && ${PAX} -wr * ${DESTDIR}${PREFIX}/lib
|
|
cd ${TMP_INST}/share && ${PAX} -wr * ${DESTDIR}${PREFIX}/share
|
|
|
|
.include "../../devel/boost-libs/buildlink3.mk"
|
|
.include "../../lang/perl5/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|