aboutsummaryrefslogtreecommitdiffstats
path: root/games-emulation/simple64-input-raphnetraw/simple64-input-raphnetraw-9999.ebuild
blob: 66990e9c928309d0f1b85a5afdd8144ce631c68b (plain) (blame)
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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Accurate Nintendo 64 Emulator, raphnetraw input plugin"
HOMEPAGE="https://simple64.github.io/"

if [[ ${PV} == 9999 ]] ; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/simple64/simple64-input-raphnetraw.git"
	EGIT_BRANCH="simple64"
else
	_git_commit="0e64669899410c6ceb183acb3ef94920dc028180"
	SRC_URI="https://github.com/simple64/simple64-input-raphnetraw/archive/${_git_commit}.tar.gz -> ${PN}-${_git_commit}.tar.gz"
	KEYWORDS="~amd64 ~x86"
fi

LICENSE="GPL-2"
SLOT="0/${PV}"
IUSE=""

DEPEND="
	games-emulation/simple64-core:=
"
RDEPEND="${DEPEND}"

src_prepare() {
	sed -i 's|include_directories(../mupen64plus-core/src/api)|include_directories(/usr/include/mupen64plus)|' CMakeLists.txt
	sed -i 's|#include "config.h"|#include "m64p_config.h"|' src/plugin_front.c
	cmake_src_prepare
}

src_configure() {
	cmake_src_configure
}

src_install() {
	 insinto "/usr/$(get_libdir)/mupen64plus"
	 doins "${BUILD_DIR}/simple64-input-raphnetraw.so"
}