4fa4056388
I don't think selecting clang as a function of OSVERSION is generally desired, but if it's going to happen, make sure FreeBSD-specific conditions are limited to FreeBSD by comparing OPSYS first.
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
# Created by: Tony Maher
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mummer
|
|
PORTVERSION= 3.23
|
|
PORTREVISION= 1
|
|
CATEGORIES= biology
|
|
MASTER_SITES= SF
|
|
DISTNAME= MUMmer${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Modular system for rapid whole genome alignment
|
|
|
|
USES= gmake perl5
|
|
|
|
PROGRAMS= annotate combineMUMs delta-filter gaps \
|
|
mgaps mummer repeat-match show-aligns \
|
|
show-coords show-diff show-snps show-tiling
|
|
SCRIPTS= dnadiff exact-tandems mapview mummerplot nucmer \
|
|
nucmer2xfig promer run-mummer1 run-mummer3
|
|
DOCUMENTS= COPYRIGHT INSTALL LICENSE README
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-extract:
|
|
@${REINPLACE_CMD} -e 's,type perl,type ${LOCALBASE}/bin/perl,' ${WRKSRC}/scripts/Makefile
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000024
|
|
@${REINPLACE_CMD} -e 's,type gcc,type clang,' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e 's,type g++,type clang++,' ${WRKSRC}/Makefile
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${PROGRAMS:S|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${SCRIPTS:S|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${DOCUMENTS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|