Ticket #38844: Portfile-tk.diff

File Portfile-tk.diff, 1.1 KB (added by irony42@…, 12 years ago)

Patch

  • Portfile

    old new  
    44
    55name            tk
    66version         8.6.0
    7 revision        1
     7revision        2
    88categories      x11
    99license         Tcl/Tk
    1010maintainers     mww openmaintainer
     
    6666if {${os.platform} == "darwin" && ${os.subplatform} == "macosx" && ${os.major} >= 10} {
    6767    variant quartz conflicts x11 {
    6868        depends_lib-delete port:Xft2 port:xorg-libXScrnSaver port:fontconfig
    69         # tk.h still includes and uses types from X11/Xlib.h
    70         depends_lib-append port:xorg-libX11
    7169        configure.ldflags-delete    -lfontconfig
    7270        configure.args-append   --enable-aqua
     71
     72        # tk.h still includes and uses types from X11/Xlib.h
     73        # Revert to "depends_lib-append port:xorg-libX11" if all else fails.
     74        patchfiles-append    patch-no-x11h.diff
     75        post-patch {
     76            file copy ${workpath}/tk${version}/xlib/X11/Xlib.h ${workpath}/tk${version}/generic/tkX11Xlib.h
     77        }
    7378        post-destroot {
    7479            delete ${destroot}${prefix}/include/X11
    7580        }