Ticket #12968: MPlayer.diff
File MPlayer.diff, 4.5 KB (added by milosh@…, 17 years ago) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 5 5 name MPlayer 6 version 1.0rc 1try36 version 1.0rc2 7 7 regsub -all "try." ${version} "" distversion 8 8 categories multimedia 9 9 maintainers ecronin@gizmolabs.org \ … … 30 30 http://www1.mplayerhq.hu/MPlayer/releases/codecs/:codecs \ 31 31 http://www2.mplayerhq.hu/MPlayer/releases/codecs/:codecs 32 32 patch_sites http://www.mplayerhq.hu/MPlayer/patches/ 33 patchfiles asmrules_fix_20061231.diff \34 cddb_fix_20070605.diff35 33 distname ${name}-${distversion} 36 34 use_bzip2 yes 37 35 38 36 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 37 md5 7e27e535c2d267637df34898f1b91707 \ 38 sha1 e9b496f3527c552004ec6d01d6b43f196b43ce2d \ 39 rmd160 3b5cba1529856a177a5191e22f8dcc00b5a83c52 \ 50 40 51 41 livecheck.check regex 52 42 livecheck.url http://www1.mplayerhq.hu/MPlayer/releases/ … … 57 47 port:libvorbis port:lzo2 port:ncurses port:zlib 58 48 depends_build port:pkgconfig 59 49 60 post-patch {61 reinplace "s|-llzo|-llzo2|g" ${worksrcpath}/configure62 reinplace "s|#include <lzo1x.h>|#include <lzoutil.h>\\\n#include <lzo1x.h>|g"\63 ${worksrcpath}/libmpcodecs/vd_lzo.c64 }65 66 50 # MPlayer's ./configure REALLY does not want you to use ENV for this 67 51 configure.cflags {} 68 52 configure.cxxflags {} … … 77 61 --mandir=${prefix}/share/man \ 78 62 --enable-png --enable-jpeg \ 79 63 --enable-liblzo --enable-libvorbis \ 80 --enable-mad --enable-mpdvdkit \ 64 --enable-mad --enable-libdvdcss-internal \ 65 --enable-dvdread-internal \ 81 66 --disable-faad-external --enable-largefiles 82 67 83 68 # MPlayer autodetects many support libs. To prevent undeclared … … 85 70 # Later, let autodetect do its magic not explicit --enable 86 71 configure.args-append \ 87 72 --disable-smb --disable-live --disable-dvdnav \ 88 --disable-dvdread \89 73 --disable-cdparanoia --disable-freetype \ 90 74 --disable-fontconfig --disable-unrarlib \ 91 75 --disable-fribidi --disable-enca \ 92 76 --disable-libcdio --disable-xvid \ 93 --disable-x264 --disable- nut --disable-libfame\77 --disable-x264 --disable-libnut \ 94 78 --disable-speex --disable-theora --disable-faac \ 95 79 --disable-ladspa --disable-libdv --disable-toolame \ 96 --disable-twolame --disable-xmms --disable-libdts\80 --disable-twolame --disable-xmms \ 97 81 --disable-musepack --disable-sdl --disable-aa \ 98 82 --disable-caca --disable-x11 --disable-arts \ 99 83 --disable-esd --disable-lirc … … 145 129 146 130 variant nodvd \ 147 131 description {Disable DVD and DeCSS support} { 148 configure.args-delete --enable- mpdvdkit149 configure.args-append --disable- mpdvdkit132 configure.args-delete --enable-dvdread-internal --enable-libdvdcss-internal 133 configure.args-append --disable-dvdread-internal --disable-libdvdcss-internal 150 134 } 151 135 152 136 variant smb \ … … 218 202 system "unzip -q ${distpath}/${mplayercodecsfile}" 219 203 } 220 204 221 configure.args-append -- with-codecsdir=${prefix}/share/${name}/codecs205 configure.args-append --codecsdir=${prefix}/share/${name}/codecs 222 206 223 207 post-destroot { 224 208 xinstall -m 755 -d ${destroot}${prefix}/share/${name}/codecs