summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2013-07-09 16:06:40 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2013-07-09 16:06:40 +0000
commit569c22af9556562b1e807496630f87f5ae474a71 (patch)
tree4acbdc3a77ac334ec5ddc6d0268b5158ffea4dca /media-video/mplayer2
parentFew fixes from nikoli. Put ffmpeg deps on top. Use subslot on libav. (diff)
downloadhistorical-569c22af9556562b1e807496630f87f5ae474a71.tar.gz
historical-569c22af9556562b1e807496630f87f5ae474a71.tar.bz2
historical-569c22af9556562b1e807496630f87f5ae474a71.zip
Touchups and love from Nikoli. Remove overshadowed ebuilds.
Package-Manager: portage-2.2.0_alpha187/cvs/Linux x86_64 Manifest-Sign-Key: 0x8EEE3BE8
Diffstat (limited to 'media-video/mplayer2')
-rw-r--r--media-video/mplayer2/ChangeLog9
-rw-r--r--media-video/mplayer2/Manifest39
-rw-r--r--media-video/mplayer2/mplayer2-2.0_p20120828.ebuild510
-rw-r--r--media-video/mplayer2/mplayer2-2.0_p20130428-r1.ebuild (renamed from media-video/mplayer2/mplayer2-2.0_p20130428.ebuild)207
-rw-r--r--media-video/mplayer2/mplayer2-9999.ebuild207
5 files changed, 169 insertions, 803 deletions
diff --git a/media-video/mplayer2/ChangeLog b/media-video/mplayer2/ChangeLog
index 0d4f9e59b555..77f7f74d8a9e 100644
--- a/media-video/mplayer2/ChangeLog
+++ b/media-video/mplayer2/ChangeLog
@@ -1,6 +1,13 @@
# 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.107 2013/06/29 19:19:20 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v 1.108 2013/07/09 16:06:35 scarabeus Exp $
+
+*mplayer2-2.0_p20130428-r1 (09 Jul 2013)
+
+ 09 Jul 2013; Tomáš Chvátal <scarabeus@gentoo.org>
+ +mplayer2-2.0_p20130428-r1.ebuild, -mplayer2-2.0_p20120828.ebuild,
+ -mplayer2-2.0_p20130428.ebuild, mplayer2-9999.ebuild:
+ Touchups and love from Nikoli. Remove overshadowed ebuilds.
29 Jun 2013; Agostino Sarubbo <ago@gentoo.org> mplayer2-2.0_p20130126.ebuild:
Stable for ppc64, wrt bug #473220
diff --git a/media-video/mplayer2/Manifest b/media-video/mplayer2/Manifest
index 0f53042fec7a..0ac59cfef1bd 100644
--- a/media-video/mplayer2/Manifest
+++ b/media-video/mplayer2/Manifest
@@ -1,35 +1,30 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+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-py2compat.patch 2179 SHA256 36e26a89ec03de0e349443ca3ce07c58e408e032200f49c3ce849691589a1cc7 SHA512 a90417c923c36c78d4c8053de89b26f69cd29a01ee37028360c8c564b903ee00ac0d7e98bcaf25220998951f25987cd89ede47b54518736c14abd1e7153e6568 WHIRLPOOL 987c63235be05fd3dbe89e4e291649c6f2176771e07c8515c08725a4e3d54118136b968531565a65c1e83bd754cc51e9bef5493ec2e653dfa4b3278c8bed6cce
-DIST font-arial-cp1250.tar.bz2 249705 SHA256 423a07e780bb130cd8e4730715545c5d919c248dda595aab7a0a01de3c83fd12 SHA512 4f77ff5ceb8ec6e5d9f8f34d8950a6a6276d1fd5a947772fcbdb6554988b1ea665c12b82f45164f91fb7bd08000cb4afc26fa35beb4c760464160e22b9b8c340 WHIRLPOOL d635f54be65b0ca1047d943b6f6da433cda9fce6ed74fcab993501cf7f6b443eb711e182cd7fff09e553d251b5fd1c60196aa22e8370cba99fa175ed5ecdb47f
-DIST font-arial-iso-8859-1.tar.bz2 234242 SHA256 9730f481764f367c9089d0166fb6ccf9148808ffbbfeca635cf0e6db75765d29 SHA512 a1d03b6f09c48f48b7733f3bc0402ceab239a9abf88b860d852ea9fe69b4da690208a79d6f29d30204f5b37becf10672e8e8c0bfef201846d80ec54df617d029 WHIRLPOOL 8050362b125d3ca98214526cee2fa685e31487d13a6483c765bfc844bdc5e07beeba2c1ba313458096d43a63edd6c5e80b8b388c2792fc0ec7421e4072d8ca25
-DIST font-arial-iso-8859-2.tar.bz2 222208 SHA256 71debfc960007c2f6242dfc91e8b1c005b30a99e129aeb00ab8c03f4371b41c1 SHA512 5671e628303fd816f64a51ad10e2f4dd9c3dc1b34c379a2ecf489b83931db7af668aaa4e00e96a00cacd63ed98daeae6b6a4d5925edfb06fc98d3a923f70257d WHIRLPOOL 08178087b4ea1dfb2250f4673785e31dd876b06af51c51b2bddc172b23e6e33cbc1b2c6b710a317e42dc05486974b26ed0ad3ca50a185567aa77d49bd1e72aee
-DIST mplayer2-2.0_p20120828.tar.xz 1739048 SHA256 7a53079c52c73ce00df5c29e1e2c19f944365213c70107b4bf992cf32ca85093 SHA512 d8eebf9deb1f07f7178037c9e980bbd942f0c68937fb6f37aad9b4e25f6a4d2cc5b6f055537c7dca12adf198e6f2531197f2869fbd0ba301d5fc7f5294f82b97 WHIRLPOOL ca9055a631fc7d19329db3c45b297f497c44c5e82f621af5cc76e32b4fac8585690f8252156dd2fcd44bd150ad18778aaf2c2b5796ca53f32e4de81d85385135
DIST mplayer2-2.0_p20130126.tar.xz 1914780 SHA256 ed68090e1ed2698132065ab4567e2920a6fb9f2f0868efc172f612d6848919f5 SHA512 b54780a0a45619ababf874fe40797a6c73c4adea26469178bbd5bf3396cd1977631622a8e150c02b650cf4a415d1e5d80943fda1e50935d921328022187b65dc WHIRLPOOL b1876eece2223d1b1281aeb1043c1f436c518363a2e720a2eb6be92853cac3ed0dce16b3c4300acffe4746925831ccfddcc24553d5fdcac4cce385701d5625bf
DIST mplayer2-2.0_p20130428.tar.xz 1911464 SHA256 41e54e6c86761196e111250fd6db79161bfd08f2cccf7d624e9b25b038fdf6c0 SHA512 da0101736b76535d38b1063c3ec7054003c8013f24df949bac26d51deebb41fcb6116af35d3b49bd6d9c1cc76842ab58c8e049a42e70dc5694058e3e6ed44bd8 WHIRLPOOL f97620ec26483e498d21b75fb533d09e41542ca18bb6a5a535c40c33fad34f745966f10a001026766610b6e40754dcecab3dc6292c00532437d2a92cb8d21079
-EBUILD mplayer2-2.0_p20120828.ebuild 13835 SHA256 6e80695eb663452b953e84e8144fe7f32a40960d6603a46997706910bac3cff2 SHA512 6725ee30eb2366094ea9dfcc3f1bc67c11858fe00f1661312352b5f4fabecf288d47d43f2273b48ee49df6f6ed0d55eb8d6728ec162176488f08c12334b3ccab WHIRLPOOL 89882865c2eb10b9dc43a495fc94319b5fa1e77b03cc18e0bc84637c83db148365b04bafee44a3c61bbf518e402761817d24e606bab7bfe76215a28922a8deb5
EBUILD mplayer2-2.0_p20130126.ebuild 11611 SHA256 0029c4c7a6ea3cb86dcd3b20b67e3a58b478839a8da06ab78691e2fe94007c4c SHA512 64fd955a770ad3097fe61fe0af40180b5ed65d6f4225958e3c26a4e357db750b0d50a0867284d50db9a006bdc07c86442df6e893265c3525b4b56ac787e20f78 WHIRLPOOL 9fb738b004f60bf55f51b55d580f8209b1c50ed0a76416345223ee214d0ff78094af1f1fb04fac800a725271a1305c7579a0f0cc99ec217c279b99e8ff2f12aa
-EBUILD mplayer2-2.0_p20130428.ebuild 11378 SHA256 9972557c694f2f0b620f34e0ecaf687ada3ed748ad415557f2655000a16882e2 SHA512 d2b35808968bd981721f80f28c184279d7fdd3725d2870ad2324d9c870153c3f01ca6cfe3e74be9be39869791177387a8ac5dee3920765ef5d5f37def33890a8 WHIRLPOOL 109ed00ad23613cb1c61fdcc7d1e5a9b7a076736001a9c4dcd173336d19de6ee787feead47b7aa755d89903935249775b31218b1146752185aee4a51b75cabe1
-EBUILD mplayer2-9999.ebuild 11370 SHA256 c09281390c9294df75525d8415974eb5b175278d4f2bbf0efa26af46410d63a0 SHA512 848a29ee8e365137c54d57340a77737ffdf1d947c28ae9f5c8187af5c11646e4be7244d58b12104c02f5bea186602f558f7270f84a3d94d6b80a3c1f7f1be7e6 WHIRLPOOL a8573ce914fec93a8a209ca3d3b6565942434ca7e8e1f4c8ecf24577e4ff85d3d8e7d562cd7b5e12f3bc99b0bc74aabe569137ec07d434e666ee802fd7c4d994
-MISC ChangeLog 20193 SHA256 fd6a9485531b3e42f47a71eae7fda59cef5a38d30e3c10cfb226a892e2825740 SHA512 44a82c7a293cb6b39d547babe42e814bfdfb7b11e906948331e040166584bc8487e20c9db4f8e6a63746e7cc1bb99c5a6a3fd4318460838bab48df874a21a998 WHIRLPOOL 2bbc58cce589db6dc4bf8d81ac9a96b7562b1dfa27581b4d1dabfbcb982b403778a10996a67af7ef47220a291009158885b2188032accd819bdf9b5d8c7dcbaf
+EBUILD mplayer2-2.0_p20130428-r1.ebuild 10387 SHA256 177583c840f4d176ad2f909bc59b57bac3fdb1f6b715c63e5efc6c1fbef10af8 SHA512 4b65b05d829bf1eea486504a99a2d2c1b8ef736ecba37efc2e2f20125fc679919061a6baa4064b81f532319031be4d7e2f127c8662592480c370216ae455a7a5 WHIRLPOOL 80dd544c3e67105892b347c248e4b765f21d29fb1aeb63870ffbedec7dba069d0a49859c95c3d475ec3f890ea7d5a3cdab7ca140c8ff5e0479426f0d12fa3290
+EBUILD mplayer2-9999.ebuild 10376 SHA256 03ee536b4c84f3ed9ddcec08c34bc284fa08f552f73eb6b134c6d9339e98a8fb SHA512 1646d4df77de1d3d9b93a8c0d9a49ab0ba1c55969ea196e7e70144c1f440b2b7017f0ff32a589922c3f7d6ea04d2f059f3fefa217df65bf685ea5e6768faed4a WHIRLPOOL 2663a12c242bdbebdbf604bc474a7507bca565edcba78e8be1a13c0c4cd215546493f98cbcf3e667dc5bcfcd66b73d0d14f1c96ccce5684cc41e30aee0660b19
+MISC ChangeLog 20484 SHA256 5a9fd5f0a6c88ab99890afe8ecfb6c11d7fcb18d7f7068bd67354bec63ba5f93 SHA512 e6a488f8f937dd35b0ceac22b12be909534dfda3f78f7529ce38a7cbb7ff1279947b93a665d127f224057ee8264caba6329c043b3f45632bcc011795079d1833 WHIRLPOOL f476c9375caf714df32886e0ebd314fe0534a93a9a2877f6060f08b146eaa4aadcf26e2eab62742a544503160976fd7a3af93601f27ea744ed9fd8113af7e78f
MISC metadata.xml 3257 SHA256 5583ca66286a75a1734cc9b9591fd924d895328649c8b422d44db06ce87f6174 SHA512 ac85865bcb568646ae4d053bc5a759df5c06627f0fc2277938a181a3930cbb67a4fce7df5d3352f00cc9ed581fdcc85ccf6dec66c01c172ac5994386520fd6b9 WHIRLPOOL 09846d2365706baeac11d387afec6c94a3002e1918f59d2e8aa55bf6f5eded3274a204d80228d24e5bcaa6e9ea80e7df4cc5e234ddac919fd16e9115cf1c0df5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iQIcBAEBCgAGBQJRzzKFAAoJELp701BxlEWfxOQQAIlcj7coGO6vQ89kMHwVSKqb
-C1HxrIbE3SY7z+3TSwXdyFfRk19bJJPzmz+Z3ev1cOk7nb1BQ0qPwCd022Cg9wfs
-HoILOLZkjoiYiKcDJVMzqfdQeXm/Soj7unHkWj5Ed87+2lS8T31oIIhK3q/ECkiM
-fqX9OU/qStRoVNa8spvpTYuQIzo/w2o9o313X+XMYsTAZ4zSpYVOstLWHrFTbmrY
-ntiWbvlaBINGTdjeXG5tQIres0J9rV4KuUtcpohGsyherDmZBF5QIkLHGV4MAHKi
-BiwvDzIXhtcJNtHbhtju4Q91KcGNqklfjnl/PoAHkgJLhrMD5q+Am+ZErVD6BOIK
-OJd9ogT3ZOgSV3iJ259C90K3u7D9Kfbc8R6EyfvahxAfwPytcGGbSZhUHvByIAUC
-4ZKXZPY1zQ62AcAjSJ15Mi6LE/derIMsIZGEjxkbbEw5/chPNV4u4TH/Fr6cfR3j
-TL9O+tSfUcR43Vc1MnDHl+ISlLH1C9G6vk+rCo6lBMeNfcffSm2PsKG8ZIp9V8qk
-wtfj2de0ac/Ad2P61g6Bt3GgBVMMSYUlGXoWIRAqQ5BdGeQX7WYSbKS8lHO2vAWp
-rVJuA75f97wXmKy1IqbabJCZzOi7X+kHpsPKL3J/xAPwp7ZbGvthRbfdZV49Su1I
-kfyEyDZnzh7tpOk7j7nf
-=rCxZ
+iQIcBAEBCAAGBQJR3DULAAoJEOSiRoyO7jvohPcP+gKP2qFwKeaZAUM7AvS5/cWH
+pf3q7x+c/3zOkPzTpTf6nvnlziNcYGkV56JK4CIWuC3X38xSobzeZSs+SmJZ/j8p
+Cb88MhBTqWazb0svJ52XKGrVEEZf7T1g8PKeJ++eFykjvMd0WdoDDaajxTnO97dx
+NyQpZyM/ZaUiD0bXRX+mUsAh21WCnuRxLjim88UY2CewGwRQTNUemklseFoTvcI+
+8UazhE1I7cTaphnD951yOEpvOFvxH0mDKfIKnyFb39SfqYyr9EonH44y4ZwnuDtL
+ohZiY5lGpWJiMlFDfuMKDyydt99hse7miFSQ0BYjE20iEnXQvaKNpBMhKxr8weCN
+zDskVZ96groBlkzjqalI8LNhFgGStiEQKI1SOFiFBHliRiC1+rc5BRJdIs2t4bcy
+V7v6V0Z941GBEjnft3/e6gVCTHKWHJJs62Us6CK5XHNAXsQR6YIzhVSI6GnXT4oV
+Amppxu5YqAKuUj4PUDoKIwY3AUPf7H/Q361qdfRcJsOk3Y7CmAkWYpjsrCUooEIN
+mG5nadtE+YZD5NHhivJM6RbIWbutdYQvllpF7RO8w+uJzbjePhSMV5DNyRTczQ5j
+hGWNcGchuRxZ3aXG0AM39mvp0SrzxL1jR/5AfjvaQgLa5v7EMG3jwVzJvGYSVQvz
+8CuXGFXEt64+kL/d507d
+=tMxB
-----END PGP SIGNATURE-----
diff --git a/media-video/mplayer2/mplayer2-2.0_p20120828.ebuild b/media-video/mplayer2/mplayer2-2.0_p20120828.ebuild
deleted file mode 100644
index cdad2e8008f9..000000000000
--- a/media-video/mplayer2/mplayer2-2.0_p20120828.ebuild
+++ /dev/null
@@ -1,510 +0,0 @@
-# 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_p20120828.ebuild,v 1.18 2013/06/13 19:32:28 ulm 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
- RELEASE_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.xz"
-fi
-SRC_URI="${RELEASE_URI}
- !truetype? (
- mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
- mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
- mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2
- )
-"
-
-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 aalib +alsa aqua bidi bl bluray bs2b cddb +cdio
- cpudetection debug directfb doc +dts +dv dvb +dvd +dvdnav dxr3 +enca +faad
- fbcon ftp gif ggi +iconv ipv6 jack joystick jpeg kernel_linux ladspa
- +libass libcaca lirc mad md5sum mng +mp3 nas +network nut +opengl oss png pnm
- portaudio postproc pulseaudio pvr quvi radio +rar +rtc samba
- sdl +speex tga +theora +truetype +unicode v4l vdpau +vorbis +X
- xanim xinerama +xscreensaver +xv xvid"
-IUSE+=" symlink"
-
-CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext +shm sse sse2 ssse3"
-for x in ${CPU_FEATURES}; do
- IUSE+=" ${x}"
-done
-
-VIDEO_CARDS="s3virge mga tdfx"
-for x in ${VIDEO_CARDS}; do
- IUSE+=" video_cards_${x}"
-done
-
-REQUIRED_USE="
- cddb? ( cdio network )
- dvdnav? ( dvd )
- dxr3? ( X )
- ggi? ( X )
- libass? ( truetype )
- opengl? ( || ( X aqua ) )
- radio? ( || ( dvb v4l ) )
- truetype? ( iconv )
- vdpau? ( X )
- xinerama? ( X )
- xscreensaver? ( X )
- xv? ( X )
-"
-
-# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
-# nemesi? ( net-libs/libnemesi )
-RDEPEND+="
- sys-libs/ncurses
- sys-libs/zlib
- X? (
- x11-libs/libXext
- x11-libs/libXxf86vm
- ggi? (
- media-libs/libggi
- media-libs/libggiwmh
- )
- opengl? ( virtual/opengl )
- vdpau? ( x11-libs/libvdpau )
- xinerama? ( x11-libs/libXinerama )
- xscreensaver? ( x11-libs/libXScrnSaver )
- xv? (
- x11-libs/libXv
- )
- )
- a52? ( media-libs/a52dec )
- aalib? ( media-libs/aalib )
- alsa? ( media-libs/alsa-lib )
- bidi? ( dev-libs/fribidi )
- 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] )
- libcaca? ( media-libs/libcaca )
- lirc? ( app-misc/lirc )
- mad? ( media-libs/libmad )
- mng? ( media-libs/libmng )
- mp3? ( media-sound/mpg123 )
- nas? ( media-libs/nas )
- 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 )
- rar? (
- || (
- app-arch/unrar
- app-arch/rar
- )
- )
- samba? ( net-fs/samba )
- sdl? ( media-libs/libsdl )
- speex? ( media-libs/speex )
- theora? ( media-libs/libtheora )
- truetype? (
- media-libs/fontconfig
- >=media-libs/freetype-2.2.1:2
- virtual/ttf-fonts
- )
- 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
- sys-devel/gettext
- X? (
- x11-proto/videoproto
- x11-proto/xf86vidmodeproto
- dxr3? ( media-video/em8300-libraries )
- 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"
- "${FILESDIR}/${PN}-2.0_p20120828-ffmpeg.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
-
- 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 "\, -m 644 DOCS/man/en/mplayer,i\ mv DOCS/man/en/mplayer.1 DOCS/man/en/${PN}.1" \
- -e "\, -m 644 DOCS/man/\$(lang)/mplayer,i\ mv DOCS/man/\$(lang)/mplayer.1 DOCS/man/\$(lang)/${PN}.1" \
- -e "s/er.1/er${NAMESUF}.1/g" \
- -i Makefile || die
- sed -e "s/mplayer/${PN}/" \
- -i TOOLS/midentify.sh || die
- fi
-
- base_src_prepare
-}
-
-src_configure() {
- local myconf=""
- local uses i
-
- # set LINGUAS
- [[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}"
-
- # 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 svga since we don't want it
- # disable tremor, it needs libvorbisidec and is for FPU-less systems only
- myconf+="
- --disable-svga
- --disable-tremor
- $(use_enable network networking)
- $(use_enable joystick)
- "
- uses="bl bluray enca ftp libass rtc" # nemesi <- not working with in-tree ebuild
- myconf+=" --disable-nemesi" # nemesi automagic disable
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- use bidi || myconf+=" --disable-fribidi"
- 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 #
- #############
- # SRT/ASS/SSA (subtitles) requires freetype support
- # freetype support requires iconv
- # iconv optionally can use unicode
- use truetype || myconf+=" --disable-freetype"
- use iconv || myconf+=" --disable-iconv --charset=noconv"
- use iconv && use unicode && myconf+=" --charset=UTF-8"
-
- #####################################
- # DVB / Video4Linux / Radio support #
- #####################################
- myconf+=" --disable-tv-bsdbt848"
- # broken upstream, won't work with recent kernels
- myconf+=" --disable-ivtv"
- # 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"
- 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
- myconf+=" --disable-live" # >=live-2012 are broken
-
- #################
- # Binary codecs #
- #################
- myconf+=" --disable-qtx --disable-real --disable-win32dll"
-
- ################
- # Video Output #
- ################
- uses="directfb md5sum sdl"
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- use aalib || myconf+=" --disable-aa"
- use fbcon || myconf+=" --disable-fbdev"
- use fbcon && use video_cards_s3virge && myconf+=" --enable-s3fb"
- use libcaca || myconf+=" --disable-caca"
- use postproc || myconf+=" --disable-libpostproc"
-
- if ! use kernel_linux || ! use video_cards_mga; then
- myconf+=" --disable-mga --disable-xmga"
- fi
-
- if use video_cards_tdfx; then
- myconf+="
- $(use_enable video_cards_tdfx tdfxvid)
- $(use_enable fbcon tdfxfb)
- "
- else
- myconf+="
- --disable-3dfx
- --disable-tdfxvid
- --disable-tdfxfb
- "
- fi
-
- # sun card, disable by default, see bug #258729
- myconf+=" --disable-xvr100"
-
- ################
- # Audio Output #
- ################
- myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
- uses="alsa jack ladspa nas 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 #
- ###########################
- myconf+=" --disable-dga1 --disable-dga2 --disable-vesa"
- uses="dxr3 ggi vdpau xinerama xv"
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- use opengl || myconf+=" --disable-gl"
- 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} \
- --datadir="${EPREFIX}"/usr/share/${PN} \
- --mandir="${EPREFIX}"/usr/share/man \
- --localedir="${EPREFIX}"/usr/share/locale \
- --enable-translation \
- ${myconf} || die
-}
-
-src_compile() {
- # enable verbose build, bug #448196
- base_src_compile V=1
- use doc && emake -j1 -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 doc; then
- docinto html/
- dohtml -r "${S}"/DOCS/HTML/*
- fi
-
- if ! use truetype; then
- dodir /usr/share/${PN}/fonts
- # Do this generic, as the mplayer people like to change the structure
- # of their zips ...
- for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do
- cp -pPR "${i}" "${ED}/usr/share/${PN}/fonts"
- done
- # Fix the font symlink ...
- rm -rf "${ED}/usr/share/${PN}/font"
- dosym fonts/font-arial-14-iso-8859-1 /usr/share/${PN}/font
- 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} ]] && use symlink; then
- dosym "${PN}" /usr/bin/mplayer
- dosym "midentify${NAMESUF}" /usr/bin/midentify
- fi
-}
diff --git a/media-video/mplayer2/mplayer2-2.0_p20130428.ebuild b/media-video/mplayer2/mplayer2-2.0_p20130428-r1.ebuild
index 75210929f6ee..dd301df53ee7 100644
--- a/media-video/mplayer2/mplayer2-2.0_p20130428.ebuild
+++ b/media-video/mplayer2/mplayer2-2.0_p20130428-r1.ebuild
@@ -1,6 +1,6 @@
# 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_p20130428.ebuild,v 1.4 2013/06/13 19:32:28 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20130428-r1.ebuild,v 1.1 2013/07/09 16:06:35 scarabeus Exp $
EAPI=5
@@ -22,15 +22,14 @@ LICENSE="GPL-3"
SLOT="0"
[[ ${PV} == *9999* ]] || \
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
-IUSE="+a52 +alsa aqua 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 quvi radio +rar +rtc
-samba sdl +speex tga +theora +unicode v4l vcd vdpau +vorbis +X xanim xinerama
-+xscreensaver +xv xvid yuv4mpeg"
+IUSE="+alsa aqua bluray bs2b cddb +cdio cpudetection debug directfb doc dvb +dvd
++dvdnav +enca ftp gif +iconv ipv6 jack joystick jpeg ladspa lcms +libass libcaca
+lirc md5sum mng +mp3 +network +opengl oss png pnm portaudio +postproc pulseaudio
+pvr +quvi radio samba +shm tga +threads +unicode v4l vcd vdpau +X xinerama
++xscreensaver +xv yuv4mpeg"
IUSE+=" symlink"
-CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext +shm sse sse2 ssse3"
+CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext sse sse2 ssse3"
for x in ${CPU_FEATURES}; do
IUSE+=" ${x}"
done
@@ -38,17 +37,19 @@ done
REQUIRED_USE="
cddb? ( cdio network )
dvdnav? ( dvd )
+ enca? ( iconv )
lcms? ( opengl )
- libass? ( iconv )
opengl? ( || ( aqua X ) )
- radio? ( || ( dvb v4l ) )
+ portaudio? ( threads )
+ pvr? ( v4l )
+ radio? ( v4l || ( alsa oss ) )
+ v4l? ( threads )
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
@@ -62,7 +63,6 @@ RDEPEND+="
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 )
@@ -73,15 +73,12 @@ RDEPEND+="
)
)
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 )
@@ -93,10 +90,8 @@ RDEPEND+="
)
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 )
@@ -108,20 +103,8 @@ RDEPEND+="
)
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-9
+ >=virtual/ffmpeg-9[threads?,vdpau?]
symlink? ( !media-video/mplayer )
"
ASM_DEP="dev-lang/yasm"
@@ -129,7 +112,6 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
${PYTHON_DEPS}
dev-python/docutils
- sys-devel/gettext
X? (
x11-proto/videoproto
x11-proto/xf86vidmodeproto
@@ -138,12 +120,14 @@ DEPEND="${RDEPEND}
)
amd64? ( ${ASM_DEP} )
doc? (
- dev-libs/libxslt app-text/docbook-xml-dtd
+ dev-libs/libxslt
+ app-text/docbook-xml-dtd
app-text/docbook-xsl-stylesheets
)
x86? ( ${ASM_DEP} )
x86-fbsd? ( ${ASM_DEP} )
"
+DOCS=( AUTHORS Copyright README etc/example.conf etc/input.conf etc/codecs.conf )
PATCHES=(
"${FILESDIR}/${PN}-py2compat.patch"
@@ -158,6 +142,11 @@ pkg_setup() {
elog
fi
+ if use !libass; then
+ ewarn
+ ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
+ fi
+
if use cpudetection; then
ewarn
ewarn "You've enabled the cpudetection flag. This feature is"
@@ -170,11 +159,6 @@ pkg_setup() {
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"
@@ -183,9 +167,12 @@ pkg_setup() {
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
+ configure version.sh || die
+
+ sed -e 's/ $(INSTALLSTRIP)//' \
+ -e '/$(INSTALL) -d $(LIBDIR)/d' \
+ -i Makefile || die
if [[ -n ${NAMESUF} ]]; then
sed -e "/^EXESUF/s,= \$_exesuf$,= ${NAMESUF}\$_exesuf," \
@@ -201,36 +188,30 @@ src_configure() {
local myconf=""
local uses i
- # mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
+ # 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
+ #####################
+ # Optional features #
+ #####################
+ # rtc is useless and /dev/rtc0 is only readable for root
+ myconf+=" --disable-rtc"
+ # SDL output is fallback for platforms where nothing better is available
+ myconf+=" --disable-sdl"
myconf+="
- --disable-tremor
$(use_enable network networking)
$(use_enable joystick)
"
- uses="bluray enca ftp libass rtc vcd"
+ uses="bluray ftp 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
+ use lirc || myconf+=" --disable-lirc --disable-lircc --disable-apple-ir"
########
# CDDA #
@@ -253,53 +234,40 @@ src_configure() {
#############
# Subtitles #
#############
- #
+ uses="enca libass"
+ for i in ${uses}; do
+ use ${i} || myconf+=" --disable-${i}"
+ done
# iconv optionally can use unicode
use iconv || myconf+=" --disable-iconv --charset=noconv"
use iconv && use unicode && myconf+=" --charset=UTF-8"
+ # obscure and not maintained feature
+ myconf+=" --disable-unrarexec"
#####################################
# 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
+ # BSD legacy TV/radio support, FreeBSD actually supports V4L2, and V4L2 supports this chip.
+ myconf+=" --disable-tv-bsdbt848 --disable-radio-bsdbt848"
+ use dvb || myconf+=" --disable-dvb"
+ use pvr || myconf+=" --disable-pvr"
+ use v4l || myconf+=" --disable-tv --disable-tv-v4l2 --disable-v4l2"
+ if use radio; then
+ myconf+=" --enable-radio --enable-radio-capture"
else
- myconf+="
- --disable-tv
- --disable-tv-v4l2
- --disable-radio
- --disable-radio-v4l2
- --disable-radio-bsdbt848
- --disable-dvb
- --disable-v4l2
- --disable-pvr"
+ myconf+=" --disable-radio-v4l2"
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"
+ # better demuxers and decoders are provided by libav and ffmpeg
+ uses="faad liba52 libdca libdv libnut libvorbis mad musepack speex theora tremor xanim xvid"
for i in ${uses}; do
- use ${i} || myconf+=" --disable-lib${i}"
+ myconf+=" --disable-${i}"
done
- uses="faad gif jpeg mad mng png pnm speex tga theora xanim xvid"
+ use mp3 || myconf+=" --disable-mpg123"
+ uses="gif jpeg mng png pnm tga"
for i in ${uses}; do
use ${i} || myconf+=" --disable-${i}"
done
@@ -312,7 +280,7 @@ src_configure() {
################
# Video Output #
################
- uses="directfb md5sum sdl yuv4mpeg"
+ uses="directfb md5sum yuv4mpeg"
for i in ${uses}; do
use ${i} || myconf+=" --disable-${i}"
done
@@ -327,17 +295,19 @@ src_configure() {
for i in ${uses}; do
use ${i} || myconf+=" --disable-${i}"
done
+ use bs2b || myconf+=" --disable-libbs2b"
#use openal && myconf+=" --enable-openal" # build fails
+ use oss || myconf+=" --disable-ossaudio"
use pulseaudio || myconf+=" --disable-pulse"
- if ! use radio; then
- use oss || myconf+=" --disable-ossaudio"
- fi
####################
# Advanced Options #
####################
+ use threads || myconf+=" --disable-pthreads"
+
# Platform specific flags, hardcoded on amd64 (see below)
use cpudetection && myconf+=" --enable-runtime-cpudetection"
+ use shm || myconf+=" --disable-shm"
for i in ${CPU_FEATURES//+/}; do
myconf+=" $(use_enable ${i})"
@@ -365,23 +335,18 @@ src_configure() {
############################
# OSX (aqua) configuration #
############################
- if use aqua; then
- myconf+="
- --enable-macosx-finder
- --enable-macosx-bundle
- "
- fi
+ use aqua && myconf+=" --enable-macosx-bundle --enable-macosx-finder"
- ./configure \
+ CFLAGS= LDFLAGS= ./configure \
--cc="$(tc-getCC)" \
+ --extra-cflags="${CFLAGS}" \
+ --extra-ldflags="${LDFLAGS}" \
--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"
@@ -393,50 +358,22 @@ src_compile() {
}
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
+ base_src_install
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_
+ rm -r TOOLS/osxbundle* DOCS/tech/{Doxyfile,realcodecs} || die
+ dodoc -r TOOLS DOCS/tech
+ dohtml -r DOCS/HTML/*
fi
- dosym ../../../etc/${PN}/mplayer.conf /usr/share/${PN}/mplayer.conf
- newbin "${S}/TOOLS/midentify.sh" midentify${NAMESUF}
+ newbin 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
+ dosym ${PN} /usr/bin/mplayer
+ dosym midentify${NAMESUF} /usr/bin/midentify
fi
fi
}
diff --git a/media-video/mplayer2/mplayer2-9999.ebuild b/media-video/mplayer2/mplayer2-9999.ebuild
index d632231a07f5..fdabd3175a00 100644
--- a/media-video/mplayer2/mplayer2-9999.ebuild
+++ b/media-video/mplayer2/mplayer2-9999.ebuild
@@ -1,6 +1,6 @@
# 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.59 2013/06/13 19:32:28 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-9999.ebuild,v 1.60 2013/07/09 16:06:35 scarabeus Exp $
EAPI=5
@@ -22,15 +22,14 @@ LICENSE="GPL-3"
SLOT="0"
[[ ${PV} == *9999* ]] || \
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
-IUSE="+a52 +alsa aqua 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 quvi radio +rar +rtc
-samba sdl +speex tga +theora +unicode v4l vcd vdpau +vorbis +X xanim xinerama
-+xscreensaver +xv xvid yuv4mpeg"
+IUSE="+alsa aqua bluray bs2b cddb +cdio cpudetection debug directfb doc dvb +dvd
++dvdnav +enca ftp gif +iconv ipv6 jack joystick jpeg ladspa lcms +libass libcaca
+lirc md5sum mng +mp3 +network +opengl oss png pnm portaudio +postproc pulseaudio
+pvr +quvi radio samba +shm tga +threads +unicode v4l vcd vdpau +X xinerama
++xscreensaver +xv yuv4mpeg"
IUSE+=" symlink"
-CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext +shm sse sse2 ssse3"
+CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext sse sse2 ssse3"
for x in ${CPU_FEATURES}; do
IUSE+=" ${x}"
done
@@ -38,17 +37,19 @@ done
REQUIRED_USE="
cddb? ( cdio network )
dvdnav? ( dvd )
+ enca? ( iconv )
lcms? ( opengl )
- libass? ( iconv )
opengl? ( || ( aqua X ) )
- radio? ( || ( dvb v4l ) )
+ portaudio? ( threads )
+ pvr? ( v4l )
+ radio? ( v4l || ( alsa oss ) )
+ v4l? ( threads )
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
@@ -62,7 +63,6 @@ RDEPEND+="
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 )
@@ -73,15 +73,12 @@ RDEPEND+="
)
)
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 )
@@ -93,10 +90,8 @@ RDEPEND+="
)
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 )
@@ -108,20 +103,8 @@ RDEPEND+="
)
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-9
+ >=virtual/ffmpeg-9[threads?,vdpau?]
symlink? ( !media-video/mplayer )
"
ASM_DEP="dev-lang/yasm"
@@ -129,7 +112,6 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
${PYTHON_DEPS}
dev-python/docutils
- sys-devel/gettext
X? (
x11-proto/videoproto
x11-proto/xf86vidmodeproto
@@ -138,12 +120,14 @@ DEPEND="${RDEPEND}
)
amd64? ( ${ASM_DEP} )
doc? (
- dev-libs/libxslt app-text/docbook-xml-dtd
+ dev-libs/libxslt
+ app-text/docbook-xml-dtd
app-text/docbook-xsl-stylesheets
)
x86? ( ${ASM_DEP} )
x86-fbsd? ( ${ASM_DEP} )
"
+DOCS=( AUTHORS Copyright README etc/example.conf etc/input.conf etc/codecs.conf )
PATCHES=(
"${FILESDIR}/${PN}-py2compat.patch"
@@ -158,6 +142,11 @@ pkg_setup() {
elog
fi
+ if use !libass; then
+ ewarn
+ ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
+ fi
+
if use cpudetection; then
ewarn
ewarn "You've enabled the cpudetection flag. This feature is"
@@ -170,11 +159,6 @@ pkg_setup() {
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"
@@ -183,9 +167,12 @@ pkg_setup() {
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
+ configure version.sh || die
+
+ sed -e 's/ $(INSTALLSTRIP)//' \
+ -e '/$(INSTALL) -d $(LIBDIR)/d' \
+ -i Makefile || die
if [[ -n ${NAMESUF} ]]; then
sed -e "/^EXESUF/s,= \$_exesuf$,= ${NAMESUF}\$_exesuf," \
@@ -201,36 +188,30 @@ src_configure() {
local myconf=""
local uses i
- # mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
+ # 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
+ #####################
+ # Optional features #
+ #####################
+ # rtc is useless and /dev/rtc0 is only readable for root
+ myconf+=" --disable-rtc"
+ # SDL output is fallback for platforms where nothing better is available
+ myconf+=" --disable-sdl"
myconf+="
- --disable-tremor
$(use_enable network networking)
$(use_enable joystick)
"
- uses="bluray enca ftp libass rtc vcd"
+ uses="bluray ftp 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
+ use lirc || myconf+=" --disable-lirc --disable-lircc --disable-apple-ir"
########
# CDDA #
@@ -253,53 +234,40 @@ src_configure() {
#############
# Subtitles #
#############
- #
+ uses="enca libass"
+ for i in ${uses}; do
+ use ${i} || myconf+=" --disable-${i}"
+ done
# iconv optionally can use unicode
use iconv || myconf+=" --disable-iconv --charset=noconv"
use iconv && use unicode && myconf+=" --charset=UTF-8"
+ # obscure and not maintained feature
+ myconf+=" --disable-unrarexec"
#####################################
# 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
+ # BSD legacy TV/radio support, FreeBSD actually supports V4L2, and V4L2 supports this chip.
+ myconf+=" --disable-tv-bsdbt848 --disable-radio-bsdbt848"
+ use dvb || myconf+=" --disable-dvb"
+ use pvr || myconf+=" --disable-pvr"
+ use v4l || myconf+=" --disable-tv --disable-tv-v4l2 --disable-v4l2"
+ if use radio; then
+ myconf+=" --enable-radio --enable-radio-capture"
else
- myconf+="
- --disable-tv
- --disable-tv-v4l2
- --disable-radio
- --disable-radio-v4l2
- --disable-radio-bsdbt848
- --disable-dvb
- --disable-v4l2
- --disable-pvr"
+ myconf+=" --disable-radio-v4l2"
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"
+ # better demuxers and decoders are provided by libav and ffmpeg
+ uses="faad liba52 libdca libdv libnut libvorbis mad musepack speex theora tremor xanim xvid"
for i in ${uses}; do
- use ${i} || myconf+=" --disable-lib${i}"
+ myconf+=" --disable-${i}"
done
- uses="faad gif jpeg mad mng png pnm speex tga theora xanim xvid"
+ use mp3 || myconf+=" --disable-mpg123"
+ uses="gif jpeg mng png pnm tga"
for i in ${uses}; do
use ${i} || myconf+=" --disable-${i}"
done
@@ -312,7 +280,7 @@ src_configure() {
################
# Video Output #
################
- uses="directfb md5sum sdl yuv4mpeg"
+ uses="directfb md5sum yuv4mpeg"
for i in ${uses}; do
use ${i} || myconf+=" --disable-${i}"
done
@@ -327,17 +295,19 @@ src_configure() {
for i in ${uses}; do
use ${i} || myconf+=" --disable-${i}"
done
+ use bs2b || myconf+=" --disable-libbs2b"
#use openal && myconf+=" --enable-openal" # build fails
+ use oss || myconf+=" --disable-ossaudio"
use pulseaudio || myconf+=" --disable-pulse"
- if ! use radio; then
- use oss || myconf+=" --disable-ossaudio"
- fi
####################
# Advanced Options #
####################
+ use threads || myconf+=" --disable-pthreads"
+
# Platform specific flags, hardcoded on amd64 (see below)
use cpudetection && myconf+=" --enable-runtime-cpudetection"
+ use shm || myconf+=" --disable-shm"
for i in ${CPU_FEATURES//+/}; do
myconf+=" $(use_enable ${i})"
@@ -365,23 +335,18 @@ src_configure() {
############################
# OSX (aqua) configuration #
############################
- if use aqua; then
- myconf+="
- --enable-macosx-finder
- --enable-macosx-bundle
- "
- fi
+ use aqua && myconf+=" --enable-macosx-bundle --enable-macosx-finder"
- ./configure \
+ CFLAGS= LDFLAGS= ./configure \
--cc="$(tc-getCC)" \
+ --extra-cflags="${CFLAGS}" \
+ --extra-ldflags="${LDFLAGS}" \
--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"
@@ -393,50 +358,22 @@ src_compile() {
}
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
+ base_src_install
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_
+ rm -r TOOLS/osxbundle* DOCS/tech/{Doxyfile,realcodecs} || die
+ dodoc -r TOOLS DOCS/tech
+ dohtml -r DOCS/HTML/*
fi
- dosym ../../../etc/${PN}/mplayer.conf /usr/share/${PN}/mplayer.conf
- newbin "${S}/TOOLS/midentify.sh" midentify${NAMESUF}
+ newbin 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
+ dosym ${PN} /usr/bin/mplayer
+ dosym midentify${NAMESUF} /usr/bin/midentify
fi
fi
}