blob: 1928fac264bc86cc3e81ce40fa10b0f680710f73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
WX_GTK_VER="2.8"
inherit games cmake-utils subversion
DESCRIPTION="cdvdlinux plugin for pcsx2"
HOMEPAGE="http://www.pcsx2.net"
ESVN_REPO_URI="http://pcsx2.googlecode.com/svn/trunk"
ESVN_PROJECT="pcsx2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="debug"
if use amd64; then
ABI="x86"
fi
if use debug; then
CMAKE_BUILD_TYPE="Debug"
else
CMAKE_BUILD_TYPE="Release"
fi
DEPEND=""
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
}
src_configure() {
mycmakeargs="
-DPACKAGE_MODE=1
-DPLUGIN_DIR=$(games_get_libdir)/pcsx2
-DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
-DCMAKE_INSTALL_PREFIX=/usr
"
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install DESTDIR=${D}
prepgamesdirs
}
|