Ignore:
Timestamp:
Apr 18, 2009, 1:58:47 PM (10 years ago)
Author:
nox@…
Message:

libsdl: Exec reinplace calls only when the no_x11 variant is not selected (closes #19291).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/libsdl/Portfile

    r49821 r49822  
    5353    set sdl_config_h "${worksrcpath}/include/SDL_config.h"
    5454
    55     if {[file exists "${prefix}/lib/libX11.6.dylib"]} {
    56         reinplace "/libX11.6.dylib/s|\".*\"|\"${prefix}/lib/libX11.6.dylib\"|" ${sdl_config_h}
    57     }
     55    if {![variant_isset no_x11]} {
     56        if {[file exists "${prefix}/lib/libX11.6.dylib"]} {
     57            reinplace "/libX11.6.dylib/s|\".*\"|\"${prefix}/lib/libX11.6.dylib\"|" ${sdl_config_h}
     58        }
    5859
    59     if {[file exists "${prefix}/lib/libXext.6.dylib"]} {
    60         reinplace "/libXext.6.dylib/s|\".*\"|\"${prefix}/lib/libXext.6.dylib\"|" ${sdl_config_h}
    61     }
     60        if {[file exists "${prefix}/lib/libXext.6.dylib"]} {
     61            reinplace "/libXext.6.dylib/s|\".*\"|\"${prefix}/lib/libXext.6.dylib\"|" ${sdl_config_h}
     62        }
    6263
    63     if {[file exists "${prefix}/lib/libXrandr.2.dylib"]} {
    64         reinplace "/libXrandr.2.dylib/s|\".*\"|\"${prefix}/lib/libXrandr.2.dylib\"|" ${sdl_config_h}
    65     }
     64        if {[file exists "${prefix}/lib/libXrandr.2.dylib"]} {
     65            reinplace "/libXrandr.2.dylib/s|\".*\"|\"${prefix}/lib/libXrandr.2.dylib\"|" ${sdl_config_h}
     66        }
    6667
    67     if {[file exists "${prefix}/lib/libXrender.1.dylib"]} {
    68         reinplace "/libXrender.1.dylib/s|\".*\"|\"${prefix}/lib/libXrender.1.dylib\"|" ${sdl_config_h}
     68        if {[file exists "${prefix}/lib/libXrender.1.dylib"]} {
     69            reinplace "/libXrender.1.dylib/s|\".*\"|\"${prefix}/lib/libXrender.1.dylib\"|" ${sdl_config_h}
     70        }
    6971    }
    7072
Note: See TracChangeset for help on using the changeset viewer.