Ticket #14603: Portfile2.diff
File Portfile2.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" 49 50 # _OS_MAC_ is only defined in the doygen subset of Qt (not in qt3) 51 reinplace "s|_OS_MAC_|Q_OS_DARWIN|g" \ 52 "${worksrcpath}/addon/doxywizard/portable.cpp" 46 53 } 47 54 48 # Using libiconv should negate the need for this patch.49 #patchfiles patch-portable.cpp 55 # This patch has no effect on Leopard 56 patchfiles qfiledefs_p.patch 50 57 51 58 configure.pre_args --prefix ${prefix} 52 configure.args --docdir ${prefix}/share/doc 59 configure.args --docdir ${prefix}/share/doc --dot ${prefix}/bin/dot 53 60 configure.env QTDIR=${prefix} 54 61 55 62 build.env QTDIR=${prefix} … … 65 75 configure.args-append --with-doxywizard 66 76 } 67 77 68 platform darwin { 69 # Specify the platform explicitly to avoid a universal build. 70 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 } 78 # This variant fails on Leopard (LSOpenFromURLSpec() failed with error -10810) 79 variant wizardapp requires wizard { 80 post-destroot { 81 set appdir /Applications/MacPorts 82 set dpappdir ${destroot}${appdir} 83 xinstall -m 755 -d ${dpappdir}/Doxywizard.app/Contents/MacOS 84 file rename ${destroot}${prefix}/bin/doxywizard \ 85 ${dpappdir}/Doxywizard.app/Contents/MacOS/ 86 system "ln -s ${appdir}/Doxywizard.app/Contents/MacOS/doxywizard ${destroot}${prefix}/bin" 87 xinstall -m 644 ${filespath}/Info.plist \ 88 ${dpappdir}/Doxywizard.app/Contents/ 80 89 } 81 90 } 82 91 83 platform darwin 9 { 84 # Account for an iconv difference on Leopard. 85 patchfiles-append patch-portable.cpp 92 platform darwin { 86 93 # Specify the platform explicitly to avoid a universal build. 87 94 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 95 }