Ticket #13290: MPlayer-whitespace.patch

File MPlayer-whitespace.patch, 11.6 KB (added by ecronin (Eric Cronin), 17 years ago)
  • Portfile

    old new  
    1 # $Id: Portfile 30203 2007-10-22 21:03:52Z jmpp@macports.org $
     1# -*- 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 27329 2007-07-29 21:47:48Z pmq@macports.org $
    23
    34PortSystem          1.0
    45
     
    67version             1.0rc1try3
    78regsub -all "try." ${version} "" distversion
    89categories          multimedia
    9 maintainers         ecronin@gizmolabs.org \
     10maintainers         gizmolabs.org:ecronin \
    1011                    openmaintainer
    1112description         The Unix movie player
    1213long_description \
     
    1718    displaying subtitles. MPlayer also has a GUI with skin support and \
    1819    several unofficial alternative graphical frontends are available.
    1920
    20 platforms           darwin
     21platforms       darwin
     22
     23homepage        http://www.mplayerhq.hu/
     24master_sites    ftp://ftp1.mplayerhq.hu/MPlayer/releases/ \
     25                http://www2.mplayerhq.hu/MPlayer/releases/ \
     26                ftp://ftp2.mplayerhq.hu/MPlayer/releases/ \
     27                ftp://ftp5.mplayerhq.hu/MPlayer/releases/ \
     28                ftp://ftp.fu-berlin.de/unix/X11/multimedia/MPlayer/releases/ \
     29                http://www1.mplayerhq.hu/MPlayer/releases/ \
     30                http://www.people.virginia.edu/~drf8f/MPlayer/releases/ \
     31                http://www1.mplayerhq.hu/MPlayer/releases/codecs/:codecs \
     32                http://www2.mplayerhq.hu/MPlayer/releases/codecs/:codecs
     33patch_sites     http://www.mplayerhq.hu/MPlayer/patches/
     34patchfiles      asmrules_fix_20061231.diff \
     35                cddb_fix_20070605.diff
     36distname        ${name}-${distversion}
     37use_bzip2       yes
     38checksums       ${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
    2150
    22 homepage            http://www.mplayerhq.hu/
    23 master_sites        ftp://ftp1.mplayerhq.hu/MPlayer/releases/ \
    24                     http://www2.mplayerhq.hu/MPlayer/releases/ \
    25                     ftp://ftp2.mplayerhq.hu/MPlayer/releases/ \
    26                     ftp://ftp5.mplayerhq.hu/MPlayer/releases/ \
    27                     ftp://ftp.fu-berlin.de/unix/X11/multimedia/MPlayer/releases/ \
    28                     http://www1.mplayerhq.hu/MPlayer/releases/ \
    29                     http://www.people.virginia.edu/~drf8f/MPlayer/releases/ \
    30                     http://www1.mplayerhq.hu/MPlayer/releases/codecs/:codecs \
    31                     http://www2.mplayerhq.hu/MPlayer/releases/codecs/:codecs
    32 patch_sites         http://www.mplayerhq.hu/MPlayer/patches/
    33 patchfiles          asmrules_fix_20061231.diff \
    34                     cddb_fix_20070605.diff
    35 distname            ${name}-${distversion}
    36 use_bzip2           yes
    37 
    38 checksums           ${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
    5051
    5152livecheck.check     regex
    5253livecheck.url       http://www1.mplayerhq.hu/MPlayer/releases/
    5354livecheck.regex     MPlayer-(1.0rc\[0-9\]+)\.tar\.bz2
    5455
    55 depends_lib         port:jpeg port:lame port:libiconv port:libmad \
    56                     port:libogg port:libpng port:libungif \
    57                     port:libvorbis port:lzo2 port:ncurses port:zlib
    58 depends_build       port:pkgconfig
     56
     57depends_lib     port:jpeg port:lame port:libiconv port:libmad \
     58                port:libogg port:libpng port:libungif \
     59                port:libvorbis port:lzo2 port:ncurses port:zlib
     60depends_build   port:pkgconfig
     61
    5962
    6063post-patch {
    61   reinplace "s|-llzo|-llzo2|g" ${worksrcpath}/configure
    62   reinplace "s|#include <lzo1x.h>|#include <lzoutil.h>\\\n#include <lzo1x.h>|g"\
    63   ${worksrcpath}/libmpcodecs/vd_lzo.c
     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
    6468}
    6569
    6670# MPlayer's ./configure REALLY does not want you to use ENV for this
     
    7074configure.ldflags   {}
    7175
    7276configure.args \
    73                     --with-extraincdir=${prefix}/include/lzo:${prefix}/include \
    74                     --with-extralibdir=${prefix}/lib:${prefix}/lib/samba3 \
    75                     --datadir=${prefix}/share/${name} \
    76                     --confdir=${prefix}/etc/${name} \
    77                     --mandir=${prefix}/share/man \
    78                     --enable-png --enable-jpeg \
    79                     --enable-liblzo --enable-libvorbis \
    80                     --enable-mad --enable-mpdvdkit \
    81                     --disable-faad-external --enable-largefiles
     77        --with-extraincdir=${prefix}/include/lzo:${prefix}/include \
     78        --with-extralibdir=${prefix}/lib:${prefix}/lib/samba3 \
     79        --datadir=${prefix}/share/${name} \
     80        --confdir=${prefix}/etc/${name} \
     81        --mandir=${prefix}/share/man \
     82        --enable-png --enable-jpeg --enable-liblzo --enable-libvorbis \
     83        --enable-mad --enable-mpdvdkit --disable-faad-external \
     84        --enable-largefiles
    8285
    8386# MPlayer autodetects many support libs.  To prevent undeclared
    8487# dependencies, explicitly disable everything optional first.
    8588# Later, let autodetect do its magic not explicit --enable
    8689configure.args-append \
    87                     --disable-smb --disable-live --disable-dvdnav \
    88                     --disable-dvdread \
    89                     --disable-cdparanoia --disable-freetype \
    90                     --disable-fontconfig --disable-unrarlib \
    91                     --disable-fribidi --disable-enca \
    92                     --disable-libcdio --disable-xvid \
    93                     --disable-x264 --disable-nut --disable-libfame \
    94                     --disable-speex --disable-theora --disable-faac \
    95                     --disable-ladspa --disable-libdv --disable-toolame \
    96                     --disable-twolame --disable-xmms --disable-libdts \
    97                     --disable-musepack --disable-sdl --disable-aa \
    98                     --disable-caca --disable-x11 --disable-arts \
    99                     --disable-esd --disable-lirc
     90        --disable-smb --disable-live --disable-dvdnav \
     91        --disable-dvdread --disable-cdparanoia --disable-freetype \
     92        --disable-fontconfig --disable-unrarlib --disable-fribidi \
     93        --disable-enca --disable-libcdio --disable-xvid \
     94        --disable-x264 --disable-nut --disable-libfame \
     95        --disable-speex --disable-theora --disable-faac \
     96        --disable-ladspa --disable-libdv --disable-toolame \
     97        --disable-twolame --disable-xmms --disable-libdts \
     98        --disable-musepack --disable-sdl --disable-aa \
     99        --disable-caca --disable-x11 --disable-arts \
     100        --disable-esd --disable-lirc
    100101
    101102post-destroot {
    102103    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
     
    188189    configure.args-append   --enable-x264
    189190    # upstream ./configure broken, fixed in mplayer-svn.
    190191    post-patch {
    191         reinplace "s|if test \"\$_x264\" = yes ; then|if test \"\$_x264\" = yes ; then\\\n  _ld_x264=-lx264|g" \
     192        reinplace \
     193            "s|if test \"\$_x264\" = yes ; then|if test \"\$_x264\" = yes ; then\\\n  _ld_x264=-lx264|g" \
    192194            ${worksrcpath}/configure
    193195    }
    194196}
     
    201203    description {Enable platform-specific binary codecs} {
    202204    if {[variant_isset darwin_powerpc]} {
    203205        global mplayercodecs mplayercodecsfile
    204         set mplayercodecs           rp9codecs-macosx-20041107.pkg
    205         set mplayercodecsfile       ${mplayercodecs}.zip
    206         distfiles-append            ${mplayercodecsfile}:codecs
    207         checksums-append            ${mplayercodecsfile} \
    208                                         md5 788cf4940280fd787c0a2141d88ce3c7 \
    209                                         sha1 18abd6d0424c4682815a13b34695d37d2fda2a73 \
    210                                         rmd160 c6f49012633bbb84ffa405b8881dc90605d26fc6
     206        set mplayercodecs       rp9codecs-macosx-20041107.pkg
     207        set mplayercodecsfile   ${mplayercodecs}.zip
     208        distfiles-append        ${mplayercodecsfile}:codecs
     209        checksums-append        ${mplayercodecsfile} \
     210                                    md5 788cf4940280fd787c0a2141d88ce3c7 \
     211                                    sha1 18abd6d0424c4682815a13b34695d37d2fda2a73 \
     212                                    rmd160 c6f49012633bbb84ffa405b8881dc90605d26fc6
    211213
    212         extract.only                ${distname}${extract.suffix}
     214        extract.only            ${distname}${extract.suffix}
    213215
    214         depends_build-append        bin:unzip:unzip
     216        depends_build-append    bin:unzip:unzip
    215217
    216218        post-extract {
    217219            system "unzip -q -d ${worksrcpath} ${distpath}/${mplayercodecsfile}"
     
    227229    }
    228230    if {[variant_isset darwin_i386]} {
    229231        global mplayercodecs mplayercodecsfile
    230         set mplayercodecs           "Essential Codecs Package (Intel).pkg"
    231         set mplayercodecsfile       essential-macosx-x86-20060611.zip
    232         distfiles-append            ${mplayercodecsfile}:codecs
    233         checksums-append            ${mplayercodecsfile} \
    234                                         md5 1e409d500336a8318cbe2a67bbf9d9ca \
    235                                         sha1 4f8fee483b6c227d8cb774d2d30e1ef36a43e04a \
    236                                         rmd160 87beaa40263deb0d0b9166f24d6f9dd686f594fd
     232        set mplayercodecs       "Essential Codecs Package (Intel).pkg"
     233        set mplayercodecsfile   essential-macosx-x86-20060611.zip
     234        distfiles-append        ${mplayercodecsfile}:codecs
     235        checksums-append        ${mplayercodecsfile} \
     236                                    md5 1e409d500336a8318cbe2a67bbf9d9ca \
     237                                    sha1 4f8fee483b6c227d8cb774d2d30e1ef36a43e04a \
     238                                    rmd160 87beaa40263deb0d0b9166f24d6f9dd686f594fd
    237239
    238         extract.only                ${distname}${extract.suffix}
     240        extract.only            ${distname}${extract.suffix}
    239241
    240         depends_lib-append          bin:unzip:unzip
     242        depends_build-append    bin:unzip:unzip
    241243
    242244        post-extract {
    243245            system "unzip -q -d ${worksrcpath} ${distpath}/${mplayercodecsfile}"
     
    284286    configure.args-delete   --disable-libdts
    285287}
    286288
    287 variant live \
    288     description {Enable live555 streaming media input} {
    289     depends_lib-append      port:live555
    290     configure.args-delete   --disable-live
    291 }
    292 
    293289##### Outputs
    294290
    295291variant sdl \