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