blob: 5ba3d03fd9f9be0e3bc4093ea446ba7a8550791c (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake xdg
DESCRIPTION="Nintendo Entertainment System (NES) emulator"
HOMEPAGE="https://github.com/punesemu/puNES"
SRC_URI="https://github.com/punesemu/puNES/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/puNES-${PV}"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="X cg ffmpeg"
RDEPEND="
dev-qt/qtbase:6[gui,network,opengl,widgets]
dev-qt/qtsvg:6
media-libs/alsa-lib
media-libs/libglvnd[X?]
virtual/glu
virtual/udev
X? (
x11-libs/libX11
x11-libs/libXrandr
)
cg? ( media-gfx/nvidia-cg-toolkit )
ffmpeg? ( media-video/ffmpeg:= )
"
DEPEND="
${RDEPEND}
X? ( x11-base/xorg-proto )"
BDEPEND="
virtual/pkgconfig
dev-qt/qttools[linguist]
"
PATCHES=(
"${FILESDIR}/punes-0.111-FULLSCREEN_RESFREQ-fix.patch"
"${FILESDIR}/punes-0.111-qt6.7_Q_OBJECT.patch"
)
src_configure() {
local mycmakeargs=(
-DENABLE_GIT_INFO=OFF
-DENABLE_QT6_LIBS=ON
-DDISABLE_PORTABLE_MODE=OFF
-DENABLE_FFMPEG=$(usex ffmpeg)
-DENABLE_FULLSCREEN_RESFREQ=$(usex X)
-DENABLE_OPENGL_CG=$(usex cg)
)
cmake_src_configure
}
|