Ticket #13551: Mplayer.patch
File Mplayer.patch, 4.7 KB (added by ecronin (Eric Cronin), 17 years ago) |
---|
-
Portfile
old new 1 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 31543 2007-11-27 15:41:56Z milosh@macports.org $2 # $Id: Portfile 27329 2007-07-29 21:47:48Z pmq@macports.org $ 3 3 4 4 PortSystem 1.0 5 5 6 6 name MPlayer 7 version 1.0rc1try3 8 regsub -all "try." ${version} "" distversion 7 version 1.0rc2 9 8 categories multimedia 10 9 maintainers gizmolabs.org:ecronin \ 11 10 openmaintainer … … 30 29 http://www.people.virginia.edu/~drf8f/MPlayer/releases/ \ 31 30 http://www1.mplayerhq.hu/MPlayer/releases/codecs/:codecs \ 32 31 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.diff36 distname ${name}-${distversion}37 32 use_bzip2 yes 38 33 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 50 34 md5 7e27e535c2d267637df34898f1b91707 \ 35 sha1 e9b496f3527c552004ec6d01d6b43f196b43ce2d \ 36 rmd160 3b5cba1529856a177a5191e22f8dcc00b5a83c52 51 37 52 38 livecheck.check regex 53 39 livecheck.url http://www1.mplayerhq.hu/MPlayer/releases/ … … 59 45 port:libvorbis port:lzo2 port:ncurses port:zlib 60 46 depends_build port:pkgconfig 61 47 62 63 post-patch {64 reinplace "s|-llzo|-llzo2|g" ${worksrcpath}/configure65 reinplace \66 "s|#include <lzo1x.h>|#include <lzoutil.h>\\\n#include <lzo1x.h>|g"\67 ${worksrcpath}/libmpcodecs/vd_lzo.c68 }69 70 48 # MPlayer's ./configure REALLY does not want you to use ENV for this 71 49 configure.cflags {} 72 50 configure.cxxflags {} … … 79 57 --datadir=${prefix}/share/${name} \ 80 58 --confdir=${prefix}/etc/${name} \ 81 59 --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 \ 84 62 --enable-largefiles 85 63 86 64 # MPlayer autodetects many support libs. To prevent undeclared … … 91 69 --disable-dvdread --disable-cdparanoia --disable-freetype \ 92 70 --disable-fontconfig --disable-unrarlib --disable-fribidi \ 93 71 --disable-enca --disable-libcdio --disable-xvid \ 94 --disable-x264 --disable- nut --disable-libfame \72 --disable-x264 --disable-apple-remote \ 95 73 --disable-speex --disable-theora --disable-faac \ 96 74 --disable-ladspa --disable-libdv --disable-toolame \ 97 --disable-twolame --disable-xmms --disable-libdts\75 --disable-twolame --disable-xmms \ 98 76 --disable-musepack --disable-sdl --disable-aa \ 99 77 --disable-caca --disable-x11 --disable-arts \ 100 78 --disable-esd --disable-lirc … … 136 114 #configure.args-append --enable-fribidi 137 115 } 138 116 117 variant appleremote \ 118 description {Enable Apple Remote support} { 119 configure.args-delete --disable-apple-remote 120 } 121 139 122 variant lirc \ 140 description {Enable Linux Infrared Remote Daemon } {123 description {Enable Linux Infrared Remote Daemon support} { 141 124 depends_lib-append port:lirc 142 125 configure.args-delete --disable-lirc 143 126 } … … 146 129 147 130 variant nodvd \ 148 131 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 151 133 } 152 134 153 135 variant smb \ … … 345 327 # bits of libstdc++ are needed during linking 346 328 build.env LD=c++ 347 329 } 348 349 platform darwin i386 {350 configure.args-append --disable-win32 --disable-mp3lib351 }352 353 platform darwin powerpc {}