diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2013-02-01 11:42:27 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2013-02-01 11:42:27 +0000 |
commit | 2a6591d70968e29b64865296b2768537a06d97a6 (patch) | |
tree | 4c3861137b644ffec929461400e12e92e0e2768e /media-video/mplayer2 | |
parent | Version bump (diff) | |
download | historical-2a6591d70968e29b64865296b2768537a06d97a6.tar.gz historical-2a6591d70968e29b64865296b2768537a06d97a6.tar.bz2 historical-2a6591d70968e29b64865296b2768537a06d97a6.zip |
Add new snapshot, update live ebuild, thanks to Nikoli
Package-Manager: portage-2.1.11.40/cvs/Linux x86_64
Manifest-Sign-Key: 0xF8DBDADE
Diffstat (limited to 'media-video/mplayer2')
-rw-r--r-- | media-video/mplayer2/ChangeLog | 8 | ||||
-rw-r--r-- | media-video/mplayer2/Manifest | 20 | ||||
-rw-r--r-- | media-video/mplayer2/mplayer2-2.0_p20130126.ebuild | 474 | ||||
-rw-r--r-- | media-video/mplayer2/mplayer2-9999.ebuild | 14 |
4 files changed, 505 insertions, 11 deletions
diff --git a/media-video/mplayer2/ChangeLog b/media-video/mplayer2/ChangeLog index 74ca20980d28..fe81a82233a5 100644 --- a/media-video/mplayer2/ChangeLog +++ b/media-video/mplayer2/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-video/mplayer2 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v 1.88 2013/01/30 19:02:31 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v 1.89 2013/02/01 11:42:21 maksbotan Exp $ + +*mplayer2-2.0_p20130126 (01 Feb 2013) + + 01 Feb 2013; Maxim Koltsov <maksbotan@gentoo.org> + +mplayer2-2.0_p20130126.ebuild, mplayer2-9999.ebuild: + Add new snapshot, update live ebuild, thanks to Nikoli 30 Jan 2013; Agostino Sarubbo <ago@gentoo.org> mplayer2-2.0_p20120828.ebuild: Stable for x86, wrt bug #447932 diff --git a/media-video/mplayer2/Manifest b/media-video/mplayer2/Manifest index d800f4672a5e..315a407352e2 100644 --- a/media-video/mplayer2/Manifest +++ b/media-video/mplayer2/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX generate-tarball.sh 964 SHA256 49ca2e1174e26f73f2dfadb42426f304e30fc2d7f049e577699ecfdf775b9599 SHA512 7141872caebf0e76e92f400f97f0bb540aed071decfb7668cf652d9a6f304cab968355b6d12343001b797d9cbfb113c3a5a272418427391ec7c85404dd618f90 WHIRLPOOL 1adef66fb0889c55f7a095eb1c543935c0a3b4e92ec4d3f086cbfbf9348dac58acec61aa57f0d222376da80cabb0925f3a59215dabf3c93a0baac1e89967d850 AUX mplayer2-2.0_p20120828-ffmpeg.patch 765 SHA256 2387daac56d711d4a7d32fc15f1b20d787342e4eb21b7cdab44aa04f2b01bc43 SHA512 e5ffa7ba9cba0c381ae37903659aaa050ecde489d7fc011e9375c41800afda08ee6073126a1e1099c4a83deb890b4ebb7ca0af43c3a9664aad8f7546757be140 WHIRLPOOL 1eb7aea177a423dd999e6c4797405bbb61c6f474ec086e9a7b91310fdc51292177fecfbb9191ba6af8326f49791607eb2d09b4201c900d3df3cbeee30a9f29d8 AUX mplayer2-2.0_p20121128-cdio-api-fixes.patch 1881 SHA256 f11347cc927fad90cbfb97d7a4173ca1d00b85d25177e0342709db05104b99a9 SHA512 5e46a111661934db976dba7c2560cb8cecbb07ef194f363048a3904a42248494ea32707f050e457314f0d4bfb9afce71e172dd493a0a74d45fc683f5651f30d3 WHIRLPOOL 2081a205fd0d9257cc5a96504fe4142a955da44acded9020b116898004456011dbe54079b69a310fc2e02f0093f381db4cfef426098210d345a40837229266c2 @@ -9,10 +12,23 @@ DIST mplayer2-2.0_p20120309.tar.xz 3328620 SHA256 8a46e0be27dd479c91bde64a35725c DIST mplayer2-2.0_p20120828.tar.xz 1739048 SHA256 7a53079c52c73ce00df5c29e1e2c19f944365213c70107b4bf992cf32ca85093 SHA512 d8eebf9deb1f07f7178037c9e980bbd942f0c68937fb6f37aad9b4e25f6a4d2cc5b6f055537c7dca12adf198e6f2531197f2869fbd0ba301d5fc7f5294f82b97 WHIRLPOOL ca9055a631fc7d19329db3c45b297f497c44c5e82f621af5cc76e32b4fac8585690f8252156dd2fcd44bd150ad18778aaf2c2b5796ca53f32e4de81d85385135 DIST mplayer2-2.0_p20121108.tar.xz 1549508 SHA256 7d0f18998b6b059e1e06d66d030e5c4979aff158f050d7354c3056e6aaf29c0d SHA512 b8e507aa7e928267f648f228c1fafc236c0af39836733c0029583250784462a87cd713ba86312329c8c4c6cb175dcae24e2064498ddc6d51b162da51c43a8646 WHIRLPOOL bc0fd93ee2a56095bdad81aef9997e48cb177569a47c5abd5bace58af2a8eb114c352abadea2306437b5650d85f549109ad2173491b833d211e5dc816c7f7dd0 DIST mplayer2-2.0_p20121128.tar.xz 1932656 SHA256 17ec9fadb59c74dc4852df2d1c49d3d551a4d5b38eb50fc6c7c24b0e24d0df57 SHA512 8a7cedbdbfccc8f4777de8de3f1a6388495157b596bbf88982382278d073b7fcf80c8f27319e222d89323162f3522ac90e3a150f2922350b6138ca0a4ba7bfc8 WHIRLPOOL 238bab7b78f0852d283d57b048bcb737aec9ad215d5e3e4cee244ee2bfea5315c8b93925306ea8a7c62c02fe10689e9d6a5fe1d4f52e3e4f518e59f120a0ea83 +DIST mplayer2-2.0_p20130126.tar.xz 1914780 SHA256 ed68090e1ed2698132065ab4567e2920a6fb9f2f0868efc172f612d6848919f5 SHA512 b54780a0a45619ababf874fe40797a6c73c4adea26469178bbd5bf3396cd1977631622a8e150c02b650cf4a415d1e5d80943fda1e50935d921328022187b65dc WHIRLPOOL b1876eece2223d1b1281aeb1043c1f436c518363a2e720a2eb6be92853cac3ed0dce16b3c4300acffe4746925831ccfddcc24553d5fdcac4cce385701d5625bf EBUILD mplayer2-2.0_p20120309.ebuild 16458 SHA256 31af6a795910ea876cb290c79c8c98d0ef808264d0dd45b862009d95a9ec6fcf SHA512 9fdb07a2788f7f351c98204247ec279634f0ba32f596aa7df49517e98098936b006e638f3a5fe427571d68d246eaf032831c66607d478f75dba5caf0acc5029c WHIRLPOOL d9cdf4f8e704b77a96b80756331995f8868fde1df1168fd3b03c6ee69c425f99539b74953ca9d98837c25d77dff462f81ea94d143a40b45e14b6fffaf703066d EBUILD mplayer2-2.0_p20120828.ebuild 14692 SHA256 832b32c46bb2a21e765e43ec8143f6adf45c2f8de349f4f466ead65dc1379357 SHA512 1b2d109c22c90ba2c96e69f43f62f8a9b5afafefc9a570f015638fa3c4df76e833a262b95411a6ddff9640e6aaf11f22d9d0b6e83ca72e401fec64ad708b6430 WHIRLPOOL dbb55c8aadfe243479caf0c6674b47f9a8477d99b5be93a85a07d9ea25ec806d03bfd5ec4938a065323eda57fc0b96ca6bf7473c651ffd2fca92c800effdecdb EBUILD mplayer2-2.0_p20121108.ebuild 12625 SHA256 0a6e2a4e96b6e3a8de7c1044d7d1d8dde489ab0479c0ac87ed2a25ca13285db5 SHA512 ff4c7417e821fc139e7cc59754a77bf9af51a0d83511b6c89ada9a51502e35f197e8d8f2ccbe928dfda6cf14438ad49ca8acfd291bdfd75456fbb0c1d003f649 WHIRLPOOL 70b7d0772a075fc549b4497f81531ff14f4718a88233ec499535115cf0e40ee9237b337a3bdce7d215016417c76a16e2024b1c6f9853c10db96c07a157a2b848 EBUILD mplayer2-2.0_p20121128.ebuild 12657 SHA256 14f045c6c4f13642b8e9cbd6ccf92173d93bc63f37b91542e07584f93dbb8cd9 SHA512 120a67c99214ab7164651b20556a869b08e6d4c02827ac7f270b04f96e91eb6ada6d3c31cd1e173dd2c11d5a8ef3d3784f8d6af28e28bbd29d9249d1b1b1642f WHIRLPOOL 88c3f05facf5bce1d16a57eb53af24c3d757968d20dd13abf15ed0e67c5cdb4cd4a8c49f9bb4cc1db7ac084eca80b61ff3056e2c061e346941f66a6671553af1 -EBUILD mplayer2-9999.ebuild 12562 SHA256 8cd477828156bb3315c093a0128573bfb58c84c327781fb0679288f9f8242e67 SHA512 634ee2083d0e9df611154c6f5eb119f97e89a248ec011b44547180d6c76bff3bf1d84739723136ffe26c5ed1212d4667c291b7c48e4723b85a9cddc2053045be WHIRLPOOL 86cffe904e008cf8d27e8f8494e83bbfb649c05dc7cc65fe3487d247d66063b952c4af42ce58e01c6af65ed414e27bdb54975806062727b0f66c34feb88bed22 -MISC ChangeLog 17323 SHA256 06d196a95ccacd6080738277a6cdeb45c4463e2ac4eb551223c8f05eae9690a8 SHA512 a53b071722fea6a4f403e2281a2f06b4afbb9190899a420d6eae6e29a21fcdaa971bd9ac89e9d202641cb5c5d2fac802e6dccd172a2446e0b2c696cfad6825ce WHIRLPOOL 7e0cb026c62da1412d0f0ababcb70fad55e2f6589749d7fd758994ce578b7e4753c810736e8d7e3d454cbc9782f374c5f817243e4ffa31b5cf67b7f8fc9e917c +EBUILD mplayer2-2.0_p20130126.ebuild 12432 SHA256 f3a8b36c63eb6d659e04a698bd2a633064733d63efc51cc652a1ce2c1aa269b5 SHA512 cfa109613f4ff67c1ebd81fde8bca518fe22522f93fdb42cbb8c694952665baba2bd83b45c22ab41b3f4f1fe3f16e30894dfcda1dfa126c4f4615304b643aaa8 WHIRLPOOL f0beff11ebc1e84345c9169a5021d6ba1d27af271df19a002e81649893d7014eba1f57d34499afab8a6f5ace254d45a13059fa3f3bbbd7938264ff97a1ebb46e +EBUILD mplayer2-9999.ebuild 12424 SHA256 482d653fa199fda24b0732a9a898467fa919c1fdc768e538711ce25998a55c90 SHA512 610bfa85107347b600d28daaa468a46e82ca0016367f4d1cf5bfa2610a25d066b77688c0c93b13afda3d3c28879ba410e742e8f79f14818c0e3465bfc12f5410 WHIRLPOOL 64e3d9d96f52e5c2e949bb286f62d516d1fda5d8c630ee58beb46b73d1d4fceaabcbfa48f8e867b2a05b848a042cab264610256bb5cc1accfa494efb5a2034c9 +MISC ChangeLog 17534 SHA256 9ad17626f4ddef096dbb5d1ec4919c8d774632cf9bbeecdaddf1eafe814b03d7 SHA512 c2f32338fc7d85c39ab1dd1b0d3071e61559d04c20bc89e3b5c7c68363d28244c73d64db424d4263a2d5b7e1208e200e4a9e2b1a85c92e11551ca69322bdd1c4 WHIRLPOOL 457f426fb34f971461306751a4a9c3d8084c9d03aa2eb1ac35820ec3352503a3152b69dc4e4e11ddba9cca2596f344ba9a726ad770a06dd150cf6653ca2d6ddc MISC metadata.xml 3432 SHA256 b484abd0233341306cbbad1b207b03178917f6850514d067bcd51fe514b71c81 SHA512 3a30acb2b1b7825dc2074370b96032bb2bba5c49891dcdf271bc96ccc3c04dab8f48c77b671029f5e48d51316eb27744151521bc414205c75074e705df691597 WHIRLPOOL d40a9c85764f5ccebc97e31c2e28bd4b4ba3c43c0d0efffc035acfa4ecb0b0706671ac4f14a364df80848fd33988fa166e762ed25215dfddb67d262267b1d3ac +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBCAAGBQJRC6opAAoJEAmJmMX429reusMH/1aiVK3CiCY4drRhIpc4i8Sa +aWz2jkWu32KVd6cKa1Eq2IvX4swR7tLcFUkDt0imve6Dv5AZylkcx/ln6X8PjdkP +C0K7cUk27xRRtBShaq/MxEPTnWhwAej6pVwYACKJFgZ/8klgaa+nMSjJZMRcnLrV +87pvprXmRuoLOM01LudHx47KSI/FoQUpeKVZBOouq3AG8EQn918I1d4UPBSgo4qB +bFN7nwHWzD+9ATY8WDaY17i3ETBnNYKRPSTnefyHeK8QnlRpmFWnkYlStym1BSm5 +Qe2+JmJm+EACGVrS7g9PdJ/5Di2tH0Rcd8F8fewNoristSxO5gFknqIzw/ljHdY= +=+aWO +-----END PGP SIGNATURE----- diff --git a/media-video/mplayer2/mplayer2-2.0_p20130126.ebuild b/media-video/mplayer2/mplayer2-2.0_p20130126.ebuild new file mode 100644 index 000000000000..6065beb93740 --- /dev/null +++ b/media-video/mplayer2/mplayer2-2.0_p20130126.ebuild @@ -0,0 +1,474 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20130126.ebuild,v 1.1 2013/02/01 11:42:21 maksbotan Exp $ + +EAPI=4 + +[[ ${PV} = *9999* ]] && VCS_ECLASS="git-2" || VCS_ECLASS="" + +inherit python toolchain-funcs eutils flag-o-matic multilib base ${VCS_ECLASS} + +NAMESUF="${PN/mplayer/}" +DESCRIPTION="Media Player for Linux" +HOMEPAGE="http://www.mplayer2.org/" + +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git" +else + SRC_URI="http://rion-overlay.googlecode.com/files/${P}.tar.xz" +fi + +LICENSE="GPL-3" +SLOT="0" +if [[ ${PV} == *9999* ]]; then + KEYWORDS="" +else + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" +fi +IUSE="+a52 +alsa aqua bindist bluray bs2b cddb +cdio cpudetection debug +directfb doc +dts +dv dvb +dvd +dvdnav +enca +faad fbcon ftp gif +iconv +ipv6 jack joystick jpeg kernel_linux ladspa lcms +libass libcaca lirc mad +md5sum mng +mp3 +network nut +opengl oss png pnm portaudio +postproc +pulseaudio pvr +quicktime quvi radio +rar +real +rtc samba sdl +speex tga ++theora +unicode v4l vcd vdpau +vorbis win32codecs +X xanim xinerama ++xscreensaver +xv xvid yuv4mpeg +" +IUSE+=" symlink" + +CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext +shm sse sse2 ssse3" +for x in ${CPU_FEATURES}; do + IUSE+=" ${x}" +done + +# bindist does not cope with win32codecs, which are nonfree +REQUIRED_USE=" + bindist? ( !win32codecs ) + cddb? ( cdio network ) + dvdnav? ( dvd ) + lcms? ( opengl ) + libass? ( iconv ) + opengl? ( || ( aqua X ) ) + radio? ( || ( dvb v4l ) ) + vdpau? ( X ) + xinerama? ( X ) + xscreensaver? ( X ) + xv? ( X ) +" + +# Rar: althrought -gpl version is nice, it cant do most functions normal rars can +RDEPEND+=" + sys-libs/ncurses + sys-libs/zlib + !bindist? ( + x86? ( + win32codecs? ( media-libs/win32codecs ) + ) + ) + X? ( + x11-libs/libXext + x11-libs/libXxf86vm + opengl? ( virtual/opengl ) + lcms? ( media-libs/lcms:2 ) + vdpau? ( x11-libs/libvdpau ) + xinerama? ( x11-libs/libXinerama ) + xscreensaver? ( x11-libs/libXScrnSaver ) + xv? ( + x11-libs/libXv + ) + ) + a52? ( media-libs/a52dec ) + alsa? ( media-libs/alsa-lib ) + bluray? ( media-libs/libbluray ) + bs2b? ( media-libs/libbs2b ) + cdio? ( dev-libs/libcdio ) + directfb? ( dev-libs/DirectFB ) + dts? ( media-libs/libdca ) + dv? ( media-libs/libdv ) + dvb? ( virtual/linuxtv-dvb-headers ) + dvd? ( + >=media-libs/libdvdread-4.1.3 + dvdnav? ( >=media-libs/libdvdnav-4.1.3 ) + ) + enca? ( app-i18n/enca ) + faad? ( media-libs/faad2 ) + gif? ( media-libs/giflib ) + iconv? ( virtual/libiconv ) + jack? ( media-sound/jack-audio-connection-kit ) + jpeg? ( virtual/jpeg ) + ladspa? ( media-libs/ladspa-sdk ) + libass? ( >=media-libs/libass-0.9.10[enca?,fontconfig] virtual/ttf-fonts ) + libcaca? ( media-libs/libcaca ) + lirc? ( app-misc/lirc ) + mad? ( media-libs/libmad ) + mng? ( media-libs/libmng ) + mp3? ( media-sound/mpg123 ) + nut? ( >=media-libs/libnut-661 ) + png? ( media-libs/libpng ) + pnm? ( media-libs/netpbm ) + portaudio? ( >=media-libs/portaudio-19_pre20111121 ) + postproc? ( || ( media-libs/libpostproc <media-video/libav-0.8.2-r1 media-video/ffmpeg ) ) + pulseaudio? ( media-sound/pulseaudio ) + quvi? ( >=media-libs/libquvi-0.4.1 ) + rar? ( + || ( + app-arch/unrar + app-arch/rar + ) + ) + samba? ( net-fs/samba ) + sdl? ( media-libs/libsdl ) + speex? ( media-libs/speex ) + theora? ( media-libs/libtheora ) + vorbis? ( media-libs/libvorbis ) + xanim? ( media-video/xanim ) + xvid? ( media-libs/xvid ) + >=virtual/ffmpeg-0.10.2 + symlink? ( !media-video/mplayer ) +" +ASM_DEP="dev-lang/yasm" +DEPEND="${RDEPEND} + virtual/pkgconfig + >=dev-lang/python-2.7 + dev-python/docutils + sys-devel/gettext + X? ( + x11-proto/videoproto + x11-proto/xf86vidmodeproto + xinerama? ( x11-proto/xineramaproto ) + xscreensaver? ( x11-proto/scrnsaverproto ) + ) + amd64? ( ${ASM_DEP} ) + doc? ( + dev-libs/libxslt app-text/docbook-xml-dtd + app-text/docbook-xsl-stylesheets + ) + x86? ( ${ASM_DEP} ) + x86-fbsd? ( ${ASM_DEP} ) +" + +PATCHES=( + "${FILESDIR}/${PN}-py2compat.patch" +) + +pkg_setup() { + if [[ ${PV} == *9999* ]]; then + elog + elog "This is a live ebuild which installs the latest from upstream's" + elog "${VCS_ECLASS} repository, and is unsupported by Gentoo." + elog "Everything but bugs in the ebuild itself will be ignored." + elog + fi + + if use cpudetection; then + ewarn + ewarn "You've enabled the cpudetection flag. This feature is" + ewarn "included mainly for people who want to use the same" + ewarn "binary on another system with a different CPU architecture." + ewarn "MPlayer will already detect your CPU settings by default at" + ewarn "buildtime; this flag is used for runtime detection." + ewarn "You won't need this turned on if you are only building" + ewarn "mplayer for this system. Also, if your compile fails, try" + ewarn "disabling this use flag." + fi + + if use !libass; then + ewarn + ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed." + fi + + einfo "For various format support you need to enable the support on your ffmpeg package:" + einfo " media-video/libav or media-video/ffmpeg" + + # https://bugs.gentoo.org/show_bug.cgi?id=434356#c4 + python_pkg_setup + major=$(python_get_version --major) + minor=$(python_get_version --minor) + [[ ( ${major} -eq 2 && ${minor} -ge 7 ) || ${major} -ge 3 ]] \ + || die "Please eselect Python 2.7 or later" +} + +src_prepare() { + # fix path to bash executable in configure scripts + local bash_scripts="configure version.sh" + sed -i -e "1c\#!${EPREFIX}/bin/bash" \ + ${bash_scripts} || die + + if [[ -n ${NAMESUF} ]]; then + sed -e "/^EXESUF/s,= \$_exesuf$,= ${NAMESUF}\$_exesuf," \ + -i configure || die + sed -e "s/mplayer/${PN}/" \ + -i TOOLS/midentify.sh || die + fi + + base_src_prepare +} + +src_configure() { + local myconf="" + local uses i + + # mplayer ebuild uses "use foo || --disable-foo" to forcibly disable + # compilation in almost every situation. The reason for this is + # because if --enable is used, it will force the build of that option, + # regardless of whether the dependency is available or not. + + ################### + #Optional features# + ################### + # disable tremor, it needs libvorbisidec and is for FPU-less systems only + myconf+=" + --disable-tremor + $(use_enable network networking) + $(use_enable joystick) + " + uses="bluray enca ftp libass rtc vcd" + for i in ${uses}; do + use ${i} || myconf+=" --disable-${i}" + done + use ipv6 || myconf+=" --disable-inet6" + use nut || myconf+=" --disable-libnut" + use quvi || myconf+=" --disable-libquvi" + use rar || myconf+=" --disable-unrarexec" + use samba || myconf+=" --disable-smb" + if ! use lirc; then + myconf+=" + --disable-lirc + --disable-lircc + --disable-apple-ir + " + fi + + ######## + # CDDA # + ######## + use cddb || myconf+=" --disable-cddb" + use cdio || myconf+=" --disable-libcdio" + + ################################ + # DVD read, navigation support # + ################################ + # + # dvdread - accessing a DVD + # dvdnav - navigation of menus + # + # use external libdvdcss, dvdread and dvdnav + myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal" + use dvd || myconf+=" --disable-dvdread" + use dvdnav || myconf+=" --disable-dvdnav" + + ############# + # Subtitles # + ############# + # + # iconv optionally can use unicode + use iconv || myconf+=" --disable-iconv --charset=noconv" + use iconv && use unicode && myconf+=" --charset=UTF-8" + + ##################################### + # DVB / Video4Linux / Radio support # + ##################################### + myconf+=" --disable-tv-bsdbt848" + if { use dvb || use v4l || use pvr || use radio; }; then + use dvb || myconf+=" --disable-dvb" + use pvr || myconf+=" --disable-pvr" + use v4l || myconf+=" --disable-tv-v4l2" + if use radio && { use dvb || use v4l; }; then + myconf+=" + --enable-radio + --disable-radio-capture + " + else + myconf+=" + --disable-radio-v4l2 + --disable-radio-bsdbt848 + " + fi + else + myconf+=" + --disable-tv + --disable-tv-v4l2 + --disable-radio + --disable-radio-v4l2 + --disable-radio-bsdbt848 + --disable-dvb + --disable-v4l2 + --disable-pvr" + fi + + ########## + # Codecs # + ########## + myconf+=" --disable-musepack" # deprecated, libavcodec Musepack decoder is preferred + use dts || myconf+=" --disable-libdca" + use mp3 || myconf+=" --disable-mpg123" + uses="a52 bs2b dv vorbis" + for i in ${uses}; do + use ${i} || myconf+=" --disable-lib${i}" + done + uses="faad gif jpeg mad mng png pnm speex tga theora xanim xvid" + for i in ${uses}; do + use ${i} || myconf+=" --disable-${i}" + done + + ################# + # Binary codecs # + ################# + # bug 213836 + if ! use x86 || ! use win32codecs; then + use quicktime || myconf+=" --disable-qtx" + fi + + ###################### + # RealPlayer support # + ###################### + # Realplayer support shows up in four places: + # - libavcodec (internal) + # - win32codecs + # - realcodecs (win32codecs libs) + # - realcodecs (realplayer libs) + + # internal + use real || myconf+=" --disable-real" + + # Real binary codec support only available on x86, amd64 + if use real; then + use x86 && myconf+=" --codecsdir=/opt/RealPlayer/codecs" + use amd64 && myconf+=" --codecsdir=/usr/$(get_libdir)/codecs" + fi + myconf+=" $(use_enable win32codecs win32dll)" + + ################ + # Video Output # + ################ + uses="directfb md5sum sdl yuv4mpeg" + for i in ${uses}; do + use ${i} || myconf+=" --disable-${i}" + done + use libcaca || myconf+=" --disable-caca" + use postproc || myconf+=" --disable-libpostproc" + + ################ + # Audio Output # + ################ + myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only + uses="alsa jack ladspa portaudio" + for i in ${uses}; do + use ${i} || myconf+=" --disable-${i}" + done + #use openal && myconf+=" --enable-openal" # build fails + use pulseaudio || myconf+=" --disable-pulse" + if ! use radio; then + use oss || myconf+=" --disable-ossaudio" + fi + + #################### + # Advanced Options # + #################### + # Platform specific flags, hardcoded on amd64 (see below) + use cpudetection && myconf+=" --enable-runtime-cpudetection" + + for i in ${CPU_FEATURES//+/}; do + myconf+=" $(use_enable ${i})" + done + + use debug && myconf+=" --enable-debug=3" + + if use x86 && gcc-specs-pie; then + filter-flags -fPIC -fPIE + append-ldflags -nopie + fi + + ########################### + # X enabled configuration # + ########################### + use X || myconf+=" --disable-x11" + uses="vdpau xinerama xv" + for i in ${uses}; do + use ${i} || myconf+=" --disable-${i}" + done + use opengl || myconf+=" --disable-gl" + use lcms || myconf+=" --disable-lcms2" + use xscreensaver || myconf+=" --disable-xss" + + ############################ + # OSX (aqua) configuration # + ############################ + if use aqua; then + myconf+=" + --enable-macosx-finder + --enable-macosx-bundle + " + fi + + ./configure \ + --cc="$(tc-getCC)" \ + --pkg-config="$(tc-getPKG_CONFIG)" \ + --prefix="${EPREFIX}"/usr \ + --bindir="${EPREFIX}"/usr/bin \ + --libdir="${EPREFIX}"/usr/$(get_libdir) \ + --confdir="${EPREFIX}"/etc/${PN} \ + --mandir="${EPREFIX}"/usr/share/man \ + --localedir="${EPREFIX}"/usr/share/locale \ + --enable-translation \ + ${myconf} || die + + MAKEOPTS+=" V=1" +} + +src_compile() { + base_src_compile + use doc && emake -C DOCS/xml html-chunked +} + +src_install() { + local i + + emake \ + DESTDIR="${D}" \ + INSTALLSTRIP="" \ + install + + dodoc AUTHORS Copyright README etc/codecs.conf + + docinto tech/ + dodoc DOCS/tech/{*.txt,mpsub.sub,playtree} + docinto TOOLS/ + dodoc -r TOOLS + if use real; then + docinto tech/realcodecs/ + dodoc DOCS/tech/realcodecs/* + fi + + if use doc; then + docinto html/ + dohtml -r "${S}"/DOCS/HTML/* + fi + + insinto /etc/${PN} + newins "${S}/etc/example.conf" mplayer.conf + cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_ +# Config options can be section specific, global +# options should go in the default section +[default] +_EOF_ + doins "${S}/etc/input.conf" + + # set unrar path when required + if use rar; then + cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_ +unrarexec=${EPREFIX}/usr/bin/unrar +_EOF_ + fi + dosym ../../../etc/${PN}/mplayer.conf /usr/share/${PN}/mplayer.conf + + newbin "${S}/TOOLS/midentify.sh" midentify${NAMESUF} + + if [[ -n ${NAMESUF} ]]; then + mv "${ED}/usr/share/man/man1/mplayer.1" "${ED}/usr/share/man/man1/mplayer${NAMESUF}.1" || die + + if use symlink; then + dosym "${PN}" /usr/bin/mplayer + dosym "midentify${NAMESUF}" /usr/bin/midentify + fi + fi +}
\ No newline at end of file diff --git a/media-video/mplayer2/mplayer2-9999.ebuild b/media-video/mplayer2/mplayer2-9999.ebuild index 69346c6d5c20..34afe424914d 100644 --- a/media-video/mplayer2/mplayer2-9999.ebuild +++ b/media-video/mplayer2/mplayer2-9999.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-9999.ebuild,v 1.51 2012/12/26 08:51:52 pinkbyte Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-9999.ebuild,v 1.52 2013/02/01 11:42:21 maksbotan Exp $ EAPI=4 @@ -268,8 +268,6 @@ src_configure() { # DVB / Video4Linux / Radio support # ##################################### myconf+=" --disable-tv-bsdbt848" - # v4l1 is gone since linux-headers-2.6.38 - myconf+=" --disable-tv-v4l1" if { use dvb || use v4l || use pvr || use radio; }; then use dvb || myconf+=" --disable-dvb" use pvr || myconf+=" --disable-pvr" @@ -409,16 +407,16 @@ src_configure() { --bindir="${EPREFIX}"/usr/bin \ --libdir="${EPREFIX}"/usr/$(get_libdir) \ --confdir="${EPREFIX}"/etc/${PN} \ - --datadir="${EPREFIX}"/usr/share/${PN} \ --mandir="${EPREFIX}"/usr/share/man \ --localedir="${EPREFIX}"/usr/share/locale \ --enable-translation \ ${myconf} || die + + MAKEOPTS+=" V=1" } src_compile() { - # enable verbose build, bug #448196 - base_src_compile V=1 + base_src_compile use doc && emake -C DOCS/xml html-chunked } @@ -473,4 +471,4 @@ _EOF_ dosym "midentify${NAMESUF}" /usr/bin/midentify fi fi -} +}
\ No newline at end of file |