Ticket #18264: Portfile.diff
File Portfile.diff, 3.8 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name doxygen 6 version 1.5. 7.16 version 1.5.8 7 7 categories textproc devel 8 8 maintainers css 9 9 description Documentation system for several programming languages … … 27 27 master_sites ftp://ftp.stack.nl/pub/users/dimitri/ 28 28 distfiles ${distname}.src${extract.suffix} 29 29 30 checksums md5 bc35dfd52bdae0247b862e67e0cbe7d7\31 sha1 a ecb0c453f76e900eb2aa8132ad063215005fca3\32 rmd160 f9614bb076d6531334a212a95dfbb862a7502c6930 checksums md5 7438b7ff875d522f02860eea39261953 \ 31 sha1 a55b1c41417be8acb3ac5e1553a711ffa437cba2 \ 32 rmd160 e392cd00960c4036661c8cda3ec6bc6ee3fe300c 33 33 34 depends_ lib lib:libpng:libpng bin:dot:graphviz \35 bin:ginstall:coreutilsport:libiconv34 depends_build-append bin:perl:perl5 bin:flex:flex bin:bison:bison bin:install:coreutils 35 depends_lib port:libpng port:graphviz port:libiconv 36 36 37 37 universal_variant no 38 38 39 # setup to work smoothly with Qt340 post-patch {41 reinplace "s|\$(QTDIR)/include|\$(QTDIR)/include/qt3|g" \42 ${tmake_conf}43 reinplace "s|@@PREFIX@@|${prefix}|g" \44 ${worksrcpath}/addon/doxywizard/Makefile.doxywizard45 reinplace "s|@@X11PREFIX@@|${x11prefix}|g" \46 ${worksrcpath}/addon/doxywizard/Makefile.doxywizard47 }48 49 # Patch support for Tiger--no longer needed as of 1.5.6?50 #patchfiles patch-qfiledefs_p.h51 52 39 configure.pre_args --prefix ${prefix} 53 40 configure.args --docdir ${prefix}/share/doc --dot ${prefix}/bin/dot 54 configure.env QTDIR=${prefix}55 41 56 post- configure{42 post-patch { 57 43 reinplace "/^TMAKE_CC\[\[:space:\]\]/s%=.*%= ${configure.cc}%" ${tmake_conf} 58 44 reinplace "/^TMAKE_CXX\[\[:space:\]\]/s%=.*%= ${configure.cxx}%" ${tmake_conf} 59 45 reinplace "/^TMAKE_LINK\[\[:space:\]\]/s%=.*%= ${configure.cxx}%" ${tmake_conf} 60 46 reinplace "/^TMAKE_LINK_SHLIB\[\[:space:\]\]/s%=.*%= ${configure.cxx}%" ${tmake_conf} 47 48 # may not be strictly necessary, but remove trailing '/' from DESTDIR 49 reinplace "s|\$(DESTDIR)/|\$(DESTDIR)|g" ${worksrcpath}/Makefile.in 61 50 } 62 51 63 build.env QTDIR=${prefix}64 52 build.target all 65 53 66 54 destroot.target install … … 71 59 variant docs description {Include the doxygen PDF documentation and LaTeX} { 72 60 build.target-append pdf 73 61 destroot.target-append install_docs 74 depends_ lib-append bin:pdflatex:texlive \62 depends_build-append bin:pdflatex:texlive \ 75 63 bin:gs:ghostscript 76 64 } 77 65 78 66 variant wizard description {Include the GUI wizard based on Qt} { 79 depends_lib-append lib:libqt-mt:qt3 67 configure.env-append QTDIR=${prefix}/libexec/qt4-mac 68 build.env-append QTDIR=${prefix}/libexec/qt4-mac 69 depends_lib-append port:qt4-mac 80 70 configure.args-append --with-doxywizard 71 72 # on Macs, qmake builds .app directories 73 patchfiles-append patch-Makfile.in.diff 74 75 post-patch { 76 # give doxywizard the more mac-like name of DoxyWizard 77 reinplace "/^TARGET\[\[:space:\]\]/s%=.*%= DoxyWizard%" ${worksrcpath}/addon/doxywizard/doxywizard.pro.in 78 79 reinplace "s|__APPLICATIONS_DIR__|${applications_dir}|" ${worksrcpath}/addon/doxywizard/Makefile.in 80 reinplace "s|\$(INSTALL)|\$(DESTDIR)\$(INSTALL)|g" ${worksrcpath}/addon/doxywizard/Makefile.in 81 } 82 83 post-destroot { 84 # allow doxywizard to be called from the command line 85 ln -s ${applications_dir}/DoxyWizard.app/Contents/MacOS/DoxyWizard ${destroot}${prefix}/bin/doxywizard 86 } 81 87 } 82 88 83 89 platform darwin { … … 85 91 global tmake_conf 86 92 set tmake_conf ${worksrcpath}/tmake/lib/macosx-c++/tmake.conf 87 93 configure.args-append --platform macosx-c++ 88 if {[variant_isset wizard]} {89 post-destroot {90 set dpappdir ${destroot}/Applications/MacPorts91 xinstall -m 755 -d ${dpappdir}/doxywizard.app/Contents/MacOS92 file rename ${destroot}${prefix}/bin/doxywizard \93 ${dpappdir}/doxywizard.app/Contents/MacOS/94 xinstall -m 644 ${filespath}/Info.plist \95 ${dpappdir}/doxywizard.app/Contents/96 }97 }98 94 }