1 | # $Id: Portfile,v 1.17 2006/01/05 07:33:38 blb Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name doxygen |
---|
5 | version 1.4.6 |
---|
6 | categories textproc devel |
---|
7 | maintainers cssdev@mac.com |
---|
8 | description Documentation system for several programming languages |
---|
9 | long_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 | |
---|
23 | platforms darwin |
---|
24 | |
---|
25 | homepage http://www.doxygen.org/ |
---|
26 | master_sites ftp://ftp.stack.nl/pub/users/dimitri/ |
---|
27 | distfiles ${distname}.src${extract.suffix} |
---|
28 | |
---|
29 | checksums md5 3db9f1a7549d3427cbdc1f7c5e1af137\ |
---|
30 | sha1 24a733ccabcf4769441b8770cdbf33b50f9e3058 |
---|
31 | |
---|
32 | depends_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 |
---|
36 | patchfiles patch-addon_doxywizard_Makefile.doxywizard |
---|
37 | post-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 | |
---|
46 | configure.pre_args --prefix ${prefix} |
---|
47 | configure.args --docdir ${prefix}/share/doc |
---|
48 | configure.env QTDIR=${prefix} |
---|
49 | |
---|
50 | build.env QTDIR=${prefix} |
---|
51 | build.target all pdf |
---|
52 | |
---|
53 | destroot.target install install_docs |
---|
54 | destroot.args INSTALL=${destroot}${prefix} \ |
---|
55 | DOCDIR=${destroot}${prefix}/share/doc/doxygen \ |
---|
56 | MAN1DIR=share/man/man1 |
---|
57 | |
---|
58 | variant wizard { |
---|
59 | depends_lib-append lib:libqt-mt:qt3 |
---|
60 | configure.args-append --with-doxywizard |
---|
61 | } |
---|
62 | |
---|
63 | variant 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 | |
---|