Ticket #20448: doxygen-Portfile.diff
File doxygen-Portfile.diff, 5.3 KB (added by ccorn@…, 15 years ago) |
---|
-
Portfile
9 9 maintainers css 10 10 description Documentation system for several programming languages 11 11 long_description \ 12 It can generate an on-line documentation browser (in HTML) and/or an\13 off-line reference manual from a set of documented source files. \12 Doxygen can generate an on-line documentation browser (in HTML) and/or \ 13 an off-line reference manual from a set of documented source files. \ 14 14 There is also support for generating output in RTF (MS-Word), \ 15 15 PostScript, hyperlinked PDF, compressed HTML, and Unix man pages. The \ 16 16 documentation is extracted directly from the sources, which makes it \ … … 32 32 sha1 6211b850bdaa2198e35546e4299a27774c957ece \ 33 33 rmd160 51d79c0f8846f47e9aa8c37cd0eb9db630491885 34 34 35 depends_build-append bin:perl:perl5 bin:flex:flex bin:bison:bison bin:ginstall:coreutils35 depends_build-append bin:perl:perl5 bin:flex:flex bin:bison:bison 36 36 depends_lib port:libpng path:bin/dot:graphviz port:libiconv 37 37 38 38 universal_variant no 39 39 40 40 configure.pre_args --prefix ${prefix} 41 configure.args --docdir ${prefix}/share/doc --dot ${prefix}/bin/dot 41 configure.args --docdir ${prefix}/share/doc --dot ${prefix}/bin/dot \ 42 --install /usr/bin/install 42 43 43 44 post-patch { 44 45 # ensure correct compilers and compiler options are used 45 reinplace "/^TMAKE_CC\[\[:space:\]\]/s%=.*%= ${configure.cc} ${configure.cppflags}%" ${tmake_conf} 46 reinplace "/^TMAKE_CXX\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.cppflags}%" ${tmake_conf} 47 reinplace "/^TMAKE_LINK\[\[:space:\]\]/s%=.*%= ${configure.cxx}%" ${tmake_conf} 48 reinplace "/^TMAKE_LINK_SHLIB\[\[:space:\]\]/s%=.*%= ${configure.cxx}%" ${tmake_conf} 49 46 if {${os.platform} eq "darwin"} { 47 # Specify the platform explicitly to avoid a universal build. 48 if { ![variant_isset universal] } { 49 set tmake_platform macosx-c++ 50 } else { 51 set tmake_platform macosx-uni-c++ 52 } 53 configure.args-append --platform ${tmake_platform} 54 set tmake_conf ${worksrcpath}/tmake/lib/${tmake_platform}/tmake.conf 55 reinplace "/^TMAKE_CC\[\[:space:\]\]/s%=.*%= ${configure.cc} ${configure.cppflags}%" ${tmake_conf} 56 reinplace "/^TMAKE_CXX\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.cppflags}%" ${tmake_conf} 57 reinplace "/^TMAKE_LINK\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.ldflags}%" ${tmake_conf} 58 reinplace "/^TMAKE_LINK_SHLIB\[\[:space:\]\]/s%=.*%= ${configure.cxx} ${configure.ldflags}%" ${tmake_conf} 59 # give doxywizard the more mac-like name of DoxyWizard 60 reinplace "/^TARGET\[\[:space:\]\]/s%=.*%= DoxyWizard%" ${worksrcpath}/addon/doxywizard/doxywizard.pro.in 61 # Set installation path for apps 62 reinplace "s|__APPLICATIONS_DIR__|${applications_dir}|" ${worksrcpath}/addon/doxywizard/Makefile.in 63 } 50 64 # may not be strictly necessary, but remove trailing '/' from DESTDIR 51 65 reinplace "s|\$(DESTDIR)/|\$(DESTDIR)|g" ${worksrcpath}/Makefile.in 66 # Use DESTDIR in doxywizard's Makefile 67 reinplace "s|\$(INSTALL)|\$(DESTDIR)\$(INSTALL)|g" ${worksrcpath}/addon/doxywizard/Makefile.in 52 68 } 53 69 54 70 build.target all … … 58 74 DOCDIR=${prefix}/share/doc/doxygen \ 59 75 MAN1DIR=share/man/man1 60 76 77 post-destroot { 78 if {[variant_isset wizard]} { 79 # allow doxywizard to be called from the command line 80 ln -s ${applications_dir}/DoxyWizard.app/Contents/MacOS/DoxyWizard ${destroot}${prefix}/bin/doxywizard 81 } 82 } 83 61 84 variant docs description {Include the doxygen PDF documentation and LaTeX} { 62 85 build.target-append pdf 63 86 destroot.target-append install_docs … … 68 91 variant wizard description {Include the GUI wizard based on Qt} { 69 92 configure.env-append QTDIR=${prefix}/libexec/qt4-mac 70 93 build.env-append QTDIR=${prefix}/libexec/qt4-mac 94 # qt4-mac seems to add -lpng without -L${prefix}/lib 95 build.env-append LIBRARY_PATH=${prefix}/lib 71 96 depends_lib-append port:qt4-mac 72 97 configure.args-append --with-doxywizard 73 74 # on Macs, qmake builds .app directories 75 patchfiles-append patch-Makfile.in.diff 76 77 post-patch { 78 # give doxywizard the more mac-like name of DoxyWizard 79 reinplace "/^TARGET\[\[:space:\]\]/s%=.*%= DoxyWizard%" ${worksrcpath}/addon/doxywizard/doxywizard.pro.in 80 81 reinplace "s|__APPLICATIONS_DIR__|${applications_dir}|" ${worksrcpath}/addon/doxywizard/Makefile.in 82 reinplace "s|\$(INSTALL)|\$(DESTDIR)\$(INSTALL)|g" ${worksrcpath}/addon/doxywizard/Makefile.in 98 # Avoid multi-architecture builds unless explicitly requested 99 if {![variant_isset universal]} { 100 patchfiles-append patch-addon-doxywizard-doxywizard.pro.in 83 101 } 84 85 post-destroot {86 # allow doxywizard to be called from the command line87 ln -s ${applications_dir}/DoxyWizard.app/Contents/MacOS/DoxyWizard ${destroot}${prefix}/bin/doxywizard88 }89 102 } 90 103 91 104 platform darwin { 92 # Specify the platform explicitly to avoid a universal build. 93 global tmake_conf 94 95 if { ![variant_isset universal] } { 96 set tmake_conf ${worksrcpath}/tmake/lib/macosx-c++/tmake.conf 97 configure.args-append --platform macosx-c++ 98 } else { 99 set tmake_conf ${worksrcpath}/tmake/lib/macosx-uni-c++/tmake.conf 100 configure.args-append --platform macosx-uni-c++ 101 } 105 # on Macs, qmake builds .app directories; add install command 106 patchfiles-append patch-Makfile.in.diff 102 107 } 103 108 104 109 platform darwin 10 {