# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-emulation/dolphin/dolphin-3.5.ebuild,v 1.11 2014/02/17 01:49:47 twitch153 Exp $ EAPI=5 WX_GTK_VER="2.9" inherit cmake-utils eutils flag-o-matic pax-utils toolchain-funcs versionator wxwidgets games DESCRIPTION="Gamecube and Wii game emulator" HOMEPAGE="https://www.dolphin-emu.org/" SRC_URI="https://github.com/${PN}-emu/${PN}/archive/${PV}.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="alsa ao bluetooth doc ffmpeg +lzo openal opengl openmp portaudio pulseaudio" RESTRICT="mirror" RDEPEND=">=media-libs/glew-1.6 >=media-libs/libsdl-1.2[joystick] =media-gfx/nvidia-cg-toolkit-3.1.0013"; then append-ldflags "-L/opt/nvidia-cg-toolkit/lib64" elif has_version "<=media-gfx/nvidia-cg-toolkit-2.1.0017-r1"; then append-ldflags "-L/opt/nvidia-cg-toolkit/lib" fi fi local mycmakeargs=( "-DDOLPHIN_WC_REVISION=${PV}" "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}" "-Dprefix=${GAMES_PREFIX}" "-Ddatadir=${GAMES_DATADIR}/${PN}" "-Dplugindir=$(games_get_libdir)/${PN}" $(cmake-utils_use ffmpeg ENCODE_FRAMEDUMPS) $(cmake-utils_use openmp OPENMP ) ) cmake-utils_src_configure } src_compile() { cmake-utils_src_compile } src_install() { cmake-utils_src_install dodoc Readme.txt if use doc; then dodoc -r docs/ActionReplay docs/DSP docs/WiiMote fi doicon Source/Core/DolphinWX/resources/Dolphin.xpm make_desktop_entry "dolphin-emu" "Dolphin" "Dolphin" "Game;" prepgamesdirs } pkg_postinst() { # Add pax markings for hardened systems pax-mark -m "${EPREFIX}"/usr/games/bin/"${PN}"-emu if ! use portaudio; then ewarn "If you want microphone capabilities in dolphin-emu, rebuild with" ewarn "USE=\"portaudio\"" fi }