New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79745


Ignore:
Timestamp:
06/24/11 13:14:42 (4 years ago)
Author:
jeremyhu@…
Message:

mplayer-devel: Workaround some llvm-gcc and LTO bugs to enable llvm-gcc on darwin11

Since this would also need a revbump, just bump us to the latest revisions
of mplayer and ffmpeg as well.

Location:
trunk/dports/multimedia/mplayer-devel
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/multimedia/mplayer-devel/Portfile

    r79719 r79745  
    66 
    77name                mplayer-devel 
    8 version             33714 
     8version             33720 
    99categories          multimedia 
    1010maintainers         acho openmaintainer 
     
    1212 
    1313set dvdnav_ver      1228 
    14 set ffmpeg_ver      ffc6c8a4305d25db8a5af72389a2453b17f43646 
     14set ffmpeg_ver      5aa8b270db2b88f136ef518b4bdf2b5dfff4a77b 
    1515 
    1616description         The MPlayer movie player built from SVN. 
     
    4141    system "svn export -r${dvdnav_ver} svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src ${worksrcpath}/libdvdnav/" 
    4242    system "svn export -r${dvdnav_ver} svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread/src ${worksrcpath}/libdvdread4/" 
    43     system "git clone --depth 1 git://git.videolan.org/ffmpeg.git ${worksrcpath}/ffmpeg" 
     43 
     44    # 1000 should be deep enough to find out checkout 
     45    system "git clone --depth 1000 git://git.videolan.org/ffmpeg.git ${worksrcpath}/ffmpeg" 
    4446    system "cd ${worksrcpath}/ffmpeg && git checkout -f ${ffmpeg_ver}" 
    45 } 
    46  
    47 platform darwin 11 { 
    48     configure.compiler gcc-4.2 
    49     #post-patch { 
    50     #    # MPlayer does not play well with llvm-gcc's link time optimization 
    51     #    reinplace "s:-O4:-O4 -fno-lto:" ${worksrcpath}/configure 
    52     #} 
    5347} 
    5448 
     
    9185    --disable-gif 
    9286 
    93 patchfiles configure.x11.patch 
     87# configure.clang.patch: http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1939 
     88patchfiles configure.x11.patch configure.clang.patch 
    9489 
    9590post-destroot { 
     
    270265variant debug description {Compile with debugging symbols} { 
    271266    configure.args-append   --enable-debug=gdb3 --disable-altivec 
    272     #post-patch { 
    273     #    reinplace "s:-O2:-O0:g" ${worksrcpath}/configure 
    274     #} 
     267} 
     268 
     269platform darwin 9 { 
     270    configure.args-delete   --extra-cflags="-I${prefix}/include/lzo -I${prefix}/include" 
     271    configure.args-append   --extra-cflags="-fomit-frame-pointer -I${prefix}/include/lzo -I${prefix}/include" 
     272} 
     273 
     274platform darwin 11 { 
     275    # BUILD FIX TODO: 
     276    # clang fails to build due to some bad inline asm 
     277    # https://ffmpeg.org/trac/ffmpeg/ticket/303 
     278    # configure.compiler clang 
     279 
     280    # llvm-gcc-4.2 fails to build vf_fspp.c properly with -O2 and above 
     281    patchfiles-append llvm-gcc-workaround.patch 
     282 
     283    post-patch { 
     284        # link time optimization fails to find references for ff_mlp_firorder* 
     285        # For some reason -O4 -fno-lto doesn't work as well, so just use -O3 
     286        reinplace "s:-O4:-O3:" ${worksrcpath}/configure 
     287    } 
    275288} 
    276289 
     
    281294    build.env           LD=${configure.cc} 
    282295} 
    283  
    284 platform darwin 8 { 
    285     # Need to force use of c++ for linking when Xcode 2.2 is used since some 
    286     # bits of libstdc++ are needed during linking 
    287     build.env           LD=${configure.cxx} 
    288 } 
    289  
    290 platform darwin 9 { 
    291     configure.args-delete   --extra-cflags="-I${prefix}/include/lzo -I${prefix}/include" 
    292     configure.args-append   --extra-cflags="-fomit-frame-pointer -I${prefix}/include/lzo -I${prefix}/include" 
    293 } 
Note: See TracChangeset for help on using the changeset viewer.