| @@ -1,78 +1,78 @@ | | | @@ -1,78 +1,78 @@ |
1 | # $NetBSD: Makefile,v 1.131 2015/01/07 16:09:23 schmonz Exp $ | | 1 | # $NetBSD: Makefile,v 1.132 2015/03/30 11:32:49 schmonz Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= ikiwiki_3.20150107 | | 4 | DISTNAME= ikiwiki_3.20150329 |
5 | PKGNAME= ${DISTNAME:S/_/-/} | | 5 | PKGNAME= ${DISTNAME:S/_/-/} |
6 | CATEGORIES= www textproc | | 6 | CATEGORIES= www textproc |
7 | MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/i/ikiwiki/} | | 7 | MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/i/ikiwiki/} |
8 | | | 8 | |
9 | MAINTAINER= schmonz@NetBSD.org | | 9 | MAINTAINER= schmonz@NetBSD.org |
10 | HOMEPAGE= http://ikiwiki.info/ | | 10 | HOMEPAGE= http://ikiwiki.info/ |
11 | COMMENT= Flexible static site generator with dynamic features | | 11 | COMMENT= Flexible static site generator with dynamic features |
12 | LICENSE= gnu-gpl-v2 | | 12 | LICENSE= gnu-gpl-v2 |
13 | | | 13 | |
14 | # ./pm_filter /usr/pkg 3.20141016 /usr/pkg/lib/perl5/vendor_perl/5.20.0 < ikiwiki.in > ikiwiki.out | | 14 | # ./pm_filter /usr/pkg 3.20141016 /usr/pkg/lib/perl5/vendor_perl/5.20.0 < ikiwiki.in > ikiwiki.out |
15 | # sh: ./pm_filter: not found | | 15 | # sh: ./pm_filter: not found |
16 | MAKE_JOBS_SAFE= no | | 16 | MAKE_JOBS_SAFE= no |
17 | | | 17 | |
18 | DEPENDS+= p5-Text-Markdown-Discount-[0-9]*:../../textproc/p5-Text-Markdown-Discount | | 18 | DEPENDS+= p5-Text-Markdown-Discount-[0-9]*:../../textproc/p5-Text-Markdown-Discount |
19 | DEPENDS+= p5-URI>=1.36:../../www/p5-URI | | 19 | DEPENDS+= p5-URI>=1.36:../../www/p5-URI |
20 | DEPENDS+= p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser | | 20 | DEPENDS+= p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser |
21 | DEPENDS+= p5-HTML-Template-[0-9]*:../../www/p5-HTML-Template | | 21 | DEPENDS+= p5-HTML-Template-[0-9]*:../../www/p5-HTML-Template |
22 | DEPENDS+= p5-HTML-Tree-[0-9]*:../../www/p5-HTML-Tree | | 22 | DEPENDS+= p5-HTML-Tree-[0-9]*:../../www/p5-HTML-Tree |
23 | DEPENDS+= p5-Mail-Sendmail-[0-9]*:../../mail/p5-Mail-Sendmail | | 23 | DEPENDS+= p5-Mail-Sendmail-[0-9]*:../../mail/p5-Mail-Sendmail |
24 | DEPENDS+= p5-Time-Duration-[0-9]*:../../time/p5-Time-Duration | | 24 | DEPENDS+= p5-Time-Duration-[0-9]*:../../time/p5-Time-Duration |
25 | DEPENDS+= p5-TimeDate-[0-9]*:../../time/p5-TimeDate | | 25 | DEPENDS+= p5-TimeDate-[0-9]*:../../time/p5-TimeDate |
26 | DEPENDS+= p5-HTML-Scrubber>=0.08:../../www/p5-HTML-Scrubber | | 26 | DEPENDS+= p5-HTML-Scrubber>=0.08:../../www/p5-HTML-Scrubber |
27 | DEPENDS+= p5-JSON-[0-9]*:../../converters/p5-JSON | | 27 | DEPENDS+= p5-JSON-[0-9]*:../../converters/p5-JSON |
28 | DEPENDS+= p5-RPC-XML-[0-9]*:../../net/p5-RPC-XML | | 28 | DEPENDS+= p5-RPC-XML-[0-9]*:../../net/p5-RPC-XML |
29 | DEPENDS+= p5-XML-Atom-[0-9]*:../../textproc/p5-XML-Atom | | 29 | DEPENDS+= p5-XML-Atom-[0-9]*:../../textproc/p5-XML-Atom |
30 | DEPENDS+= p5-XML-Feed-[0-9]*:../../textproc/p5-XML-Feed | | 30 | DEPENDS+= p5-XML-Feed-[0-9]*:../../textproc/p5-XML-Feed |
31 | DEPENDS+= p5-XML-Simple-[0-9]*:../../textproc/p5-XML-Simple | | 31 | DEPENDS+= p5-XML-Simple-[0-9]*:../../textproc/p5-XML-Simple |
32 | DEPENDS+= p5-XML-RSS-[0-9]*:../../textproc/p5-XML-RSS | | 32 | DEPENDS+= p5-XML-RSS-[0-9]*:../../textproc/p5-XML-RSS |
33 | DEPENDS+= p5-File-MimeInfo-[0-9]*:../../devel/p5-File-MimeInfo | | 33 | DEPENDS+= p5-File-MimeInfo-[0-9]*:../../devel/p5-File-MimeInfo |
34 | DEPENDS+= p5-gettext-[0-9]*:../../devel/p5-gettext | | 34 | DEPENDS+= p5-gettext-[0-9]*:../../devel/p5-gettext |
35 | DEPENDS+= p5-YAML-LibYAML-[0-9]*:../../textproc/p5-YAML-LibYAML | | 35 | DEPENDS+= p5-YAML-LibYAML-[0-9]*:../../textproc/p5-YAML-LibYAML |
36 | | | 36 | |
37 | WRKSRC= ${WRKDIR}/${PKGBASE} | | 37 | WRKSRC= ${WRKDIR}/${PKGBASE} |
38 | PERL5_PACKLIST= auto/IkiWiki/.packlist | | 38 | PERL5_PACKLIST= auto/IkiWiki/.packlist |
39 | USE_LANGUAGES= c | | 39 | USE_LANGUAGES= c |
40 | USE_TOOLS+= gmake msgfmt perl:run xgettext | | 40 | USE_TOOLS+= gmake msgfmt perl:run xgettext |
41 | | | 41 | |
42 | REPLACE_PERL+= IkiWiki/Plugin/calendar.pm | | 42 | REPLACE_PERL+= IkiWiki/Plugin/calendar.pm |
43 | # find . -type f -print | \ | | 43 | # find . -type f -print | \ |
44 | # perl -ne 'open(F, "<$_"); $l=<F>; print if $l =~ m|^#!/usr/bin/perl|' | | 44 | # perl -ne 'open(F, "<$_"); $l=<F>; print if $l =~ m|^#!/usr/bin/perl|' |
45 | REPLACE_PYTHON+= plugins/proxy.py plugins/pythondemo plugins/rst | | 45 | REPLACE_PYTHON+= plugins/proxy.py plugins/pythondemo plugins/rst |
46 | | | 46 | |
47 | BUILD_TARGET= extra_build all | | 47 | BUILD_TARGET= extra_build all |
48 | | | 48 | |
49 | MAKE_FLAGS+= W3M_CGI_BIN=${PREFIX:Q}/libexec/w3m/cgi-bin | | 49 | MAKE_FLAGS+= W3M_CGI_BIN=${PREFIX:Q}/libexec/w3m/cgi-bin |
50 | MAKE_FLAGS+= SYSCONFDIR=${PKG_SYSCONFDIR:Q} | | 50 | MAKE_FLAGS+= SYSCONFDIR=${PKG_SYSCONFDIR:Q} |
51 | MAKE_FLAGS+= MANDIR=${PREFIX:Q}/${PKGMANDIR:Q} | | 51 | MAKE_FLAGS+= MANDIR=${PREFIX:Q}/${PKGMANDIR:Q} |
52 | | | 52 | |
53 | INSTALL_MAKE_FLAGS+= SYSCONFDIR=${EGDIR:Q} | | 53 | INSTALL_MAKE_FLAGS+= SYSCONFDIR=${EGDIR:Q} |
54 | | | 54 | |
55 | PKG_SYSCONFSUBDIR= ${PKGBASE} | | 55 | PKG_SYSCONFSUBDIR= ${PKGBASE} |
56 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | | 56 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} |
57 | .for f in auto.setup auto-blog.setup wikilist | | 57 | .for f in auto.setup auto-blog.setup wikilist |
58 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} | | 58 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} |
59 | .endfor | | 59 | .endfor |
60 | | | 60 | |
61 | #SPECIAL_PERMS+= ${PREFIX}/bin/ikiwiki-update-wikilist ... | | 61 | #SPECIAL_PERMS+= ${PREFIX}/bin/ikiwiki-update-wikilist ... |
62 | | | 62 | |
63 | TEST_TARGET= test | | 63 | TEST_TARGET= test |
64 | | | 64 | |
65 | .include "options.mk" | | 65 | .include "options.mk" |
66 | | | 66 | |
67 | pre-configure: | | 67 | pre-configure: |
68 | find ${WRKSRC} -type f -name '*.orig' -print | xargs rm -f | | 68 | find ${WRKSRC} -type f -name '*.orig' -print | xargs rm -f |
69 | | | 69 | |
70 | .include "../../mk/bsd.prefs.mk" | | 70 | .include "../../mk/bsd.prefs.mk" |
71 | | | 71 | |
72 | .if ${OPSYS} == "SunOS" | | 72 | .if ${OPSYS} == "SunOS" |
73 | TOOLS_PLATFORM.find= # empty, to force GNU find from pkgsrc findutils | | 73 | TOOLS_PLATFORM.find= # empty, to force GNU find from pkgsrc findutils |
74 | .endif | | 74 | .endif |
75 | | | 75 | |
76 | .include "../../lang/perl5/module.mk" | | 76 | .include "../../lang/perl5/module.mk" |
77 | .include "../../lang/python/application.mk" | | 77 | .include "../../lang/python/application.mk" |
78 | .include "../../mk/bsd.pkg.mk" | | 78 | .include "../../mk/bsd.pkg.mk" |