Ticket #14603: Portfile3.diff
File Portfile3.diff, 3.9 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 17 years ago) |
---|
-
Portfile
old new 2 2 3 3 PortSystem 1.0 4 4 name doxygen 5 version 1.5.4 6 revision 2 5 version 1.5.5 7 6 categories textproc devel 8 7 maintainers css@macports.org 9 8 description Documentation system for several programming languages … … 27 26 master_sites ftp://ftp.stack.nl/pub/users/dimitri/ 28 27 distfiles ${distname}.src${extract.suffix} 29 28 30 checksums md5 10ffe8d445dc1bf7dd69292b266906ff\31 sha1 1 a815f7de6b412f7852d57dec9eb50f7c4b03268\32 rmd160 2 63e2287da4fbe91a429dc53fe3569b150c76fdf29 checksums md5 95813ecd95b371d13d63844ddb9b5c46 \ 30 sha1 16b555f5d191cc0f854ae9856c49e4823a51c595 \ 31 rmd160 212ef3eca6a43c33189b11d3ab400f5b2069b019 33 32 34 33 depends_lib path:${prefix}/bin/pdflatex:texlive \ 35 34 bin:gs:ghostscript lib:libpng:libpng \ 36 35 bin:dot:graphviz bin:ginstall:coreutils port:libiconv 37 36 38 # setup to work smoothly with Qt339 37 post-patch { 38 # Change QTDIR include direcotory: include -> include/qt3 40 39 reinplace "s|\$(QTDIR)/include|\$(QTDIR)/include/qt3|g" \ 41 40 "${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" 46 49 } 47 50 48 # Using libiconv should negate the need for this patch.49 #patchfiles patch-portable.cpp 51 # This patch has no effect on Leopard 52 patchfiles qfiledefs_p.patch 50 53 51 54 configure.pre_args --prefix ${prefix} 52 configure.args --docdir ${prefix}/share/doc 55 configure.args --docdir ${prefix}/share/doc --dot ${prefix}/bin/dot 53 56 configure.env QTDIR=${prefix} 54 57 55 58 build.env QTDIR=${prefix} … … 65 71 configure.args-append --with-doxywizard 66 72 } 67 73 74 # This variant fails on Leopard (LSOpenFromURLSpec() failed with error -10810) 75 variant 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 68 88 platform darwin { 69 89 # Specify the platform explicitly to avoid a universal build. 70 90 configure.args-append --platform macosx-c++ 71 if {[variant_isset wizard]} {72 post-destroot {73 set dpappdir ${destroot}/Applications/MacPorts74 xinstall -m 755 -d ${dpappdir}/doxywizard.app/Contents/MacOS75 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 }81 91 } 82 92 83 93 platform 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" 97 98 } 98 99 }