summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Koltsov <maksbotan@gentoo.org>2014-05-02 19:28:47 +0000
committerMaxim Koltsov <maksbotan@gentoo.org>2014-05-02 19:28:47 +0000
commit705fa1f6513a7c5cb30d6521cb40f712bc979940 (patch)
tree86dc6ee7a8254dfad92575ab9483b1e12daf47d0 /media-video/mplayer2
parentUpdate MATE bluetooth mask to include mate-base/mate[bluetooth]. (diff)
downloadhistorical-705fa1f6513a7c5cb30d6521cb40f712bc979940.tar.gz
historical-705fa1f6513a7c5cb30d6521cb40f712bc979940.tar.bz2
historical-705fa1f6513a7c5cb30d6521cb40f712bc979940.zip
Bump to new snapshot, change SRC_URI to dev.gentoo.org as googlecode no longer accepts downloads.
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0xF8DBDADE
Diffstat (limited to 'media-video/mplayer2')
-rw-r--r--media-video/mplayer2/ChangeLog9
-rw-r--r--media-video/mplayer2/Manifest18
-rw-r--r--media-video/mplayer2/mplayer2-2.0_p20131009.ebuild374
3 files changed, 392 insertions, 9 deletions
diff --git a/media-video/mplayer2/ChangeLog b/media-video/mplayer2/ChangeLog
index 3f1d1423ebdf..2743c5b4d044 100644
--- a/media-video/mplayer2/ChangeLog
+++ b/media-video/mplayer2/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-video/mplayer2
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v 1.119 2014/05/01 20:17:09 maksbotan Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v 1.120 2014/05/02 19:28:40 maksbotan Exp $
+
+*mplayer2-2.0_p20131009 (02 May 2014)
+
+ 02 May 2014; Maxim Koltsov <maksbotan@gentoo.org>
+ +mplayer2-2.0_p20131009.ebuild:
+ Bump to new snapshot, change SRC_URI to dev.gentoo.org as googlecode no longer
+ accepts downloads.
01 May 2014; Maxim Koltsov <maksbotan@gentoo.org>
mplayer2-2.0_p20130428-r1.ebuild, mplayer2-9999.ebuild:
diff --git a/media-video/mplayer2/Manifest b/media-video/mplayer2/Manifest
index 3c40d4cfc972..21bae2927bdf 100644
--- a/media-video/mplayer2/Manifest
+++ b/media-video/mplayer2/Manifest
@@ -6,19 +6,21 @@ AUX mplayer2-2.0_p20120828-ffmpeg.patch 765 SHA256 2387daac56d711d4a7d32fc15f1b2
AUX mplayer2-py2compat.patch 2179 SHA256 36e26a89ec03de0e349443ca3ce07c58e408e032200f49c3ce849691589a1cc7 SHA512 a90417c923c36c78d4c8053de89b26f69cd29a01ee37028360c8c564b903ee00ac0d7e98bcaf25220998951f25987cd89ede47b54518736c14abd1e7153e6568 WHIRLPOOL 987c63235be05fd3dbe89e4e291649c6f2176771e07c8515c08725a4e3d54118136b968531565a65c1e83bd754cc51e9bef5493ec2e653dfa4b3278c8bed6cce
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
+DIST mplayer2-2.0_p20131009.tar.xz 1907780 SHA256 c105b3804d4d66af29015d4ecd46abbdff75c39d78d5457c535519ecc4d3855a SHA512 8c072bf8fa6a908d3c587e5f26daa6a07098abc8dabd20f77b172e8de5537125873ac1cfc8f07e5616eb0b35aaa73fbab2b30e94a057d220c481dae7740cb3e6 WHIRLPOOL f595c4032371239f1f31f6356d5c7d07534fc8227ba3f1e1452b507ac64baec0747c80b067eaed5fbdc58ee957875a39d9d782eed45b6d797d9a283a34496b78
EBUILD mplayer2-2.0_p20130126.ebuild 11686 SHA256 9a56cd8eb35665a77423fde35a76c98cc2b091f9837376821fb2271bfb4d94bb SHA512 9be3e0cc59a7166a615cce848be8b09db375a813fe774d221dde9624f79d954f820de092d39248ab79d8703670bbdd072bf670fcca609443c809f098e2fadc54 WHIRLPOOL d3aa4cf4d5a2c48a969c46bbf3bedbde8952026c0f58466fa3ebed5c2e359ae1688c1243f43dc31d2c4d2b0c25f5781cf57df4ca6692a4b064dc2f4aee60b27e
EBUILD mplayer2-2.0_p20130428-r1.ebuild 10360 SHA256 b7e1021fdbb83a1fbf3b48be3be61325fe040b24b5a062cfd4422ad7c8f4a70c SHA512 7a0a46abea3a6b9a1e292f074437db79bcc6151f123b7555304012f781248f80d54b9526de6b94438774416d51aa3ccc73e4994fabb6190ce4477d3dcc9e6a5d WHIRLPOOL 45c61da51c4f41905448a57abf7840abd6be1dff8d7b2d0b8ed7d2a0a4f6160377edf970c7c937ad5f636f1b23a49be80d5159f66048bdfb3ce8f2927bced3ec
+EBUILD mplayer2-2.0_p20131009.ebuild 10351 SHA256 ab3f03237d0268c81f066262d45db7f9404e0ba37ff9e72fd9ba992d73cff161 SHA512 fa292d63be6e57d8dffcb0687d403d521bf02fb3ac5b1a80591bd37782e89b13af514f6bdeddbc9e3e80673a11ae9bf72ded8c539f1d5c2dc364726691746330 WHIRLPOOL 0dbb2387a9cd6a63b67bb3c80af56f6051f722a11a09c3490c9c0296d4fd0885cacdcab3f2cf7ba707685a26ee3217ba234059c4e53c368cc2fba4a412c13f6b
EBUILD mplayer2-9999.ebuild 10345 SHA256 4a2615e1d763bcbd2a95eb4b1f8840fd715ee425563c2ec047d6ce14b394c6ba SHA512 4f18140f68b92de96159e6844b8fd71ccf06d1bc110fe53608c72039822d6f9e67a7f6fa4943e1aca58c772d104ab4f21f3274a254781c3bfedc0a4a3c71f95f WHIRLPOOL 14ac5085fd2af8f0e65d15d069534e0a2bcf87cad0f0ad9b175d9e7c35874a9aa2fae31b946354352e432f579c8c58c65fc4a534571a12c3b7d97b8aaf66c970
-MISC ChangeLog 22247 SHA256 54c12f090b90b95585d667abb5b0544f6b1b322ddb21db0307fa7c725b28c92f SHA512 4343697230af43bc9e3b64dbf6549a00c13ce52636874fe81b7e348f9e24af1800361c6906d526ca3eecc89d158d72489477d3c582e4a41fa2d1ede6bcb722e9 WHIRLPOOL a0328fbf1bac53b99ef8dd1455cbc6b15dcc89ae3528fbfd676c818148e00f2fa69bf52b0e5d083b518d8170bf5fb5a4c797410e1ef802f68ca84257fc2a54d1
+MISC ChangeLog 22475 SHA256 a4d5b7965c314f2ba9026c395ec54f084f47361e1ab1929d48079de623dd09d2 SHA512 853a23dcc64c09a950094d83e15508a5a60ea46fc69c72609d9f6a7e8d0ff960d1c165b5ed99b56a741f4c7e2f6881b69279195b5f57dd7988e4c2c45a152088 WHIRLPOOL 0d077e3332de35e5a2b5c431fbe89880929c5d93eeefe01e979c06245eeab48fcf03d7ac2cc60bb250c7ec4877b989af086f60def217a96986d8d8d6a841cef2
MISC metadata.xml 3147 SHA256 b59a051d61995b8e8f565110f91005df45b271b19f55f12e873160189d523ed9 SHA512 88338f85b67efc54241fb4d6bb91883ee337fcabac184bf7cac2cb971e81bc53fd9bd9fbec1c71a2353ab5f5263218fc673d58f45642a42e9934dcf8240e9c11 WHIRLPOOL 98da9689a06cad004f9056e31766771bdd62274c05ad9334144845ea2be378197343e87c86debec08c6beaff027f82534792b3b76ae444ce7aa3eb2b4dca2cb6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQEcBAEBCAAGBQJTYqu9AAoJEAmJmMX429rerQoIAK+WfWx4YEEmNbHiZwK7TWsM
-odCvBMdmfx92YZ8n0kMNbULtFgkdjBX5KKiCArehuSC3vp8nNzae3xXEWSZC91ua
-DgZPTgr6CQn78iT692zqppxMLJxmcVNTM1ftE/kM949Kcno9Dl15DOi4Ff1h/8Ce
-195mqIAK+7lQPvqHVfqWiSawLGMgJia+bZv2lgb4TpPfEfOrvMVSIHcbECoJJs+c
-JwZuA4PL7yZ0IwxVXgRTk1t2e//ncFbbTzwSEiaTe+Y5mIx0kU33LGhy+mtKA0Ak
-drgw13aGtYwjyBsKCK21x7vPq4ZeMkECs621EUu7evNSfFkSlnMmsujrcMMwhmY=
-=/HeZ
+iQEcBAEBCAAGBQJTY/HcAAoJEAmJmMX429reG3IH/2jsaWmnjicAzQsdCduSMnQ/
+VD2CFmeEt+WX5IlPC+EhoxNEVOQbQhJoEpk+YqPlK9XvAXwNYB6/PL/fx8UFRAeT
+f/xxv9UC5/Jb2Qx7wYTQqOZlBZ0xQTY1Xlip0YCTbCN5I5a+jbqKMOv/cEyqZTQ2
+kpzywxOZWuQsiWYj9gdkXotKs9GV5LKspQ4ccvuJDpkkBlzDuPW2Z3UB2eqIC16Z
+3z3SQzgBw+U9wVXMYfVfkKj7FKdeT9ol4XrqfrIBUwihNfnetmrhK3TtLwfTewQO
+UjAZaq5niIgBeuQee8kBPgLuve5arj9tyOl/vZ4CmG5xhg00tZnogA+5VNC/0Lk=
+=8OiB
-----END PGP SIGNATURE-----
diff --git a/media-video/mplayer2/mplayer2-2.0_p20131009.ebuild b/media-video/mplayer2/mplayer2-2.0_p20131009.ebuild
new file mode 100644
index 000000000000..b9b9c61a9c75
--- /dev/null
+++ b/media-video/mplayer2/mplayer2-2.0_p20131009.ebuild
@@ -0,0 +1,374 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20131009.ebuild,v 1.1 2014/05/02 19:28:40 maksbotan Exp $
+
+EAPI=5
+
+# https://bugs.gentoo.org/show_bug.cgi?id=434356#c4
+PYTHON_COMPAT=( python{2_7,3_2,3_3} )
+
+EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git"
+
+inherit toolchain-funcs flag-o-matic multilib eutils python-any-r1
+[[ ${PV} == *9999* ]] && inherit git-2
+
+NAMESUF="${PN/mplayer/}"
+DESCRIPTION="Media Player for Linux"
+HOMEPAGE="http://www.mplayer2.org/"
+[[ ${PV} == *9999* ]] || \
+SRC_URI="http://dev.gentoo.org/~maksbotan/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+[[ ${PV} == *9999* ]] || \
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
+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 selinux +shm tga +threads +unicode v4l vcd vdpau +X xinerama
++xscreensaver +xv yuv4mpeg"
+IUSE+=" symlink"
+
+CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext sse sse2 ssse3"
+for x in ${CPU_FEATURES}; do
+ IUSE+=" ${x}"
+done
+
+REQUIRED_USE="
+ cddb? ( cdio network )
+ dvdnav? ( dvd )
+ enca? ( iconv )
+ lcms? ( opengl )
+ libass? ( iconv )
+ opengl? ( || ( aqua X ) )
+ portaudio? ( threads )
+ pvr? ( v4l )
+ radio? ( v4l || ( alsa oss ) )
+ v4l? ( threads )
+ vdpau? ( X )
+ xinerama? ( X )
+ xscreensaver? ( X )
+ xv? ( X )
+"
+
+RDEPEND+="
+ sys-libs/ncurses
+ sys-libs/zlib
+ 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 )
+ )
+ alsa? ( media-libs/alsa-lib )
+ bluray? ( media-libs/libbluray )
+ bs2b? ( media-libs/libbs2b )
+ cdio? (
+ || (
+ dev-libs/libcdio-paranoia
+ <dev-libs/libcdio-0.90[-minimal]
+ )
+ )
+ directfb? ( dev-libs/DirectFB )
+ dvb? ( virtual/linuxtv-dvb-headers )
+ dvd? (
+ >=media-libs/libdvdread-4.1.3
+ dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
+ )
+ enca? ( app-i18n/enca )
+ 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 )
+ mng? ( media-libs/libmng )
+ mp3? ( media-sound/mpg123 )
+ png? ( media-libs/libpng )
+ pnm? ( media-libs/netpbm )
+ portaudio? ( >=media-libs/portaudio-19_pre20111121 )
+ postproc? (
+ || (
+ media-libs/libpostproc
+ media-video/ffmpeg:0
+ )
+ )
+ pulseaudio? ( media-sound/pulseaudio )
+ quvi? ( >=media-libs/libquvi-0.4.1 <media-libs/libquvi-0.9 )
+ samba? ( net-fs/samba )
+ selinux? ( sec-policy/selinux-mplayer )
+ >=virtual/ffmpeg-9[threads?,vdpau?]
+ symlink? ( !media-video/mplayer )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ ${PYTHON_DEPS}
+ dev-python/docutils
+ X? (
+ x11-proto/videoproto
+ x11-proto/xf86vidmodeproto
+ xinerama? ( x11-proto/xineramaproto )
+ xscreensaver? ( x11-proto/scrnsaverproto )
+ )
+ doc? (
+ dev-libs/libxslt
+ app-text/docbook-xml-dtd
+ app-text/docbook-xsl-stylesheets
+ )
+"
+DOCS=( AUTHORS Copyright README etc/example.conf etc/input.conf etc/codecs.conf )
+
+pkg_setup() {
+ if [[ ${PV} == *9999* ]]; then
+ elog
+ elog "This is a live ebuild which installs the latest from upstream's"
+ elog "git repository, and is unsupported by Gentoo."
+ elog "Everything but bugs in the ebuild itself will be ignored."
+ 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"
+ 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"
+
+ python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-py2compat.patch"
+ epatch_user
+
+ # fix path to bash executable in configure scripts
+ sed -i -e "1c\#!${EPREFIX}/bin/bash" \
+ 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," \
+ -i configure || die
+ sed -e "s/mplayer/${PN}/" \
+ -i TOOLS/midentify.sh || die
+ fi
+}
+
+src_configure() {
+ local myconf=""
+ local uses i
+
+ # 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 #
+ #####################
+ # 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+="
+ $(use_enable network networking)
+ $(use_enable joystick)
+ "
+ uses="bluray ftp vcd"
+ for i in ${uses}; do
+ use ${i} || myconf+=" --disable-${i}"
+ done
+ use ipv6 || myconf+=" --disable-inet6"
+ use quvi || myconf+=" --disable-libquvi"
+ use samba || myconf+=" --disable-smb"
+ use lirc || myconf+=" --disable-lirc --disable-lircc --disable-apple-ir"
+
+ ########
+ # 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 #
+ #############
+ 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 #
+ #####################################
+ # 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-radio-v4l2"
+ fi
+
+ ##########
+ # Codecs #
+ ##########
+ # 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
+ myconf+=" --disable-${i}"
+ done
+ use mp3 || myconf+=" --disable-mpg123"
+ uses="gif jpeg mng png pnm tga"
+ for i in ${uses}; do
+ use ${i} || myconf+=" --disable-${i}"
+ done
+
+ #################
+ # Binary codecs #
+ #################
+ myconf+=" --disable-qtx --disable-real --disable-win32dll"
+
+ ################
+ # Video Output #
+ ################
+ uses="directfb md5sum 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 bs2b || myconf+=" --disable-libbs2b"
+ #use openal && myconf+=" --enable-openal" # build fails
+ use oss || myconf+=" --disable-ossaudio"
+ use pulseaudio || myconf+=" --disable-pulse"
+
+ ####################
+ # 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})"
+ 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 #
+ ############################
+ use aqua && myconf+=" --enable-macosx-bundle --enable-macosx-finder"
+
+ CFLAGS= LDFLAGS= ./configure \
+ --cc="$(tc-getCC)" \
+ --extra-cflags="${CFLAGS}" \
+ --extra-ldflags="${LDFLAGS}" \
+ --pkg-config="$(tc-getPKG_CONFIG)" \
+ --prefix="${EPREFIX}"/usr \
+ --bindir="${EPREFIX}"/usr/bin \
+ --confdir="${EPREFIX}"/etc/${PN} \
+ --mandir="${EPREFIX}"/usr/share/man \
+ --localedir="${EPREFIX}"/usr/share/locale \
+ ${myconf} || die
+
+ MAKEOPTS+=" V=1"
+}
+
+src_compile() {
+ default
+ use doc && emake -C DOCS/xml html-chunked
+}
+
+src_install() {
+ default
+
+ if use doc; then
+ rm -r TOOLS/osxbundle* DOCS/tech/{Doxyfile,realcodecs} || die
+ dodoc -r TOOLS DOCS/tech
+ dohtml -r DOCS/HTML/*
+ fi
+
+ 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
+ fi
+ fi
+}