Ticket #18264: Portfile.diff

File Portfile.diff, 3.8 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 15 years ago)
  • Portfile

    old new  
    33PortSystem 1.0
    44
    55name                    doxygen
    6 version                 1.5.7.1
     6version                 1.5.8
    77categories              textproc devel
    88maintainers             css
    99description             Documentation system for several programming languages
     
    2727master_sites            ftp://ftp.stack.nl/pub/users/dimitri/
    2828distfiles               ${distname}.src${extract.suffix}
    2929
    30 checksums               md5 bc35dfd52bdae0247b862e67e0cbe7d7 \
    31                         sha1 aecb0c453f76e900eb2aa8132ad063215005fca3 \
    32                         rmd160 f9614bb076d6531334a212a95dfbb862a7502c69
     30checksums               md5 7438b7ff875d522f02860eea39261953 \
     31                        sha1 a55b1c41417be8acb3ac5e1553a711ffa437cba2 \
     32                        rmd160 e392cd00960c4036661c8cda3ec6bc6ee3fe300c
    3333
    34 depends_lib             lib:libpng:libpng bin:dot:graphviz \
    35                         bin:ginstall:coreutils port:libiconv
     34depends_build-append    bin:perl:perl5 bin:flex:flex bin:bison:bison bin:install:coreutils
     35depends_lib             port:libpng port:graphviz port:libiconv
    3636
    3737universal_variant no
    3838
    39 # setup to work smoothly with Qt3
    40 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.doxywizard
    45         reinplace "s|@@X11PREFIX@@|${x11prefix}|g" \
    46                 ${worksrcpath}/addon/doxywizard/Makefile.doxywizard
    47 }
    48 
    49 # Patch support for Tiger--no longer needed as of 1.5.6?
    50 #patchfiles             patch-qfiledefs_p.h
    51 
    5239configure.pre_args      --prefix ${prefix}
    5340configure.args          --docdir ${prefix}/share/doc --dot ${prefix}/bin/dot
    54 configure.env           QTDIR=${prefix}
    5541
    56 post-configure {
     42post-patch {
    5743        reinplace "/^TMAKE_CC\[\[:space:\]\]/s%=.*%= ${configure.cc}%" ${tmake_conf}
    5844        reinplace "/^TMAKE_CXX\[\[:space:\]\]/s%=.*%= ${configure.cxx}%" ${tmake_conf}
    5945        reinplace "/^TMAKE_LINK\[\[:space:\]\]/s%=.*%= ${configure.cxx}%" ${tmake_conf}
    6046        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
    6150}
    6251
    63 build.env               QTDIR=${prefix}
    6452build.target            all
    6553
    6654destroot.target         install
     
    7159variant docs description {Include the doxygen PDF documentation and LaTeX} {
    7260        build.target-append     pdf
    7361        destroot.target-append  install_docs
    74         depends_lib-append      bin:pdflatex:texlive \
     62        depends_build-append    bin:pdflatex:texlive \
    7563                                bin:gs:ghostscript
    7664}
    7765
    7866variant 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
    8070        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        }
    8187}
    8288
    8389platform darwin {
     
    8591        global tmake_conf
    8692        set tmake_conf  ${worksrcpath}/tmake/lib/macosx-c++/tmake.conf
    8793        configure.args-append   --platform macosx-c++
    88         if {[variant_isset wizard]} {
    89                 post-destroot {
    90                         set dpappdir    ${destroot}/Applications/MacPorts
    91                         xinstall -m 755 -d ${dpappdir}/doxywizard.app/Contents/MacOS
    92                         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         }
    9894}