diff options
author | Devan Franchini <twitch153@gentoo.org> | 2013-08-26 04:25:00 +0000 |
---|---|---|
committer | Devan Franchini <twitch153@gentoo.org> | 2013-08-26 04:25:00 +0000 |
commit | 7a89ec56bbb33a52f829e8ecea8a3f81c7497dc3 (patch) | |
tree | 9b3e2a6392860c198f1609e33bf1629fea53433f /games-emulation/dolphin | |
parent | dev-haskell/asn1-types: 0.2.0 (diff) | |
download | historical-7a89ec56bbb33a52f829e8ecea8a3f81c7497dc3.tar.gz historical-7a89ec56bbb33a52f829e8ecea8a3f81c7497dc3.tar.bz2 historical-7a89ec56bbb33a52f829e8ecea8a3f81c7497dc3.zip |
New ebuild and live ebuild for dolphin emulator. Written by myself. Fixes bug #281543
Package-Manager: portage-2.1.12.2/cvs/Linux x86_64
Diffstat (limited to 'games-emulation/dolphin')
-rw-r--r-- | games-emulation/dolphin/ChangeLog | 11 | ||||
-rw-r--r-- | games-emulation/dolphin/Manifest | 5 | ||||
-rw-r--r-- | games-emulation/dolphin/dolphin-3.5.ebuild | 143 | ||||
-rw-r--r-- | games-emulation/dolphin/dolphin-9999.ebuild | 129 | ||||
-rw-r--r-- | games-emulation/dolphin/metadata.xml | 12 |
5 files changed, 300 insertions, 0 deletions
diff --git a/games-emulation/dolphin/ChangeLog b/games-emulation/dolphin/ChangeLog new file mode 100644 index 000000000000..dc39f48315a9 --- /dev/null +++ b/games-emulation/dolphin/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for games-emulation/dolphin +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/dolphin/ChangeLog,v 1.1 2013/08/26 04:25:00 twitch153 Exp $ + +*dolphin-9999 (26 Aug 2013) +*dolphin-3.5 (26 Aug 2013) + + 26 Aug 2013; twitch153 +dolphin-3.5.ebuild, +dolphin-9999.ebuild, + +files/dolphin-emu-3.5-gcc-4.8.patch, +metadata.xml: + New ebuild and live ebuild for dolphin emulator. Written by myself. Fixes bug + #281543 diff --git a/games-emulation/dolphin/Manifest b/games-emulation/dolphin/Manifest new file mode 100644 index 000000000000..77a439cc414c --- /dev/null +++ b/games-emulation/dolphin/Manifest @@ -0,0 +1,5 @@ +AUX dolphin-emu-3.5-gcc-4.8.patch 6682 SHA256 8f153b45b354d52e084694d285fe49409a47f0738e064ca7ba88b38cbbd6f1ca SHA512 98a2e0435b262af4bcf875ef29d14ed5ae204faebadbed7778cfedb3c9841552ecab83ef932e943c779d634d83f6df6d43a656c5e72732e85827902cb08622aa WHIRLPOOL 7128c98fcd22efde2a8067a28d9b064689fa7a5f81b068313a19e41f4fc659b726293bc00539be725077ff5529276c0769e7acbf8146c2c8d578c3812776d488 +DIST dolphin-3.5-src.zip 28805192 SHA256 b95cb6f487c1f77471c08cfb52bc9844bb2385f0ffd8fb45416b4c5095eb8d9a SHA512 4e607f9ed15c19967382a178c725a015fa8e2db4f624e9b54c50af31bdbae333989be8397cd32d0aa3b5283caf85a67e5529583be4423ada5c6f098ca7c309ef WHIRLPOOL a840f15153eff2edb5f2c75410e6fed3cca7fbffe2eb05bbf6441b914f7b27c6d9ee90de27fb9a773b601c44311828b95e3c597000cf607ff12d1141266e50bc +EBUILD dolphin-3.5.ebuild 3750 SHA256 faf60eae44525cb1c50060fc3d8a2be0ddfa23ab09e7cd1862b404faecfe7692 SHA512 e6e65927756e99939beab0c8be2b67a51b3d2b9b80a812d4d0e451add4d7ac7ec655eec6143a5b24c84befbeea59603747d9be2da77cebe8ae096029bb6a7178 WHIRLPOOL 84c1aeecd4b623d97d82f9581e7c5c6151dc6ecbbcbbf6f56584c749e50dd3d0db46d871b4e34f6148e456ebbe5003e008e0a29a13ed23703fa5b09e70291e8a +EBUILD dolphin-9999.ebuild 3150 SHA256 410c1f56cbd32fafda7f54de9e73adb92d665e6506646c7c44bd9f5d0ae8a55a SHA512 87be512add453fea123f7f917d91b347460d2ac224545caf796e11a7b059be2bafa4d189b8bacb64f9ab4d2281c5a03672c113f0057643c00fbe52deb72ce8ad WHIRLPOOL 00c05054bd9db886a8d7294d5733a365942d3200c235d411556833516ac6fff2be655e3efeff021cde70dbe4ff8441cc66401ac21a1f06606a5fbb274c4f0b4f +MISC metadata.xml 442 SHA256 11ac55298ad628e589b592a2da00db1cabfd31ff8621c0fea059d714acdce334 SHA512 96abf53048bb8aea1387eacc40b9cda4e6099f079ddeb669fb23458d67880804fb015970207aa10a21227b87c153208a8dfa4bf4ea279ff7e53dcfebf18ac30e WHIRLPOOL e72458e354da2e4bfeb67de52c31d50a61f3b926fe16c0bcf4aae5e599858e413fcc9057fe1b098e43ee18fabe6a0f05dff008f59065cf34bad02da6480fc120 diff --git a/games-emulation/dolphin/dolphin-3.5.ebuild b/games-emulation/dolphin/dolphin-3.5.ebuild new file mode 100644 index 000000000000..71612b53ed25 --- /dev/null +++ b/games-emulation/dolphin/dolphin-3.5.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2013 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.1 2013/08/26 04:24:59 twitch153 Exp $ + +EAPI=5 + +WX_GTK_VER="2.9" + +inherit cmake-utils eutils flag-o-matic pax-utils toolchain-funcs versionator wxwidgets games + +DESCRIPTION="Dolphin is a Gamecube and Wii game emulator" +HOMEPAGE="http://www.dolphin-emulator.com/" +SRC_URI="http://${PN}-emu.googlecode.com/files/${P}-src.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-libs/libsfml-2.0 + sys-libs/readline + x11-libs/libXext + x11-libs/libXrandr + alsa? ( media-libs/alsa-lib ) + ao? ( media-libs/libao ) + bluetooth? ( net-wireless/bluez ) + ffmpeg? ( virtual/ffmpeg ) + lzo? ( dev-libs/lzo ) + openal? ( media-libs/openal ) + opengl? ( virtual/opengl ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-sound/pulseaudio ) + " +DEPEND="${RDEPEND} + app-arch/zip + media-gfx/nvidia-cg-toolkit + media-libs/freetype + >=sys-devel/gcc-4.6.0 + sys-devel/gettext + virtual/pkgconfig + x11-libs/wxGTK:2.9 + " + +src_prepare() { + + version_is_at_least 4.6.0 $(gcc-fullversion) || die "${PN} needs >=gcc-4.6.0 set to compile." + + if has_version "=sys-devel/gcc-4.8.0"; then + epatch "${FILESDIR}"/${PN}-emu-${PV}-gcc-4.8.patch + fi + + # Remove automatic dependencies to prevent building without flags enabled. + if use !alsa; then + sed -i -e '/^include(FindALSA/d' CMakeLists.txt || die + fi + if use !ao; then + sed -i -e '/^check_lib(AO/d' CMakeLists.txt || die + fi + if use !bluetooth; then + sed -i -e '/^check_lib(BLUEZ/d' CMakeLists.txt || die + fi + if use !openal; then + sed -i -e '/^include(FindOpenAL/d' CMakeLists.txt || die + fi + if use !portaudio; then + sed -i -e '/CMAKE_REQUIRED_LIBRARIES portaudio/d' CMakeLists.txt || die + fi + if use !pulseaudio; then + sed -i -e '/^check_lib(PULSEAUDIO/d' CMakeLists.txt || die + fi + + # Remove ALL the bundled libraries, aside from: + # - SOIL: The sources are not public. + # - Bochs_disasm: Don't know what it is. + # - CLRun: Part of OpenCL + mv Externals/SOIL . || die + mv Externals/Bochs_disasm . || die + mv Externals/CLRun . || die + rm -r Externals/* || die "Failed to remove bundled libs" + mv CLRun Externals || die + mv Bochs_disasm Externals || die + mv SOIL Externals || die +} + +src_configure() { + + if $($(tc-getPKG_CONFIG) --exists nvidia-cg-toolkit); then + append-flags "$($(tc-getPKG_CONFIG) --cflags nvidia-cg-toolkit)" + else + append-flags "-I/opt/nvidia-cg-toolkit/include" + fi + + if $($(tc-getPKG_CONFIG) --exists nvidia-cg-toolkit); then + append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-L nvidia-cg-toolkit)" + else + if has_version ">=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_install() { + + cmake-utils_src_install + + dodoc Readme.txt + if use doc; then + doins -r doc + 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 +} diff --git a/games-emulation/dolphin/dolphin-9999.ebuild b/games-emulation/dolphin/dolphin-9999.ebuild new file mode 100644 index 000000000000..21e9911f70d6 --- /dev/null +++ b/games-emulation/dolphin/dolphin-9999.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/dolphin/dolphin-9999.ebuild,v 1.1 2013/08/26 04:24:59 twitch153 Exp $ + +EAPI=5 + +WX_GTK_VER="2.9" + +inherit cmake-utils eutils pax-utils toolchain-funcs versionator wxwidgets games + +if [[ ${PV} == 9999* ]] +then + EGIT_REPO_URI="https://code.google.com/p/dolphin-emu/" + inherit git-2 + KEYWORKD="" +else + SRC_URI="http://${PN}-emu.googlecode.com/files/${P}-src.zip" + KEYWORDS="~amd" +fi + +DESCRIPTION="Dolphin is a Gamecube and Wii game emulator" +HOMEPAGE="http://www.dolphin-emulator.com/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="alsa ao bluetooth doc ffmpeg +lzo openal opengl openmp portaudio pulseaudio" + +RDEPEND=">=media-libs/glew-1.6 + >=media-libs/libsdl-1.2[joystick] + <media-libs/libsfml-2.0 + >=net-libs/miniupnpc-1.8 + sys-libs/readline + x11-libs/libXext + x11-libs/libXrandr + alsa? ( media-libs/alsa-lib ) + ao? ( media-libs/libao ) + bluetooth? ( net-wireless/bluez ) + ffmpeg? ( virtual/ffmpeg ) + lzo? ( dev-libs/lzo ) + openal? ( media-libs/openal ) + opengl? ( virtual/opengl ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-sound/pulseaudio ) + " +DEPEND="${RDEPEND} + app-arch/zip + media-gfx/nvidia-cg-toolkit + media-libs/freetype + media-libs/libsoundtouch + >=sys-devel/gcc-4.6.0 + x11-libs/wxGTK:2.9 + " + +src_prepare() { + + version_is_at_least 4.6.0 $(gcc-fullversion) || die "${PN} needs >=gcc-4.6.0 set to compile." + + # Remove automatic dependencies to prevent building without flags enabled. + if use !alsa; then + sed -i -e '^/include(FindALSA/d' CMakeLists.txt || die + fi + if use !ao; then + sed -i -e '/^check_lib(AO/d' CMakeLists.txt || die + fi + if use !bluetooth; then + sed -i -e '/^check_lib(BLUEZ/d' CMakeLists.txt || die + fi + if use !openal; then + sed -i -e '/^include(FindOpenAL/d' CMakeLists.txt || die + fi + if use !portaudio; then + sed -i -e '/CMAKE_REQUIRED_LIBRARIES portaudio/d' CMakeLists.txt || die + fi + if use !pulseaudio; then + sed -i -e '/^check_lib(PULSEAUDIO/d' CMakeLists.txt || die + fi + + # Remove ALL the bundled libraries, aside from: + # - SOIL: The sources are not public. + # - Bochs-disasm: Don't know what it is. + # - CLRun: Part of OpenCL + mv Externals/SOIL . || die + mv Externals/Bochs_disasm . || die + mv Externals/CLRun . || die + rm -r Externals/* || die + mv CLRun Externals || die + mv Bochs_disasm Externals || die + mv SOIL Externals || die +} + +src_configure() { + + 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_install() { + + cmake-utils_src_install + + dodoc Readme.txt + if use doc; then + doins -r doc + 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 +} diff --git a/games-emulation/dolphin/metadata.xml b/games-emulation/dolphin/metadata.xml new file mode 100644 index 000000000000..f71fb1631033 --- /dev/null +++ b/games-emulation/dolphin/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<longdescription lang="en"> +Dolphin is a Gamecube and Wii emulator. Most games run perfectly or with minor +bugs. Games are playable at HD quality, with 1080p and more. +</longdescription> + <maintainer> + <email>twitch153@gentoo.org</email> + <name>Devan Franchini</name> + </maintainer> +</pkgmetadata> |