Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / doc / guide / Makefile.common
blob349a4c2221c98868a01994279b72fcef80f7df60
1 # $NetBSD: Makefile.common,v 1.3 2009/08/25 13:19:57 wiz Exp $
3 # This is included by doc/guide and meta-pkgs/pkgsrc-guide-tools.
5 # Because the outputs are configurable, this functions as a build-time
6 # dependency in doc/guide (customized to the desired output types),
7 # and a runtime dependency in meta-pkgs/pkgsrc-guide-tools (depending
8 # on all possible output tools).
11 _GUIDE_DEPTYPE?=        build
12 _GUIDE_OUTPUTS?=        lint html html-split ascii pdf
14 # html output
15 _GUIDE_DEPENDS+=        docbook>=4.0:../../textproc/docbook
16 _GUIDE_DEPENDS+=        docbook-xml>=4.0:../../textproc/docbook-xml
17 _GUIDE_DEPENDS+=        docbook-xsl>=1.62.4:../../textproc/docbook-xsl
18 _GUIDE_DEPENDS+=        dsssl-docbook-modular>=1.54:../../textproc/dsssl-docbook-modular
19 _GUIDE_DEPENDS+=        opensp>=1.5:../../textproc/opensp
20 _GUIDE_DEPENDS+=        libxslt>=1.0.30:../../textproc/libxslt
22 .if !empty(_GUIDE_OUTPUTS:Mhtml*)
23 _GUIDE_DEPENDS+=        tidy>=20021108:../../www/tidy
24 .endif
26 .if !empty(_GUIDE_OUTPUTS:Mascii)
27 _GUIDE_DEPENDS+=        w3m>=0.4:../../www/w3m
28 .endif
30 .if !empty(_GUIDE_OUTPUTS:Mps) || !empty(_GUIDE_OUTPUTS:Mpdf)
31 _GUIDE_DEPENDS+=        openjade>=1.3.2:../../textproc/openjade
32 _GUIDE_DEPENDS+=        dvipsk-[0-9]*:../../print/dvipsk
33 _GUIDE_DEPENDS+=        tex-jadetex>=3.13:../../print/tex-jadetex
34 GHOSTSCRIPT_REQD=       7.05
35 # XXX: workaround for renaming of ghostscript package.
36 REQPKGS_PRINT=          tex-jadetex>=3.13 ${TOOLS_DEPENDS.ghostscript}
37 MAKE_ENV+=              REQPKGS_PRINT=${REQPKGS_PRINT:Q}
38 # XXX: end
39 .  if ${_GUIDE_DEPTYPE} == "run"
40 USE_TOOLS+=             gs:run
41 .  else
42 USE_TOOLS+=             gs
43 .  endif
44 .endif
46 .if ${_GUIDE_DEPTYPE} == "run"
47 DEPENDS+=               ${_GUIDE_DEPENDS}
48 .else
49 BUILD_DEPENDS+=         ${_GUIDE_DEPENDS}
50 .endif