Line
Link Here
|
0 |
-- a/games-emulation/pcsx2/pcsx2-9999.ebuild |
0 |
++ b/games-emulation/pcsx2/pcsx2-9999.ebuild |
Lines 1-7
Link Here
|
1 |
# Copyright 1999-2022 Gentoo Authors |
1 |
# Copyright 1999-2022 Gentoo Authors |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
EAPI=7 |
4 |
EAPI=8 |
5 |
|
5 |
|
6 |
WX_GTK_VER="3.0-gtk3" |
6 |
WX_GTK_VER="3.0-gtk3" |
7 |
inherit cmake fcaps flag-o-matic git-r3 toolchain-funcs wxwidgets |
7 |
inherit cmake fcaps flag-o-matic git-r3 toolchain-funcs wxwidgets |
Lines 10-18
DESCRIPTION="A PlayStation 2 emulator"
Link Here
|
10 |
HOMEPAGE="https://pcsx2.net/" |
10 |
HOMEPAGE="https://pcsx2.net/" |
11 |
EGIT_REPO_URI="https://github.com/PCSX2/${PN}.git" |
11 |
EGIT_REPO_URI="https://github.com/PCSX2/${PN}.git" |
12 |
EGIT_SUBMODULES=( |
12 |
EGIT_SUBMODULES=( |
13 |
3rdparty/glslang/glslang # needs StandAlone/ResourceLimits.h |
|
|
14 |
3rdparty/imgui/imgui # not made to be system-wide |
13 |
3rdparty/imgui/imgui # not made to be system-wide |
15 |
3rdparty/vulkan-headers # to keep in sync with glslang |
|
|
16 |
) |
14 |
) |
17 |
|
15 |
|
18 |
LICENSE="GPL-3 Apache-2.0 OFL-1.1" # TODO: needs review for a full list |
16 |
LICENSE="GPL-3 Apache-2.0 OFL-1.1" # TODO: needs review for a full list |
Lines 30-35
RDEPEND="
Link Here
|
30 |
dev-libs/libchdr |
28 |
dev-libs/libchdr |
31 |
>=dev-libs/libfmt-7.1.3:= |
29 |
>=dev-libs/libfmt-7.1.3:= |
32 |
dev-libs/libxml2:2 |
30 |
dev-libs/libxml2:2 |
|
|
31 |
dev-util/glslang |
33 |
media-libs/alsa-lib |
32 |
media-libs/alsa-lib |
34 |
media-libs/cubeb |
33 |
media-libs/cubeb |
35 |
media-libs/freetype |
34 |
media-libs/freetype |
Lines 80-85
src_prepare() {
Link Here
|
80 |
|
79 |
|
81 |
# pulseaudio is only used for usb-mic, not audio output |
80 |
# pulseaudio is only used for usb-mic, not audio output |
82 |
use pulseaudio || > cmake/FindPulseAudio.cmake || die |
81 |
use pulseaudio || > cmake/FindPulseAudio.cmake || die |
|
|
82 |
|
83 |
# unbundle glslang |
84 |
sed -i -e '/#include "StandAlone/{s:"StandAlone:<glslang/Include:;s/"/>/}' \ |
85 |
-e '/#include "SPIRV/{s:"SPIRV:<glslang/SPIRV:;s/"/>/}' \ |
86 |
-e '/#include "glslang/{s:":<:;s/"/>/;s:$:\n#include "common/Vulkan/DefaultTBuiltInResource.h":}' \ |
87 |
-e 's/glslang::DefaultTBuiltInResource/DefaultTBuiltInResource/' \ |
88 |
common/Vulkan/ShaderCompiler.cpp || die |
89 |
sed -i '/USE_VULKAN/,/endif()/d' cmake/SearchForStuff.cmake || die |
90 |
cp "${FILESDIR}"/DefaultTBuiltInResource.h common/Vulkan/ || die |
91 |
sed -i -e '/USE_VULKAN)/afind_library(GLSLANG libglslang.so)\nfind_library(SPIRV libSPIRV.so)' \ |
92 |
-e 's/Vulkan-Headers glslang/${GLSLANG} ${SPIRV}/' \ |
93 |
common/CMakeLists.txt || die |
83 |
} |
94 |
} |
84 |
|
95 |
|
85 |
src_configure() { |
96 |
src_configure() { |