blob: a4b526cd67e08de805aeef09000bf9ca213bd75b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# $NetBSD: options.mk,v 1.18 2014/12/04 17:28:43 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ikiwiki
PKG_SUPPORTED_OPTIONS= cgi imagemagick l10n python w3m
PKG_SUPPORTED_OPTIONS+= cvs git svn # not mutually exclusive
PKG_SUPPORTED_OPTIONS+= ikiwiki-amazon-s3 ikiwiki-highlight ikiwiki-search
PKG_SUGGESTED_OPTIONS= cgi
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mcgi)
DEPENDS+= p5-CGI-[0-9]*:../../www/p5-CGI
DEPENDS+= p5-CGI-FormBuilder>=3.05:../../www/p5-CGI-FormBuilder
DEPENDS+= p5-CGI-Session-[0-9]*:../../www/p5-CGI-Session
DEPENDS+= p5-DB_File-[0-9]*:../../databases/p5-DB_File
.endif
.if !empty(PKG_OPTIONS:Mcvs)
. if !exists(/usr/bin/cvs)
DEPENDS+= cvs-[0-9]*:../../devel/scmcvs
. endif
DEPENDS+= cvsps-[0-9]*:../../devel/cvsps
DEPENDS+= cvsweb-[0-9]*:../../www/cvsweb
DEPENDS+= p5-File-chdir-[0-9]*:../../devel/p5-File-chdir
DEPENDS+= p5-File-ReadBackwards-[0-9]*:../../textproc/p5-File-ReadBackwards
.endif
.if !empty(PKG_OPTIONS:Mgit)
DEPENDS+= git-base-[0-9]*:../../devel/git-base
.endif
.if !empty(PKG_OPTIONS:Mikiwiki-amazon-s3)
DEPENDS+= p5-Net-Amazon-S3-[0-9]*:../../net/p5-Net-Amazon-S3
DEPENDS+= p5-File-MimeInfo-[0-9]*:../../devel/p5-File-MimeInfo
.endif
.if !empty(PKG_OPTIONS:Mikiwiki-highlight)
DEPENDS+= p5-highlight-[0-9]*:../../textproc/p5-highlight
.endif
.if !empty(PKG_OPTIONS:Mikiwiki-search)
DEPENDS+= p5-Search-Xapian-[0-9]*:../../textproc/p5-Search-Xapian
DEPENDS+= xapian-omega-[0-9]*:../../textproc/xapian-omega
.endif
.if !empty(PKG_OPTIONS:Mimagemagick)
DEPENDS+= p5-PerlMagick-[0-9]*:../../graphics/p5-PerlMagick
# suggest ghostscript (required for PDF-to-PNG thumbnailing)
# and libmagickcore-extra (required for SVG-to-PNG thumbnailing)
.endif
PLIST_VARS+= l10n
.if !empty(PKG_OPTIONS:Ml10n)
DEPENDS+= po4a>=0.35:../../textproc/po4a
PLIST.l10n= yes
.else
SUBST_CLASSES+= l10n
SUBST_STAGE.l10n= pre-configure
SUBST_FILES.l10n= po/Makefile
SUBST_SED.l10n+= -e 's|\(Locale::Po4a::Common\)|\1::Iff::PKG_OPTIONS|'
.endif
.if !empty(PKG_OPTIONS:Mpython)
DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
.else
PYTHON_FOR_BUILD_ONLY= yes
.endif
.if !empty(PKG_OPTIONS:Msvn)
DEPENDS+= subversion-base-[0-9]*:../../devel/subversion-base
.endif
PLIST_VARS+= w3m
.if !empty(PKG_OPTIONS:Mw3m)
DEPENDS+= w3m-[0-9]*:../../www/w3m
PLIST.w3m= yes
INSTALLATION_DIRS+= share/doc/${PKGBASE}/w3mmode
post-install:
${INSTALL_DATA} ${WRKSRC}/html/w3mmode.html \
${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/doc/w3mmode/ikiwiki.setup \
${PREFIX}/share/doc/${PKGBASE}/w3mmode/ikiwiki.setup
.else
SUBST_CLASSES+= w3m
SUBST_STAGE.w3m= pre-configure
SUBST_FILES.w3m= Makefile.PL
SUBST_SED.w3m+= -e 's,^\(.*install .*W3M_CGI_BIN\),\#\1,'
.endif
|