Ticket #13551: Mplayer.patch

File Mplayer.patch, 4.7 KB (added by ecronin (Eric Cronin), 16 years ago)
  • Portfile

    old new  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
    2 # $Id: Portfile 31543 2007-11-27 15:41:56Z milosh@macports.org $
     2# $Id: Portfile 27329 2007-07-29 21:47:48Z pmq@macports.org $
    33
    44PortSystem          1.0
    55
    66name                MPlayer
    7 version             1.0rc1try3
    8 regsub -all "try." ${version} "" distversion
     7version             1.0rc2
    98categories          multimedia
    109maintainers         gizmolabs.org:ecronin \
    1110                    openmaintainer
     
    3029                http://www.people.virginia.edu/~drf8f/MPlayer/releases/ \
    3130                http://www1.mplayerhq.hu/MPlayer/releases/codecs/:codecs \
    3231                http://www2.mplayerhq.hu/MPlayer/releases/codecs/:codecs
    33 patch_sites     http://www.mplayerhq.hu/MPlayer/patches/
    34 patchfiles      asmrules_fix_20061231.diff \
    35                 cddb_fix_20070605.diff
    36 distname        ${name}-${distversion}
    3732use_bzip2       yes
    3833checksums       ${distname}${extract.suffix} \
    39                     md5 18c05d88e22c3b815a43ca8d7152ccdc \
    40                     sha1 a450c0b0749c343a8496ba7810363c9d46dfa73c \
    41                     rmd160 8cea02e832aec5d9e090829d61d0f131dcc177a2 \
    42                 asmrules_fix_20061231.diff \
    43                     md5 f0b71c38b1207c1d604be091876ac051 \
    44                     sha1 84412f4bd85d64a92586ca4db7e8585d16cd1acd \
    45                     rmd160 370877b45b314c9deb2d89739f8067a4a77c0844 \
    46                 cddb_fix_20070605.diff \
    47                     md5 bd8a233ea31c6686a956387ad28c5c5c \
    48                     sha1 4ed701ae65ede2f3510668be85d1efb093dc1f3c \
    49                     rmd160 0bf83ef398927ef28b5bf4287f1a1e9bb3bd4454
    50 
     34                    md5 7e27e535c2d267637df34898f1b91707 \
     35                    sha1 e9b496f3527c552004ec6d01d6b43f196b43ce2d \
     36                    rmd160 3b5cba1529856a177a5191e22f8dcc00b5a83c52
    5137
    5238livecheck.check     regex
    5339livecheck.url       http://www1.mplayerhq.hu/MPlayer/releases/
     
    5945                port:libvorbis port:lzo2 port:ncurses port:zlib
    6046depends_build   port:pkgconfig
    6147
    62 
    63 post-patch {
    64     reinplace "s|-llzo|-llzo2|g" ${worksrcpath}/configure
    65     reinplace \
    66         "s|#include <lzo1x.h>|#include <lzoutil.h>\\\n#include <lzo1x.h>|g"\
    67         ${worksrcpath}/libmpcodecs/vd_lzo.c
    68 }
    69 
    7048# MPlayer's ./configure REALLY does not want you to use ENV for this
    7149configure.cflags    {}
    7250configure.cxxflags  {}
     
    7957        --datadir=${prefix}/share/${name} \
    8058        --confdir=${prefix}/etc/${name} \
    8159        --mandir=${prefix}/share/man \
    82         --enable-png --enable-jpeg --enable-liblzo --enable-libvorbis \
    83         --enable-mad --enable-mpdvdkit --disable-faad-external \
     60        --enable-gif --enable-png --enable-jpeg --enable-liblzo \
     61        --enable-libvorbis --enable-mad --disable-faad-external \
    8462        --enable-largefiles
    8563
    8664# MPlayer autodetects many support libs.  To prevent undeclared
     
    9169        --disable-dvdread --disable-cdparanoia --disable-freetype \
    9270        --disable-fontconfig --disable-unrarlib --disable-fribidi \
    9371        --disable-enca --disable-libcdio --disable-xvid \
    94         --disable-x264 --disable-nut --disable-libfame \
     72        --disable-x264 --disable-apple-remote \
    9573        --disable-speex --disable-theora --disable-faac \
    9674        --disable-ladspa --disable-libdv --disable-toolame \
    97         --disable-twolame --disable-xmms --disable-libdts \
     75        --disable-twolame --disable-xmms \
    9876        --disable-musepack --disable-sdl --disable-aa \
    9977        --disable-caca --disable-x11 --disable-arts \
    10078        --disable-esd --disable-lirc
     
    136114    #configure.args-append   --enable-fribidi
    137115}
    138116
     117variant appleremote \
     118    description {Enable Apple Remote support} {
     119    configure.args-delete   --disable-apple-remote
     120}
     121
    139122variant lirc \
    140     description {Enable Linux Infrared Remote Daemon} {
     123    description {Enable Linux Infrared Remote Daemon support} {
    141124    depends_lib-append      port:lirc
    142125    configure.args-delete   --disable-lirc
    143126}
     
    146129
    147130variant nodvd \
    148131    description {Disable DVD and DeCSS support} {
    149     configure.args-delete   --enable-mpdvdkit
    150     configure.args-append   --disable-mpdvdkit
     132    configure.args-append   --disable-dvdread-internal --disable-libdvdcss-internal
    151133}
    152134
    153135variant smb \
     
    345327    # bits of libstdc++ are needed during linking
    346328    build.env           LD=c++
    347329}
    348 
    349 platform darwin i386 {
    350     configure.args-append   --disable-win32 --disable-mp3lib
    351 }
    352 
    353 platform darwin powerpc {}