| @@ -1,28 +1,31 @@ | | | @@ -1,28 +1,31 @@ |
1 | # $NetBSD: Makefile,v 1.2 2009/05/04 22:26:56 schmonz Exp $ | | 1 | # $NetBSD: Makefile,v 1.3 2009/07/09 19:48:23 joerg Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= circos-0.49 | | 4 | DISTNAME= circos-0.49 |
| | | 5 | PKGREVISION= 1 |
5 | CATEGORIES= graphics | | 6 | CATEGORIES= graphics |
6 | MASTER_SITES= http://mkweb.bcgsc.ca/circos/distribution/ | | 7 | MASTER_SITES= http://mkweb.bcgsc.ca/circos/distribution/ |
7 | EXTRACT_SUFX= .tgz | | 8 | EXTRACT_SUFX= .tgz |
8 | | | 9 | |
9 | MAINTAINER= schmonz@NetBSD.org | | 10 | MAINTAINER= schmonz@NetBSD.org |
10 | HOMEPAGE= http://mkweb.bcgsc.ca/circos/ | | 11 | HOMEPAGE= http://mkweb.bcgsc.ca/circos/ |
11 | COMMENT= Concise, explanatory, unique and print-ready data visualization | | 12 | COMMENT= Concise, explanatory, unique and print-ready data visualization |
12 | #LICENSE= | | 13 | #LICENSE= |
13 | | | 14 | |
| | | 15 | PKG_DESTDIR_SUPPORT= user-destdir |
| | | 16 | |
14 | USE_LANGUAGES= # none | | 17 | USE_LANGUAGES= # none |
15 | USE_TOOLS+= pax perl | | 18 | USE_TOOLS+= pax perl bash:run |
16 | NO_BUILD= yes | | 19 | NO_BUILD= yes |
17 | | | 20 | |
18 | DEPENDS+= p5-Clone-[0-9]*:../../devel/p5-Clone | | 21 | DEPENDS+= p5-Clone-[0-9]*:../../devel/p5-Clone |
19 | DEPENDS+= p5-Config-General-[0-9]*:../../devel/p5-Config-General | | 22 | DEPENDS+= p5-Config-General-[0-9]*:../../devel/p5-Config-General |
20 | DEPENDS+= p5-GD-[0-9]*:../../graphics/p5-GD | | 23 | DEPENDS+= p5-GD-[0-9]*:../../graphics/p5-GD |
21 | DEPENDS+= p5-Math-Bezier-[0-9]*:../../math/p5-Math-Bezier | | 24 | DEPENDS+= p5-Math-Bezier-[0-9]*:../../math/p5-Math-Bezier |
22 | DEPENDS+= p5-Math-Round-[0-9]*:../../math/p5-Math-Round | | 25 | DEPENDS+= p5-Math-Round-[0-9]*:../../math/p5-Math-Round |
23 | DEPENDS+= p5-Math-VecStat-[0-9]*:../../math/p5-Math-VecStat | | 26 | DEPENDS+= p5-Math-VecStat-[0-9]*:../../math/p5-Math-VecStat |
24 | DEPENDS+= p5-Params-Validate-[0-9]*:../../devel/p5-Params-Validate | | 27 | DEPENDS+= p5-Params-Validate-[0-9]*:../../devel/p5-Params-Validate |
25 | DEPENDS+= p5-Set-IntSpan>=1.11*:../../devel/p5-Set-IntSpan | | 28 | DEPENDS+= p5-Set-IntSpan>=1.11*:../../devel/p5-Set-IntSpan |
26 | | | 29 | |
27 | PKG_SYSCONFSUBDIR= ${PKGBASE} | | 30 | PKG_SYSCONFSUBDIR= ${PKGBASE} |
28 | INSTALLATION_DIRS+= bin share/${PKGBASE} ${FONTDIR} ${EGDIR} | | 31 | INSTALLATION_DIRS+= bin share/${PKGBASE} ${FONTDIR} ${EGDIR} |
| @@ -31,37 +34,39 @@ EGDIR= share/examples/${PKGBASE} | | | @@ -31,37 +34,39 @@ EGDIR= share/examples/${PKGBASE} |
31 | | | 34 | |
32 | CONF_FILES+= ${EGDIR}/colors.conf ${PKG_SYSCONFDIR}/colors.conf | | 35 | CONF_FILES+= ${EGDIR}/colors.conf ${PKG_SYSCONFDIR}/colors.conf |
33 | CONF_FILES+= ${EGDIR}/fonts.conf ${PKG_SYSCONFDIR}/fonts.conf | | 36 | CONF_FILES+= ${EGDIR}/fonts.conf ${PKG_SYSCONFDIR}/fonts.conf |
34 | | | 37 | |
35 | SUBST_CLASSES+= paths | | 38 | SUBST_CLASSES+= paths |
36 | SUBST_STAGE.paths= do-configure | | 39 | SUBST_STAGE.paths= do-configure |
37 | SUBST_FILES.paths= */*/*/circos*.conf bin/circos | | 40 | SUBST_FILES.paths= */*/*/circos*.conf bin/circos |
38 | SUBST_SED.paths+= -e 's|<<include etc/\(.*\)>>|<<include ${PKG_SYSCONFDIR}/\1>>|g' | | 41 | SUBST_SED.paths+= -e 's|<<include etc/\(.*\)>>|<<include ${PKG_SYSCONFDIR}/\1>>|g' |
39 | SUBST_SED.paths+= -e 's|@PREFIX@|${PREFIX}|g' | | 42 | SUBST_SED.paths+= -e 's|@PREFIX@|${PREFIX}|g' |
40 | | | 43 | |
41 | REPLACE_PERL+= data/3/make_random_highlights data/6/hist.random.make | | 44 | REPLACE_PERL+= data/3/make_random_highlights data/6/hist.random.make |
42 | REPLACE_PERL+= svg/textrotation.svg | | 45 | REPLACE_PERL+= svg/textrotation.svg |
43 | | | 46 | |
| | | 47 | REPLACE_BASH+= data/6/gene.density |
| | | 48 | |
44 | post-extract: | | 49 | post-extract: |
45 | cd ${WRKSRC} && rm -f bin/${PKGBASE} \ | | 50 | cd ${WRKSRC} && rm -f bin/${PKGBASE} \ |
46 | && mv bin/${PKGNAME_NOREV} bin/${PKGBASE} | | 51 | && mv bin/${PKGNAME_NOREV} bin/${PKGBASE} |
47 | | | 52 | |
48 | do-configure: | | 53 | do-configure: |
49 | cd ${WRKSRC} && ( ${ECHO} ${PERL5:Q} ; ${ECHO} ) | ./install | | 54 | cd ${WRKSRC} && ( ${ECHO} ${PERL5:Q} ; ${ECHO} ) | ${BASH} ./install |
50 | | | 55 | |
51 | pre-configure: | | 56 | pre-configure: |
52 | cd ${WRKSRC} && rm -f bin/*.orig | | 57 | cd ${WRKSRC} && rm -f bin/*.orig |
53 | | | 58 | |
54 | do-install: | | 59 | do-install: |
55 | cd ${WRKSRC} && \ | | 60 | cd ${WRKSRC} && \ |
56 | for f in CHANGES README TODO; do \ | | 61 | for f in CHANGES README TODO; do \ |
57 | ${INSTALL_DATA} $${f} ${PREFIX}/share/doc/${PKGBASE}; \ | | 62 | ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}; \ |
58 | done; \ | | 63 | done; \ |
59 | for f in bin/*; do \ | | 64 | for f in bin/*; do \ |
60 | ${INSTALL_SCRIPT} $${f} ${PREFIX}/bin; \ | | 65 | ${INSTALL_SCRIPT} $${f} ${DESTDIR}${PREFIX}/bin; \ |
61 | done; \ | | 66 | done; \ |
62 | for f in etc/*; do \ | | 67 | for f in etc/*; do \ |
63 | ${INSTALL_DATA} $${f} ${PREFIX}/${EGDIR}; \ | | 68 | ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/${EGDIR}; \ |
64 | done; \ | | 69 | done; \ |
65 | pax -rw -pp data fonts images svg tutorials ${PREFIX}/share/circos | | 70 | pax -rw -pp data fonts images svg tutorials ${DESTDIR}${PREFIX}/share/circos |
66 | | | 71 | |
67 | .include "../../mk/bsd.pkg.mk" | | 72 | .include "../../mk/bsd.pkg.mk" |