pkgsrc/graphics/circos/Makefile
schmonz 68ef3b47da Initial import of graphics/circos.
Circos is a Perl application for the generation of publication-quality,
circularly composited renditions of genomic data and related annotations.

Circos is particularly suited for visualizing alignments, conservation and
intra and inter-chromosomal relationships.

Approved by: groo
2009-04-21 17:51:05 +00:00

69 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2009/04/21 17:51:05 schmonz Exp $
#
DISTNAME= circos-0.49
CATEGORIES= graphics
MASTER_SITES= http://mkweb.bcgsc.ca/circos/distribution/
EXTRACT_SUFX= .tgz
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://mkweb.bcgsc.ca/circos/
COMMENT= Concise, explanatory, unique and print-ready data visualization
#LICENSE=
USE_LANGUAGES= # none
USE_TOOLS+= pax perl
NO_BUILD= yes
DEPENDS+= p5-Clone-[0-9]*:../../devel/p5-Clone
DEPENDS+= p5-Config-General-[0-9]*:../../devel/p5-Config-General
DEPENDS+= p5-GD-[0-9]*:../../graphics/p5-GD
DEPENDS+= p5-Math-Bezier-[0-9]*:../../math/p5-Math-Bezier
DEPENDS+= p5-Math-Round-[0-9]*:../../math/p5-Math-Round # XXX commit
DEPENDS+= p5-Math-VecStat-[0-9]*:../../math/p5-Math-VecStat # XXX
DEPENDS+= p5-Params-Validate-[0-9]*:../../devel/p5-Params-Validate
DEPENDS+= p5-Set-IntSpan>=1.11*:../../devel/p5-Set-IntSpan
PKG_SYSCONFSUBDIR= ${PKGBASE}
INSTALLATION_DIRS+= bin share/${PKGBASE} ${FONTDIR} ${EGDIR}
INSTALLATION_DIRS+= share/doc/${PKGBASE}
EGDIR= share/examples/${PKGBASE}
CONF_FILES+= ${EGDIR}/colors.conf ${PKG_SYSCONFDIR}/colors.conf
CONF_FILES+= ${EGDIR}/fonts.conf ${PKG_SYSCONFDIR}/fonts.conf
SUBST_CLASSES+= paths
SUBST_STAGE.paths= do-configure
SUBST_FILES.paths= */*/*/circos*.conf bin/circos
SUBST_SED.paths+= -e 's|<<include etc/\(.*\)>>|<<include ${PKG_SYSCONFDIR}/\1>>|g'
SUBST_SED.paths+= -e 's|@PREFIX@|${PREFIX}|g'
REPLACE_PERL+= data/3/make_random_highlights data/6/hist.random.make
REPLACE_PERL+= svg/textrotation.svg
post-extract:
cd ${WRKSRC} && rm -f bin/${PKGBASE} \
&& mv bin/${PKGNAME_NOREV} bin/${PKGBASE}
do-configure:
cd ${WRKSRC} && ( ${ECHO} ${PERL5:Q} ; ${ECHO} ) | ./install
pre-configure:
cd ${WRKSRC} && rm -f bin/*.orig
do-install:
cd ${WRKSRC} && \
for f in CHANGES README TODO; do \
${INSTALL_DATA} $${f} ${PREFIX}/share/doc/${PKGBASE}; \
done; \
for f in bin/*; do \
${INSTALL_SCRIPT} $${f} ${PREFIX}/bin; \
done; \
for f in etc/*; do \
${INSTALL_DATA} $${f} ${PREFIX}/${EGDIR}; \
done; \
pax -rw -pp data fonts images svg tutorials ${PREFIX}/share/circos
# XXX install recursively data,images,svg,tutorials to share/circos
# XXX then see if stuff works, find more paths to fix
.include "../../mk/bsd.pkg.mk"