# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit multilib eutils DESCRIPTION="Pre-build mplayer binary for amd64 systems" HOMEPAGE="http://www.gentoo.org/" SRC_URI="${P}.tbz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="-* ~amd64" IUSE="" RDEPEND=">=app-emulation/emul-linux-x86-baselibs-10.1 >=app-emulation/emul-linux-x86-soundlibs-10.0 >=app-emulation/emul-linux-x86-gtklibs-10.0 >=app-emulation/emul-linux-x86-sdl-10.0 >=app-emulation/emul-linux-x86-medialibs-10.1 >=media-libs/win32codecs-20061022-r1" S="${WORKDIR}" RESTRICT="fetch strip" pkg_nofetch() { einfo "Unfortunately, drop.io does not provide stable download URIs" einfo "Please download ${SRC_URI} from:" einfo "http://drop.io/tetromino_distfiles" einfo "and move it to ${DISTDIR}" } pkg_setup() { # This is a binary x86 package => ABI=x86 # Please keep this in future versions # Daniel Gryniewicz has_multilib_profile || die ABI="x86" if ! built_with_use app-emulation/emul-linux-x86-xlibs opengl; then eerror "Please rebuild emul-linux-x86-xlibs with the opengl USE flag" die "emul-linux-x86-xlibs needs support for opengl" fi } src_install() { cp -pPRvf "${WORKDIR}"/* "${D}"/ dosed dosed -e "s/gmplayer/gmplayer-bin/" /opt/mplayer-bin/share/applications/mplayer.desktop dosym /opt/mplayer-bin/share/applications/mplayer.desktop /usr/share/applications/mplayer-bin.desktop dodir /opt/mplayer-bin/lib dosym /usr/lib32/win32 /opt/mplayer-bin/lib/codecs }