# $Id$ # -*- 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 PortSystem 1.0 name mplayer-devel version 29418 revision 1 categories multimedia maintainers acho openmaintainer platforms darwin set dvdnav_ver 1174 set ffmpeg_ver 19425 description The MPlayer movie player built from SVN. long_description ${description} It plays most MPEG/VOB, AVI, Ogg/OGM, \ VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, \ NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, \ supported by many native, XAnim, and Win32 DLL codecs. \ You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV \ and even H.264 movies. homepage http://www.mplayerhq.hu/ livecheck.check none depends_build port:pkgconfig port:yasm port:subversion depends_lib \ port:jpeg port:lame port:libiconv port:libmad \ port:libogg port:libpng port:libvorbis port:lzo2 \ port:ncurses port:zlib port:bzip2 port:liboil fetch.type svn #svn.tag ${version} #svn.url svn://svn.mplayerhq.hu/mplayer/trunk worksrcdir trunk fetch { system "svn export -r${version} --ignore-externals svn://svn.mplayerhq.hu/mplayer/trunk ${worksrcpath}/" system "svn export -r${dvdnav_ver} svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src ${worksrcpath}/libdvdnav/" system "svn export -r${dvdnav_ver} svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread/src ${worksrcpath}/libdvdread4/" system "svn export -r${ffmpeg_ver} svn://svn.ffmpeg.org/ffmpeg/trunk/libavcodec ${worksrcpath}/libavcodec/" system "svn export -r${ffmpeg_ver} svn://svn.ffmpeg.org/ffmpeg/trunk/libavutil ${worksrcpath}/libavutil/" system "svn export -r${ffmpeg_ver} svn://svn.ffmpeg.org/ffmpeg/trunk/libavformat ${worksrcpath}/libavformat/" system "svn export -r${ffmpeg_ver} svn://svn.ffmpeg.org/ffmpeg/trunk/libpostproc ${worksrcpath}/libpostproc/" } # Do not use the following environment variables, otherwise the build phase # will fail. configure.cflags {} configure.cppflags {} configure.cxxflags {} configure.ldflags {} # Do not use pipes, otherwise the build phase will fail. configure.pipe no configure.args \ --extra-cflags="-I${prefix}/include/lzo -I${prefix}/include" \ --extra-ldflags="-L${prefix}/lib -L${prefix}/lib/samba3" \ --datadir=${prefix}/share/${name} \ --confdir=${prefix}/etc/${name} \ --mandir=${prefix}/share/man \ --enable-png --enable-jpeg --enable-liblzo \ --enable-libvorbis --enable-mad \ --enable-largefiles configure.args-append \ --disable-smb --disable-live --disable-dvdnav \ --disable-dvdread --disable-cdparanoia --disable-freetype \ --disable-fontconfig --disable-fribidi \ --disable-enca --disable-libcdio --disable-xvid \ --disable-x264 --disable-speex --disable-theora \ --disable-faac --disable-libdv \ --disable-toolame --disable-twolame --disable-xmms \ --disable-musepack --disable-sdl --disable-aa \ --disable-caca --disable-x11 --disable-gl --disable-arts \ --disable-esd --disable-lirc --disable-mng --disable-libdirac-lavc \ --disable-libschroedinger-lavc patchfiles configure.x11.patch post-destroot { xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} eval file copy [glob ${worksrcpath}/DOCS/*] \ ${destroot}${prefix}/share/doc/${name} xinstall -d -m 0755 ${destroot}${prefix}/etc/${name} foreach etcfile {codecs.conf dvb-menu.conf example.conf \ input.conf menu.conf} { xinstall -m 0644 ${worksrcpath}/etc/${etcfile} \ ${destroot}${prefix}/etc/${name}/${etcfile} } xinstall -d -m 0755 ${destroot}${prefix}/share/man/man1 xinstall -m 0644 ${worksrcpath}/DOCS/man/en/mplayer.1 \ ${destroot}${prefix}/share/man/man1/ xinstall -m 0755 ${worksrcpath}/TOOLS/midentify.sh ${destroot}${prefix}/bin/midentify } universal_variant no variant man_all_lang \ description {Install all possible languages for man pages} { configure.args-append --language=all } # Bundle all the font deps into one onscreen display variant # Allow autodetect to pick up fontconfig & freetype variant osd \ description {Enable onscreen display and TrueType font support} { depends_lib-append port:fontconfig port:freetype configure.args-delete --disable-fontconfig configure.args-delete --disable-freetype configure.args-append --enable-menu } variant fribidi requires osd \ description {Enable FriBidi Unicode support} { depends_lib-append port:fribidi configure.args-delete --disable-fribidi } variant noappleremote \ description {Disable Apple Infrared Remote support} { configure.args-append --disable-apple-remote } variant lirc \ description {Enable Linux Infrared Remote Daemon support} { depends_lib-append port:lirc configure.args-delete --disable-lirc } variant live \ description {Enable live555 support} { depends_lib-append port:live555 } ##### variant nodvd \ description {Disable DVD and DeCSS support} { configure.args-append --disable-dvdread-internal --disable-libdvdcss-internal } variant samba description {Enable Samba support} { depends_lib-append port:samba3 configure.args-append --enable-smb configure.args-delete --disable-smb } ##### External codecs variant theora \ description {Enable OggTheora support} { depends_lib-append port:libtheora configure.args-delete --disable-theora configure.args-append --enable-theora } variant xvid \ description {Enable XviD encoding} { depends_lib-append port:XviD configure.args-delete --disable-xvid } variant x264 \ description {Enable H.264 encoding} { depends_lib-append port:x264 configure.args-delete --disable-x264 } variant speex \ description {Enable Speex playback} { depends_lib-append port:speex-devel configure.args-delete --disable-speex } variant faac \ description {Enable AAC encoding} { depends_lib-append port:faac configure.args-delete --disable-faac } variant dv \ description {Enable DV encoding} { depends_lib-append port:libdv configure.args-delete --disable-libdv } variant twolame \ description {Enable MPEG Audio Layer 2 encoding} { depends_lib-append port:twolame configure.args-delete --disable-twolame } variant dts \ description {Enable non-passthrough DTS playback} { depends_lib-append port:libdca configure.args-delete --disable-libdts } variant mng \ description {Enable mng codec support} { depends_lib-append port:libmng configure.args-delete --disable-mng } variant dirac \ description {Enable dirac codec support} { depends_lib-append port:dirac port:schroedinger configure.args-delete --disable-libdirac-lavc configure.args-delete --disable-libschroedinger-lavc } platform darwin powerpc {} platform darwin i386 {} variant binary_codecs \ description {Enable platform-specific binary codecs} { if {[variant_isset darwin_powerpc]} { global mplayercodecs mplayercodecsfile set mplayercodecs rp9codecs-macosx-20041107.pkg set mplayercodecsfile ${mplayercodecs}.zip distfiles-append ${mplayercodecsfile}:codecs checksums-append ${mplayercodecsfile} \ md5 788cf4940280fd787c0a2141d88ce3c7 \ sha1 18abd6d0424c4682815a13b34695d37d2fda2a73 \ rmd160 c6f49012633bbb84ffa405b8881dc90605d26fc6 extract.only ${distname}${extract.suffix} depends_build-append bin:unzip:unzip } if {[variant_isset darwin_i386]} { global mplayercodecs mplayercodecsfile set mplayercodecs "Essential Codecs Package (Intel).pkg" set mplayercodecsfile essential-macosx-x86-20060611.zip distfiles-append ${mplayercodecsfile}:codecs checksums-append ${mplayercodecsfile} \ md5 1e409d500336a8318cbe2a67bbf9d9ca \ sha1 4f8fee483b6c227d8cb774d2d30e1ef36a43e04a \ rmd160 87beaa40263deb0d0b9166f24d6f9dd686f594fd extract.only ${distname}${extract.suffix} depends_build-append bin:unzip:unzip } post-fetch { system "curl --create-dirs http://www.mplayerhq.hu/MPlayer/releases/codecs/${mplayercodecsfile} -o ${distpath}/${mplayercodecsfile}" } post-extract { system "unzip -q -d ${worksrcpath} ${distpath}/${mplayercodecsfile}" } configure.args-append --codecsdir=${prefix}/share/${name}/codecs post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/${name}/codecs system "cd ${destroot}${prefix}/share/${name}/codecs && \ pax -r -z -f \"${worksrcpath}/${mplayercodecs}/Contents/Archive.pax.gz\"" } } ##### Outputs variant sdl \ description {Enable SDL video output} { depends_lib-append port:libsdl configure.args-delete --disable-sdl } variant aa \ description {Enable animated ASCII art video output} { depends_lib-append port:aalib configure.args-delete --disable-aa } variant caca \ description {Enable animated ASCII art video output} { depends_lib-append port:libcaca configure.args-delete --disable-caca } variant x11 description {Enable x11 support} { depends_lib-append \ port:xorg-libXinerama \ port:xorg-libXv \ port:xorg-libXxf86vm configure.args-delete --disable-x11 configure.args-append --enable-x11 --enable-xv --enable-xinerama --enable-xshape } variant esd \ description {Enable EsounD audio output} { depends_lib-append port:esound configure.args-delete --disable-esd } platform macosx { configure.args-append --enable-macosx-bundle \ --enable-qtx } variant glx requires x11 description {Enable glx output support. Due to a bug in mplayer, this disables corevideo support} { depends_lib-append port:mesa configure.args-delete --disable-gl --enable-macosx --enable-macosx-finder-support --enable-macosx-bundle configure.args-append --enable-gl --disable-corevideo } variant debug description {Compile with debugging symbols} { configure.args-append --enable-debug=gdb3 --disable-altivec #post-patch { # reinplace "s:-O2:-O0:g" ${worksrcpath}/configure #} } platform darwin { build.env LD=cc } platform darwin 8 { # Need to force use of c++ for linking when Xcode 2.2 is used since some # bits of libstdc++ are needed during linking build.env LD=c++ }