[95682] trunk/dports/multimedia/MPlayer/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Wed Jul 18 21:37:29 PDT 2012
Revision: 95682
https://trac.macports.org/changeset/95682
Author: jeremyhu at macports.org
Date: 2012-07-18 21:37:28 -0700 (Wed, 18 Jul 2012)
Log Message:
-----------
MPlayer: Bump to 1.1, merging in changes from the mplayer-devel Portfile
Modified Paths:
--------------
trunk/dports/multimedia/MPlayer/Portfile
Modified: trunk/dports/multimedia/MPlayer/Portfile
===================================================================
--- trunk/dports/multimedia/MPlayer/Portfile 2012-07-19 04:32:02 UTC (rev 95681)
+++ trunk/dports/multimedia/MPlayer/Portfile 2012-07-19 04:37:28 UTC (rev 95682)
@@ -5,77 +5,49 @@
PortSystem 1.0
name MPlayer
-version 1.0rc4
-revision 4
+version 1.1
categories multimedia
license GPL-2+
-maintainers nomaintainer
-description The Unix movie player
-set notestxt \
- "The MPlayer developers do not believe in making regular releases. \
- You are likely better off using the mplayer-devel port."
-long_description \
- MPlayer can play most standard video formats out of the box and almost \
- all others with the help of external codecs. MPlayer currently works \
- best from the command line, but visual feedback for many functions is \
- available from its onscreen status display (OSD), which is also used for \
- displaying subtitles. MPlayer also has a GUI with skin support and \
- several unofficial alternative graphical frontends are available. \
- \nNOTE: ${notestxt}
-notes ${notestxt}
+maintainers jeremyhu openmaintainer
+platforms darwin
-platforms darwin
+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/
-homepage http://www.mplayerhq.hu/
-master_sites ftp://ftp1.mplayerhq.hu/MPlayer/releases/ \
- http://www2.mplayerhq.hu/MPlayer/releases/ \
- ftp://ftp2.mplayerhq.hu/MPlayer/releases/ \
- ftp://ftp5.mplayerhq.hu/MPlayer/releases/ \
- ftp://ftp.fu-berlin.de/unix/X11/multimedia/MPlayer/releases/ \
- http://www1.mplayerhq.hu/MPlayer/releases/ \
- http://www.people.virginia.edu/~drf8f/MPlayer/releases/ \
- http://www1.mplayerhq.hu/MPlayer/releases/codecs/:codecs \
- http://www2.mplayerhq.hu/MPlayer/releases/codecs/:codecs
-patch_sites http://www.mplayerhq.hu/MPlayer/patches/
-patchfiles configure.x11.patch
-use_bzip2 yes
-checksums ${distname}${extract.suffix} \
- sha1 36dfaeda726896b6831d66b0fe179623e0385fbe \
- rmd160 f112c53e43143d6f02850ee3d8326e25e7396cff \
-livecheck.type regex
-#livecheck.url http://www1.mplayerhq.hu/MPlayer/releases/
-livecheck.url http://www1.mplayerhq.hu/design7/dload.html
-livecheck.regex MPlayer-(1.0rc\[0-9\]+)\.tar\.bz2
+livecheck.type none
+depends_build port:pkgconfig port:yasm
+depends_lib \
+ port:jpeg port:openjpeg port:lame port:libiconv port:libmad \
+ port:libogg port:libpng port:libtheora port:libvorbis \
+ port:lzo2 port:ncurses port:zlib port:bzip2 port:liboil
-depends_lib port:jpeg port:lame port:libiconv port:libmad \
- port:libogg port:libpng port:libtheora port:libvorbis \
- port:lzo2 port:ncurses port:zlib port:bzip2
-depends_build port:pkgconfig port:yasm
+master_sites http://www.mplayerhq.hu/MPlayer/releases/ \
+ ftp://ftp.mplayerhq.hu/MPlayer/releases/
+use_xz yes
-# MPlayer's ./configure REALLY does not want you to use ENV for this
+checksums sha1 913a4bbeab7cbb515c2f43ad39bc83071b2efd75 \
+ rmd160 3722aac0847c4e2cd1e704c6ec610784a6b7a477 \
+ sha256 76cb47eadb52b420ca028276ebd8112114ad0ab3b726af60f07fb2f39dae6c9c
+
+# Do not use the following environment variables, otherwise the build phase
+# will fail.
configure.cflags {}
+configure.cppflags {}
configure.cxxflags {}
-configure.cppflags {}
configure.ldflags {}
-configure.cc_archflags {}
+configure.cc_archflags {}
configure.cxx_archflags {}
-configure.objc_archflags {}
-# And the assembler has issues with -pipe
+
+# Do not use pipes, otherwise the build phase will fail.
configure.pipe no
-# configure is not autoconf
-universal_variant no
-
-if {${configure.compiler} == "llvm-gcc-4.2"} {
- configure.compiler gcc-4.2
-} elseif {${configure.compiler} == "clang"} {
- depends_build-append port:apple-gcc42
- configure.compiler apple-gcc-4.2
- # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
- configure.cxx ${prefix}/bin/g++-apple-4.2
-}
-
configure.args \
--extra-cflags="-I${prefix}/include/lzo -I${prefix}/include" \
--extra-ldflags="-L${prefix}/lib -L${prefix}/lib/samba3" \
@@ -83,16 +55,15 @@
--confdir=${prefix}/etc/${name} \
--mandir=${prefix}/share/man \
--enable-png --enable-jpeg --enable-liblzo \
- --enable-theora --enable-libvorbis --enable-mad \
- --enable-largefiles
+ --enable-theora --enable-libvorbis --enable-mad
# MPlayer autodetects many support libs. To prevent undeclared
# dependencies, explicitly disable everything optional first.
# This list should be expanded each time the port is updated to a
# new version, disabling any newly added options.
configure.args-append \
- --disable-smb --disable-live --disable-dvdnav \
- --disable-dvdread --disable-cdparanoia --disable-freetype \
+ --disable-smb --disable-live \
+ --disable-cdparanoia --disable-freetype \
--disable-fontconfig --disable-fribidi \
--disable-enca --disable-libcdio --disable-xvid \
--disable-x264 --disable-speex \
@@ -101,9 +72,11 @@
--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 --disable-liba52 \
- --disable-gif --disable-libopencore_amrnb --disable-libopencore_amrwb
+ --disable-libschroedinger-lavc --disable-liba52 \
+ --disable-gif
+patchfiles configure.x11.patch
+
post-destroot {
xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
eval file copy [glob ${worksrcpath}/DOCS/*] \
@@ -120,34 +93,32 @@
xinstall -m 0755 ${worksrcpath}/TOOLS/midentify.sh ${destroot}${prefix}/bin/midentify
}
+universal_variant no
+
# When adding back in extra features it usually works better to
# just list the correct depends_lib and then let the auto-detect
# code find the library versus using an explicit --enable-feature.
# The later often ends up failing to find the headers or libs or both
-##### Mplayer features
-
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
-# configure doesn't fully build up necessary flags when --enable-fontconfig
-# is used, so use autodetect instead
+# 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-freetype --enable-menu
+ configure.args-append --enable-menu
}
variant fribidi requires osd \
description {Enable FriBidi Unicode support} {
depends_lib-append port:fribidi
configure.args-delete --disable-fribidi
- #configure.args-append --enable-fribidi
}
variant noappleremote \
@@ -161,18 +132,23 @@
configure.args-delete --disable-lirc
}
-##### Inputs
+variant live \
+ description {Enable live555 support} {
+ depends_lib-append port:live555
+ configure.args-delete --disable-live
+}
+#####
+
variant nodvd \
description {Disable DVD and DeCSS support} {
configure.args-append --disable-dvdread-internal --disable-libdvdcss-internal
}
-variant smb \
- description {Enable smb:// network support} {
- depends_lib-append port:samba3
- configure.args-delete --disable-smb
- configure.args-append --enable-smb
+variant smb description {Enable Samba support} {
+ depends_lib-append port:samba3
+ configure.args-append --enable-smb
+ configure.args-delete --disable-smb
}
##### External codecs
@@ -199,6 +175,7 @@
variant twolame requires mencoder_extras \
description {deprecated: use +mencoder_extras instead} {}
+
variant speex \
description {Enable Speex playback} {
depends_lib-append path:lib/libspeex.dylib:speex
@@ -211,12 +188,25 @@
configure.args-delete --disable-libdts
}
-variant live \
- description {Enable live555 streaming media input} {
- depends_lib-append port:live555
- configure.args-delete --disable-live
+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
+}
+
+variant a52 \
+ description {Enable AC-3 codec support} {
+ depends_lib-append port:a52dec
+ configure.args-delete --disable-liba52
+}
+
##### Outputs
variant sdl \
@@ -239,12 +229,12 @@
variant x11 {
depends_lib-append \
- port:gtk2 \
+ 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
+ configure.args-append --enable-x11 --enable-xv --enable-xinerama --enable-xshape
}
variant esd \
@@ -253,7 +243,6 @@
configure.args-delete --disable-esd
}
-
platform macosx {
if { ${configure.build_arch} == "x86_64" } {
configure.args-append --disable-qtx
@@ -262,26 +251,53 @@
}
}
-variant glx requires x11 description {Enable glx output support. Due to a bug in Mplayer's build system, this disables Mac OS X-specific features} {
+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-qtx
- configure.args-append --enable-gl
+ configure.args-delete --disable-gl
+ configure.args-append --enable-gl --disable-corevideo
}
+variant debug description {Compile with debugging symbols} {
+ configure.args-append --enable-debug=gdb3 --disable-altivec
+}
+
platform darwin {
- if { ${configure.build_arch} == "x86_64" } {
- configure.args-append --target=${configure.build_arch}-Darwin
+ # gcc-4.0 and older gcc-4.2 fail to build cpudetect.c properly
+ if {(${configure.compiler} == "gcc-4.0" || ${configure.compiler} == "gcc-4.2") && [vercmp ${xcodeversion} 3.2] < 0} {
+ depends_build-append port:apple-gcc42 port:ld64
+ depends_skip_archcheck-append apple-gcc42 ld64
+
+ configure.compiler apple-gcc-4.2
}
- build.env LD=${configure.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=${configure.cxx}
+ depends_build-append port:gmake
+ depends_skip_archcheck-append gmake
+
+ build.cmd ${prefix}/bin/gmake
+ destroot.cmd ${prefix}/bin/gmake
}
platform darwin 9 {
configure.args-delete --extra-cflags="-I${prefix}/include/lzo -I${prefix}/include"
configure.args-append --extra-cflags="-fomit-frame-pointer -I${prefix}/include/lzo -I${prefix}/include"
}
+
+if {${configure.compiler} == "llvm-gcc-4.2"} {
+ # llvm-gcc-4.2 fails to build vf_fspp.c properly with -O2 and above
+ patchfiles-append llvm-gcc-workaround.patch
+
+ post-patch {
+ # link time optimization fails to find references for ff_mlp_firorder*
+ # For some reason -O4 -fno-lto doesn't work as well, so just use -O3
+ reinplace "s:-O4:-O3:" ${worksrcpath}/configure
+ }
+}
+
+platform darwin {
+ if { ${configure.build_arch} == "x86_64" } {
+ configure.args-append --target=${configure.build_arch}-Darwin
+ }
+ build.env LD=${configure.cc}
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120718/3e93c2b4/attachment.html>
More information about the macports-changes
mailing list