Ticket #6514: doxygen-Portfile.txt

File doxygen-Portfile.txt, 2.6 KB (added by edkosh@…, 18 years ago)

doxygen Portfile update

Line 
1# $Id: Portfile,v 1.17 2006/01/05 07:33:38 blb Exp $
2
3PortSystem 1.0
4name                            doxygen
5version                         1.4.6
6categories                      textproc devel
7maintainers                     cssdev@mac.com
8description                     Documentation system for several programming languages
9long_description \
10        It can generate an on-line documentation browser (in HTML) and/or an \
11        off-line reference manual from a set of documented source files. \
12        There is also support for generating output in RTF (MS-Word), \
13        PostScript, hyperlinked PDF, compressed HTML, and Unix man pages. The \
14        documentation is extracted directly from the sources, which makes it \
15        much easier to keep the documentation consistent with the source code. \
16        You can configure doxygen to extract the code structure from \
17        undocumented source files. This is very useful to quickly find your \
18        way in large source distributions. You can also visualize the \
19        relations between the various elements by means of include dependency \
20        graphs, inheritance diagrams, and collaboration diagrams, which are \
21        all generated automatically.
22
23platforms                       darwin
24
25homepage                        http://www.doxygen.org/
26master_sites            ftp://ftp.stack.nl/pub/users/dimitri/
27distfiles                       ${distname}.src${extract.suffix}
28
29checksums                       md5 3db9f1a7549d3427cbdc1f7c5e1af137\
30                                        sha1 24a733ccabcf4769441b8770cdbf33b50f9e3058
31
32depends_lib                     bin:tex:teTeX bin:gs:ghostscript lib:libpng:libpng \
33                                        bin:dot:graphviz bin:ginstall:coreutils
34
35# setup to work smoothly with Qt3
36patchfiles                      patch-addon_doxywizard_Makefile.doxywizard
37post-patch {
38        reinplace "s|\$(QTDIR)/include|\$(QTDIR)/include/qt3|g" \
39                "${worksrcpath}/tmake/lib/macosx-c++/tmake.conf"
40        reinplace "s|@@PREFIX@@|${prefix}|g" \
41                ${worksrcpath}/addon/doxywizard/Makefile.doxywizard
42        reinplace "s|@@X11PREFIX@@|${x11prefix}|g" \
43                ${worksrcpath}/addon/doxywizard/Makefile.doxywizard
44}
45
46configure.pre_args      --prefix ${prefix}
47configure.args          --docdir ${prefix}/share/doc
48configure.env           QTDIR=${prefix}
49
50build.env                       QTDIR=${prefix}
51build.target            all pdf
52
53destroot.target         install install_docs
54destroot.args           INSTALL=${destroot}${prefix} \
55                                        DOCDIR=${destroot}${prefix}/share/doc/doxygen \
56                                        MAN1DIR=share/man/man1
57
58variant wizard {
59        depends_lib-append      lib:libqt-mt:qt3
60        configure.args-append   --with-doxywizard
61}
62
63variant darwin {
64        if {[variant_isset wizard]} {
65                post-destroot {
66                        set dpappdir    ${destroot}/Applications/DarwinPorts
67                        xinstall -m 755 -d ${dpappdir}/doxywizard.app/Contents/MacOS
68                        file rename ${destroot}${prefix}/bin/doxywizard \
69                                ${dpappdir}/doxywizard.app/Contents/MacOS/
70                        xinstall -m 644 ${filespath}/Info.plist \
71                                ${dpappdir}/doxywizard.app/Contents/
72                }
73        }
74}
75