Ticket #61943: Portfile-libsdl2.2.diff

File Portfile-libsdl2.2.diff, 670 bytes (added by larb0b (Larkin), 3 years ago)

Patch that adds mesa as a dependency when building the X11 variant + finds and replaces /opt/X11 with your prefix in SDL_x11opengl.c

  • Portfile

    old new  
    4747}
    4848
    4949variant x11 {
     50    post-extract {
     51        reinplace -W "${worksrcpath}/src/video/x11" "s|/opt/X11|${prefix}|g" SDL_x11opengl.c
     52    }
     53
    5054    configure.args-delete --without-x
    5155    configure.args-append --x-includes=${prefix}/include \
    5256                          --x-libraries=${prefix}/lib \
     
    6064        port:xorg-libXrandr \
    6165        port:xorg-libXScrnSaver \
    6266        port:xorg-libXxf86vm \
    63         port:xrender
     67        port:xrender \
     68        port:mesa
    6469}
    6570if {${os.subplatform} ne "macosx"} {
    6671    default_variants +x11