Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #14603: Portfile3.diff

File Portfile3.diff, 3.9 KB (added by marcuscalhounlopez@…, 8 months ago)
  • Portfile

    old new  
    22 
    33PortSystem 1.0 
    44name                    doxygen 
    5 version                 1.5.4 
    6 revision                2 
     5version                 1.5.5 
    76categories              textproc devel 
    87maintainers             css@macports.org 
    98description             Documentation system for several programming languages 
     
    2726master_sites            ftp://ftp.stack.nl/pub/users/dimitri/ 
    2827distfiles               ${distname}.src${extract.suffix} 
    2928 
    30 checksums               md5 10ffe8d445dc1bf7dd69292b266906ff \ 
    31                         sha1 1a815f7de6b412f7852d57dec9eb50f7c4b03268 \ 
    32                         rmd160 263e2287da4fbe91a429dc53fe3569b150c76fdf 
     29checksums               md5 95813ecd95b371d13d63844ddb9b5c46 \ 
     30                        sha1 16b555f5d191cc0f854ae9856c49e4823a51c595 \ 
     31                        rmd160 212ef3eca6a43c33189b11d3ab400f5b2069b019 
    3332 
    3433depends_lib             path:${prefix}/bin/pdflatex:texlive \ 
    3534                        bin:gs:ghostscript lib:libpng:libpng \ 
    3635                        bin:dot:graphviz bin:ginstall:coreutils port:libiconv 
    3736 
    38 # setup to work smoothly with Qt3 
    3937post-patch { 
     38        # Change QTDIR include direcotory: include -> include/qt3 
    4039        reinplace "s|\$(QTDIR)/include|\$(QTDIR)/include/qt3|g" \ 
    4140                "${worksrcpath}/tmake/lib/macosx-c++/tmake.conf" 
    42         reinplace "s|@@PREFIX@@|${prefix}|g" \ 
    43                 ${worksrcpath}/addon/doxywizard/Makefile.doxywizard 
    44         reinplace "s|@@X11PREFIX@@|${x11prefix}|g" \ 
    45                 ${worksrcpath}/addon/doxywizard/Makefile.doxywizard 
     41         
     42        # Prepend -L${prefix}/lib to TMAKE_LIBS 
     43        reinplace -E "s|^(TMAKE_LIBS\[ \t\]*=)(\[ \t\]*)(.*)$|\\1\\2-L${prefix}/lib \\3|g" \ 
     44                "${worksrcpath}/tmake/lib/macosx-c++/tmake.conf" 
     45         
     46        # Append ${prefix}/include to TMAKE_INCDIR 
     47        reinplace -E "s|^TMAKE_INCDIR(\[ \t\]*=.*)$|INCLUDEPATH\\1 ${prefix}/include|g" \ 
     48                "${worksrcpath}/tmake/lib/macosx-c++/tmake.conf" 
    4649} 
    4750 
    48 # Using libiconv should negate the need for this patch. 
    49 #patchfiles             patch-portable.cpp 
     51# This patch has no effect on Leopard 
     52patchfiles              qfiledefs_p.patch 
    5053 
    5154configure.pre_args      --prefix ${prefix} 
    52 configure.args          --docdir ${prefix}/share/doc 
     55configure.args          --docdir ${prefix}/share/doc --dot ${prefix}/bin/dot 
    5356configure.env           QTDIR=${prefix} 
    5457 
    5558build.env               QTDIR=${prefix} 
     
    6571        configure.args-append   --with-doxywizard 
    6672} 
    6773 
     74# This variant fails on Leopard (LSOpenFromURLSpec() failed with error -10810) 
     75variant wizardapp requires wizard { 
     76        post-destroot { 
     77                set appdir      /Applications/MacPorts 
     78                set dpappdir    ${destroot}${appdir} 
     79                xinstall -m 755 -d ${dpappdir}/Doxywizard.app/Contents/MacOS 
     80                file rename ${destroot}${prefix}/bin/doxywizard \ 
     81                        ${dpappdir}/Doxywizard.app/Contents/MacOS/ 
     82                system "ln -s ${appdir}/Doxywizard.app/Contents/MacOS/doxywizard ${destroot}${prefix}/bin" 
     83                xinstall -m 644 ${filespath}/Info.plist \ 
     84                        ${dpappdir}/Doxywizard.app/Contents/ 
     85        } 
     86} 
     87 
    6888platform darwin { 
    6989        # Specify the platform explicitly to avoid a universal build. 
    7090        configure.args-append   --platform macosx-c++ 
    71         if {[variant_isset wizard]} { 
    72                 post-destroot { 
    73                         set dpappdir    ${destroot}/Applications/MacPorts 
    74                         xinstall -m 755 -d ${dpappdir}/doxywizard.app/Contents/MacOS 
    75                         file rename ${destroot}${prefix}/bin/doxywizard \ 
    76                                 ${dpappdir}/doxywizard.app/Contents/MacOS/ 
    77                         xinstall -m 644 ${filespath}/Info.plist \ 
    78                                 ${dpappdir}/doxywizard.app/Contents/ 
    79                 } 
    80         } 
    8191} 
    8292 
    8393platform darwin 9 { 
    84         # Account for an iconv difference on Leopard. 
    85         patchfiles-append       patch-portable.cpp 
    86         # Specify the platform explicitly to avoid a universal build. 
    87         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                 } 
     94        post-patch { 
     95                # _OS_MAC_ is only defined in the doygen subset of Qt (not in qt3) 
     96                reinplace "s|_OS_MAC_|Q_OS_DARWIN|g" \ 
     97                        "${worksrcpath}/addon/doxywizard/portable.cpp" 
    9798        } 
    9899}