Ignore:
Timestamp:
Jan 19, 2011, 1:30:26 PM (8 years ago)
Author:
jmr@…
Message:

libsdl: fix incorrect reinplaces with +universal, and fix ppc endianness config (#23674)

Location:
trunk/dports/devel/libsdl
Files:
1 added
1 edited

Legend:

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

    r75266 r75268  
    33
    44PortSystem 1.0
    5 PortGroup muniversal 1.0
    65PortGroup xcodeversion 1.0
    76
     
    1110set my_name     SDL
    1211version         1.2.14
    13 revision        8
     12revision        9
    1413categories      devel multimedia
    1514platforms       macosx freebsd
     
    2625homepage        http://www.libsdl.org/
    2726master_sites    http://www.libsdl.org/release/
    28 dist_subdir     ${name}/${version}_${revision}
     27dist_subdir     ${name}/${version}_8
    2928distname        ${my_name}-${version}
    3029
     
    5958use_parallel_build  yes
    6059
    61 set docdir      ${prefix}/share/doc/${name}-${version}
    62 
    6360post-configure {
    64     set sdl_config_h "${worksrcpath}/include/SDL_config.h"
    65 
     61    # not just for universal, ppc endianness detection is also broken
     62    system "cd ${worksrcpath} && ed - ./include/SDL_config.h < ${filespath}/include_SDL_config.h.ed"
     63   
    6664    if {![variant_isset no_x11]} {
    67         if {[file exists "${prefix}/lib/libX11.6.dylib"]} {
    68             reinplace "/libX11.6.dylib/s|\".*\"|\"${prefix}/lib/libX11.6.dylib\"|" ${sdl_config_h}
    69         }
    70 
    71         if {[file exists "${prefix}/lib/libXext.6.dylib"]} {
    72             reinplace "/libXext.6.dylib/s|\".*\"|\"${prefix}/lib/libXext.6.dylib\"|" ${sdl_config_h}
    73         }
    74 
    75         if {[file exists "${prefix}/lib/libXrandr.2.dylib"]} {
    76             reinplace "/libXrandr.2.dylib/s|\".*\"|\"${prefix}/lib/libXrandr.2.dylib\"|" ${sdl_config_h}
    77         }
    78 
    79         if {[file exists "${prefix}/lib/libXrender.1.dylib"]} {
    80             reinplace "/libXrender.1.dylib/s|\".*\"|\"${prefix}/lib/libXrender.1.dylib\"|" ${sdl_config_h}
     65        set sdl_config_h "${worksrcpath}/include/SDL_config.h"
     66        foreach lib {libX11.6 libXext.6 libXrandr.2 libXrender.1} {
     67            reinplace "/${lib}.dylib/s|\".*\"|\"${prefix}/lib/${lib}.dylib\"|" ${sdl_config_h}
    8168        }
    8269    }
     
    8471
    8572post-destroot {
     73    set docdir  ${prefix}/share/doc/${name}-${version}
     74   
    8675    xinstall -d ${destroot}${docdir}/html
    8776
Note: See TracChangeset for help on using the changeset viewer.