New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79717


Ignore:
Timestamp:
06/23/11 15:00:58 (4 years ago)
Author:
jeremyhu@…
Message:

mplayer-devel: Update to revision 33714, fix build on Lion

This addresses all the asm fixes I submitted as well as others. Unfortunately,
it still fails to build with llvm-gcc, so using gcc-4.2 on Lion until we figure
out the rest of the issues.

Location:
trunk/dports/multimedia/mplayer-devel
Files:
3 deleted
2 edited

Legend:

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

    r79700 r79717  
    66 
    77name                mplayer-devel 
    8 version             31034 
    9 revision            3 
     8version             33714 
    109categories          multimedia 
    1110maintainers         acho openmaintainer 
    1211platforms           darwin 
    1312 
    14 set dvdnav_ver      1191 
    15 set ffmpeg_ver      22866 
     13set dvdnav_ver      1228 
     14set ffmpeg_ver      ffc6c8a4305d25db8a5af72389a2453b17f43646 
    1615 
    1716description         The MPlayer movie player built from SVN. 
     
    4140    system "svn export -r${dvdnav_ver} svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src ${worksrcpath}/libdvdnav/" 
    4241    system "svn export -r${dvdnav_ver} svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread/src ${worksrcpath}/libdvdread4/" 
    43     system "svn export -r${ffmpeg_ver} svn://svn.ffmpeg.org/ffmpeg/trunk/libavcodec ${worksrcpath}/libavcodec/" 
    44     system "svn export -r${ffmpeg_ver} svn://svn.ffmpeg.org/ffmpeg/trunk/libavutil ${worksrcpath}/libavutil/" 
    45     system "svn export -r${ffmpeg_ver} svn://svn.ffmpeg.org/ffmpeg/trunk/libavformat ${worksrcpath}/libavformat/" 
    46     system "svn export -r${ffmpeg_ver} svn://svn.ffmpeg.org/ffmpeg/trunk/libpostproc ${worksrcpath}/libpostproc/" 
    47 } 
     42    system "git clone --depth 1 git://git.videolan.org/ffmpeg.git ${worksrcpath}/ffmpeg" 
     43    system "cd ${worksrcpath}/ffmpeg && git checkout -f ${ffmpeg_ver}" 
     44} 
     45 
     46platform darwin 11 { 
     47    configure.compiler gcc-4.2 
     48    #post-patch { 
     49    #    # MPlayer does not play well with llvm-gcc's link time optimization 
     50    #    reinplace "s:-O4:-O4 -fno-lto:" ${worksrcpath}/configure 
     51    #} 
     52} 
     53 
    4854# Do not use the following environment variables, otherwise the build phase 
    4955# will fail. 
     
    6571    --mandir=${prefix}/share/man \ 
    6672    --enable-png --enable-jpeg --enable-liblzo \ 
    67     --enable-theora --enable-libvorbis --enable-mad \ 
    68     --enable-largefiles 
    69  
     73    --enable-theora --enable-libvorbis --enable-mad 
     74 
     75# MPlayer autodetects many support libs.  To prevent undeclared 
     76# dependencies, explicitly disable everything optional first. 
     77# Later, let autodetect do its magic not explicit --enable 
    7078configure.args-append \ 
    7179    --disable-smb --disable-live --disable-dvdnav \ 
     
    8290    --disable-gif 
    8391 
    84 patchfiles configure.x11.patch yadif.patch mp3lib-sse.patch dsputil-mmx.patch 
     92patchfiles configure.x11.patch 
    8593 
    8694post-destroot { 
  • trunk/dports/multimedia/mplayer-devel/files/configure.x11.patch

    r50035 r79717  
    1 --- configure.orig      2009-04-12 10:07:30.000000000 -0700 
    2 +++ configure   2009-04-22 22:53:09.000000000 -0700 
    3 @@ -4196,6 +4196,9 @@ echores "$_x11_headers" 
     1--- configure.orig      2011-06-23 11:42:26.000000000 -0700 
     2+++ configure   2011-06-23 13:34:17.000000000 -0700 
     3@@ -4297,6 +4297,9 @@ echores "$_x11_headers" 
    44  
    55  
     
    99+fi 
    1010 if test "$_x11" = auto && test "$_x11_headers" = yes ; then 
    11    cat > $TMPC <<EOF 
    12  #include <X11/Xlib.h> 
    13 @@ -6760,6 +6763,7 @@ fi 
     11   for I in "" -L/usr/X11R7/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib/X11R6 \ 
     12            -L/usr/X11/lib -L/usr/lib32 -L/usr/openwin/lib -L/usr/local/lib64 -L/usr/X11R6/lib64 \ 
     13@@ -6777,6 +6780,7 @@ fi 
    1414 if test "$_qtx" = yes ; then 
    1515     def_qtx='#define CONFIG_QTX_CODECS 1' 
    1616     win32 && _qtx_codecs_win32=yes && def_qtx_win32='#define CONFIG_QTX_CODECS_WIN32 1' 
    1717+    darwin && extra_ldflags="$extra_ldflags -framework Carbon -framework QuickTime" && def_quicktime='#define CONFIG_QUICKTIME 1' 
    18      _codecmodules="qtx $_codecmodules" 
     18     codecmodules="qtx $codecmodules" 
    1919     darwin || win32 || _qtx_emulation=yes 
    2020 else 
Note: See TracChangeset for help on using the changeset viewer.