summaryrefslogtreecommitdiff
path: root/biology/fastqc/Makefile
blob: fcb5d237b36e415354b086e976fa679f5a6a4866 (plain)
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
# $NetBSD: Makefile,v 1.2 2021/05/24 19:49:10 wiz Exp $

DISTNAME=	fastqc_v${PKGVERSION_NOREV}
PKGNAME=	fastqc-0.11.9
PKGREVISION=	1
CATEGORIES=	biology
MASTER_SITES=	https://www.bioinformatics.babraham.ac.uk/projects/fastqc/
EXTRACT_SUFX=	.zip

MAINTAINER=	bacon@NetBSD.org
HOMEPAGE=	https://www.bioinformatics.babraham.ac.uk/projects/fastqc/
COMMENT=	Quality control tool for high throughput sequence data
LICENSE=	gnu-gpl-v3

SUBST_CLASSES+=		javapath
SUBST_STAGE.javapath=	pre-configure
SUBST_SED.javapath+=	-e 's|$$RealBin$$delimiter|${DATADIR}$$delimiter${JAVAJARDIR}/fastqc$$delimiter|g'
SUBST_SED.javapath+=	-e 's|$$RealBin/|${JAVAJARDIR}/fastqc/|g'
SUBST_FILES.javapath+=	fastqc

USE_TOOLS+=	perl:run pax
USE_JAVA=	run
USE_JAVA2=	8

WRKSRC=		${WRKDIR}/FastQC
REPLACE_PERL=	fastqc
NO_BUILD=	yes

DATADIR=	${PREFIX}/share/fastqc
DOCSDIR=	${PREFIX}/share/doc/fastqc
JAVAJARDIR=	${PREFIX}/share/java/classes

INSTALLATION_DIRS=	bin ${DATADIR} ${DOCSDIR} ${JAVAJARDIR}/fastqc

do-install:
	${INSTALL_DATA} ${WRKSRC}/*.jar ${DESTDIR}${JAVAJARDIR}/fastqc
	${INSTALL_SCRIPT} ${WRKSRC}/fastqc ${DESTDIR}${PREFIX}/bin
	cd ${WRKSRC} && pax -rw Configuration ${DESTDIR}${DATADIR}
	cd ${WRKSRC} && pax -rw Templates ${DESTDIR}${DATADIR}
	cd ${WRKSRC} && pax -rw net ${DESTDIR}${JAVAJARDIR}/fastqc
	cd ${WRKSRC} && pax -rw org ${DESTDIR}${JAVAJARDIR}/fastqc
	cd ${WRKSRC} && pax -rw uk ${DESTDIR}${JAVAJARDIR}/fastqc
	cd ${WRKSRC} && pax -rw Help ${DESTDIR}${DOCSDIR}

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