Gentoo Archives: gentoo-commits

From: Vicente Olivert Riera <vincent@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/vincent:master commit in: games-emulation/pcsx2/
Date: Tue, 29 Apr 2014 18:34:22
Message-Id: 1398796377.446fe60e386b2cb6e6fe7cac4d09592ed7281bbb.vincent@gentoo
1 commit: 446fe60e386b2cb6e6fe7cac4d09592ed7281bbb
2 Author: Vicente Olivert Riera <vincent <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 29 18:32:57 2014 +0000
4 Commit: Vicente Olivert Riera <vincent <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 29 18:32:57 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/vincent.git;a=commit;h=446fe60e
7
8 Add pcsx2 live ebuild
9
10 Signed-off-by: Vicente Olivert Riera <vincent <AT> gentoo.org>
11
12 ---
13 games-emulation/pcsx2/pcsx2-9999.ebuild | 97 +++++++++++++++++++++++++++++++++
14 1 file changed, 97 insertions(+)
15
16 diff --git a/games-emulation/pcsx2/pcsx2-9999.ebuild b/games-emulation/pcsx2/pcsx2-9999.ebuild
17 new file mode 100644
18 index 0000000..3927d1f
19 --- /dev/null
20 +++ b/games-emulation/pcsx2/pcsx2-9999.ebuild
21 @@ -0,0 +1,97 @@
22 +# Copyright 1999-2014 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Header: $
25 +
26 +EAPI=5
27 +
28 +inherit cmake-utils git-r3 wxwidgets games
29 +
30 +
31 +DESCRIPTION="A PlayStation 2 emulator"
32 +HOMEPAGE="http://www.pcsx2.net"
33 +EGIT_REPO_URI="git://github.com/PCSX2/pcsx2.git"
34 +
35 +LICENSE="GPL-3"
36 +SLOT="0"
37 +KEYWORDS="-* ~x86 ~amd64"
38 +
39 +DEPEND="dev-cpp/sparsehash
40 + media-libs/alsa-lib
41 + media-libs/glew
42 + media-libs/libsdl
43 + media-libs/libsoundtouch
44 + media-libs/portaudio
45 + sys-libs/zlib
46 + virtual/jpeg
47 + virtual/opengl
48 + x11-libs/gtk+:2
49 + x11-libs/libICE
50 + x11-libs/libX11
51 + x11-libs/libXext
52 + x11-libs/wxGTK:2.8[X]
53 + x86? (
54 + dev-libs/libaio
55 + media-gfx/nvidia-cg-toolkit
56 + )
57 + amd64? (
58 + app-emulation/emul-linux-x86-baselibs
59 + app-emulation/emul-linux-x86-opengl
60 + app-emulation/emul-linux-x86-xlibs
61 + app-emulation/emul-linux-x86-gtklibs
62 + app-emulation/emul-linux-x86-sdl
63 + app-emulation/emul-linux-x86-soundlibs
64 + app-emulation/emul-linux-x86-libsoundtouch
65 + app-emulation/emul-linux-x86-wxGTK:2.8
66 + >=dev-libs/libaio-0.3.109-r4[multilib]
67 + >=media-gfx/nvidia-cg-toolkit-3.1[multilib]
68 + )"
69 +RDEPEND="${DEPEND}"
70 +
71 +src_unpack() {
72 + git-r3_src_unpack
73 + cd "${S}"
74 +}
75 +
76 +src_prepare() {
77 + cmake-utils_src_prepare
78 +}
79 +
80 +src_configure() {
81 + use amd64 && local ABI="x86"
82 +
83 + local wxgtk_config=""
84 + local cg_config=""
85 + local mylibpath=""
86 +
87 + if use amd64 ; then
88 + mylibpath="/usr/$(get_libdir)"
89 + wxgtk_config="-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-2.8-32"
90 + cg_config="-DCG_LIBRARY=/opt/nvidia-cg-toolkit/lib32/libCg.so
91 + -DCG_GL_LIBRARY=/opt/nvidia-cg-toolkit/lib32/libCgGL.so"
92 + else
93 + mylibpath="/usr/$(get_libdir)"
94 + fi
95 +
96 + mycmakeargs="-DPACKAGE_MODE=1
97 + -DCMAKE_VERBOSE_MAKEFILE=TRUE
98 + -DCMAKE_INSTALL_PREFIX=/usr
99 + -DCMAKE_LIBRARY_PATH=${mylibpath}
100 + -DBUILD_REPLAY_LOADERS=FALSE
101 + ${wxgtk_config}
102 + ${cg_config}"
103 +
104 + cmake-utils_src_configure
105 +}
106 +
107 +src_compile() {
108 + cmake-utils_src_compile
109 +}
110 +
111 +src_install() {
112 + cmake-utils_src_install
113 +
114 + dogamesbin "${D}usr/bin/${PN}"
115 + rm "${D}usr/bin/${PN}" || die "rm failed"
116 +
117 + prepgamesdirs
118 +}