Ticket #516: Portfile

File Portfile, 2.0 KB (added by blb@…, 21 years ago)

Portfile

Line 
1# $Id: $
2PortSystem              1.0
3name                    doxygen
4version                 1.3
5categories              textproc devel
6maintainers             blb@pobox.com
7description             Documentation system for several programming languages
8
9long_description        \
10It can generate an on-line documentation browser (in HTML) and/or an \
11off-line reference manual from a set of documented source files. \
12There is also support for generating output in RTF (MS-Word), \
13PostScript, hyperlinked PDF, compressed HTML, and Unix man pages. The \
14documentation is extracted directly from the sources, which makes it \
15much easier to keep the documentation consistent with the source code. \
16You can configure doxygen to extract the code structure from \
17undocumented source files. This is very useful to quickly find your \
18way in large source distributions. You can also visualize the \
19relations between the various elements by means of include dependency \
20graphs, inheritance diagrams, and collaboration diagrams, which are \
21all generated automatically.
22
23homepage                http://www.doxygen.org/
24master_sites            ftp://ftp.stack.nl/pub/users/dimitri/
25
26platforms               darwin
27distfiles               ${distname}.src${extract.sufx}
28checksums               md5 1d08cd47f72341a568216aede9872bbf
29
30depends_lib             bin:tex:teTeX bin:gs:ghostscript lib:libpng:libpng lib:libqt-mt:qt3 bin:dot:graphviz bin:ginstall:fileutils
31
32# setup to work smoothly with Qt3 (and fix an issue in the manual TeX)
33patchfiles              patch-Makefile.doxywizard patch-doxygen_manual.tex
34post-patch              {
35                        reinplace "s|\$(QTDIR)/include|${prefix}/include/qt3|g" \
36                           "${workpath}/${worksrcdir}/tmake/lib/macosx-c++/tmake.conf"
37                        reinplace "s|\$(QTDIR)/lib|${prefix}/lib|g" \
38                           "${workpath}/${worksrcdir}/tmake/lib/macosx-c++/tmake.conf"
39                        reinplace "s|= -lqt|= -lqt-mt|g" \
40                           "${workpath}/${worksrcdir}/tmake/lib/macosx-c++/tmake.conf"
41}
42
43
44configure.pre_args      --prefix ${prefix}
45configure.args          --docdir ${prefix}/share/doc --with-doxywizard
46configure.env           QTDIR=${prefix}
47
48build.target            all docs
49
50install.target          install_docs
51install.args            INSTALL=${destroot}/${prefix} DOCDIR=${destroot}/${prefix}/share/doc/doxygen
52