# $NetBSD$

###########################################################
#               Generated by fbsd2pkg                     #
###########################################################

DISTNAME=	microbiomeutil-${PORTVERSION}
CATEGORIES=	biology
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=microbiomeutil/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	dsiercks@uwm.edu

COMMENT=	Utilities for processing and analyzing 16S rRNA genes
#LICENSE=	BSD4CLAUSE

# Pessimistic assumption.  Test and change if possible.
MAKE_JOBS_SAFE=	no

#ONLY_FOR_PLATFORM=

# Just assuming C and C++: Adjust this!
USE_LANGUAGES=	c c++
USE_TOOLS+=	pax

# Adapt REINPLACE commands to SUBST:
SUBST_CLASSES+=		gcc
SUBST_STAGE.gcc=	post-patch
SUBST_FILES.gcc=	${WRKSRC}/NAST-iEr/Makefile
SUBST_SED.gcc=		-e 's|gcc|$${CC}|g'

PORTVERSION=	r20110519

# Sets OPSYS, OS_VERSION, MACHINE_ARCH, etc..
#.include "../../mk/bsd.prefs.mk"

# Keep this if there are user-selectable options.
#.include "options.mk"

# You may need this, especially if using do-install.

# Note: Depends on PLIST.
#AUTO_MKDIRS=	yes

MODULE_PATH=	etc/modulefiles/${PORTNAME}/${PORTVERSION}
PORTNAME=	microbiomutil

do-install:
	${MKDIR} ${DESTDIR}${PREFIX}/${PORTNAME}
	${MKDIR} ${DESTDIR}${PREFIX}/etc/modulefiles/${PORTNAME}
	${INSTALL_SCRIPT} ${FILESDIR}/modulefile \
		${DESTDIR}${PREFIX}/${MODULE_PATH}
	cd ${WRKSRC} && pax -rw \
		AmosCmp16Spipeline ChimeraSlayer NAST-iEr TreeChopper WigeoN RESOURCES ${DESTDIR}${PREFIX}/${PORTNAME}

#.include "../../wip/cdbfasta/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
