Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 619104
Collapse All | Expand All

(-)/usr/portage/games-emulation/ppsspp/ppsspp-1.4.ebuild (-4 / +17 lines)
Lines 9-14 Link Here
9
HOMEPAGE="https://www.ppsspp.org/"
9
HOMEPAGE="https://www.ppsspp.org/"
10
SRC_URI="
10
SRC_URI="
11
	https://github.com/hrydgard/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
11
	https://github.com/hrydgard/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
12
	!system-ffmpeg? ( https://github.com/hrydgard/ppsspp-ffmpeg/archive/a2e98d7ba4c7c5cac08608732c3058cb46e3e0ef.tar.gz -> ${P}-ffmpeg.tar.gz )
12
	https://github.com/hrydgard/ppsspp-lang/archive/ed0bbfb389da213bd891d179d1d92e95b8f05e43.tar.gz -> ${P}-assets_lang.tar.gz
13
	https://github.com/hrydgard/ppsspp-lang/archive/ed0bbfb389da213bd891d179d1d92e95b8f05e43.tar.gz -> ${P}-assets_lang.tar.gz
13
	https://github.com/hrydgard/pspautotests/archive/905c3018d01af9dfb511c87e65e07a49257a33ac.tar.gz -> ${P}-pspautotests.tar.gz
14
	https://github.com/hrydgard/pspautotests/archive/905c3018d01af9dfb511c87e65e07a49257a33ac.tar.gz -> ${P}-pspautotests.tar.gz
14
	https://github.com/hrydgard/minidx9/archive/7751cf73f5c06f1be21f5f31c3e2d9a7bacd3a93.tar.gz -> ${P}-dx9sdk.tar.gz
15
	https://github.com/hrydgard/minidx9/archive/7751cf73f5c06f1be21f5f31c3e2d9a7bacd3a93.tar.gz -> ${P}-dx9sdk.tar.gz
Lines 21-35 Link Here
21
LICENSE="GPL-2"
22
LICENSE="GPL-2"
22
SLOT="0"
23
SLOT="0"
23
KEYWORDS="~amd64 ~x86"
24
KEYWORDS="~amd64 ~x86"
24
IUSE="+qt5 sdl headless libav"
25
IUSE="+qt5 sdl headless libav +system-ffmpeg"
25
REQUIRED_USE="
26
REQUIRED_USE="
26
	!headless? ( || ( qt5 sdl ) )
27
	!headless? ( || ( qt5 sdl ) )
27
	?? ( qt5 sdl )
28
	?? ( qt5 sdl )
28
"
29
"
29
30
30
RDEPEND="sys-libs/zlib
31
RDEPEND="sys-libs/zlib
31
	!libav? ( media-video/ffmpeg:= )
32
	system-ffmpeg? (
32
	libav? ( media-video/libav:= )
33
		!libav? ( media-video/ffmpeg:= )
34
		libav? ( media-video/libav:= )
35
	)
33
	sdl? (
36
	sdl? (
34
		media-libs/libsdl
37
		media-libs/libsdl
35
		media-libs/libsdl2
38
		media-libs/libsdl2
Lines 58-63 Link Here
58
	unpack "${P}.tar.gz"
61
	unpack "${P}.tar.gz"
59
	cd "${S}" || die
62
	cd "${S}" || die
60
	local i list=( assets_lang pspautotests dx9sdk ext_glslang ext_armips ext_SPIRV-Cross ext_armips_ext_tinyformat )
63
	local i list=( assets_lang pspautotests dx9sdk ext_glslang ext_armips ext_SPIRV-Cross ext_armips_ext_tinyformat )
64
	if ! use system-ffmpeg; then
65
		list+=( ffmpeg )
66
	fi
61
	for i in "${list[@]}"; do
67
	for i in "${list[@]}"; do
62
		tar xf "${DISTDIR}/${P}-${i}.tar.gz" --strip-components 1 -C "${i//_//}" || die "Failed to unpack ${P}-${i}.tar.gz"
68
		tar xf "${DISTDIR}/${P}-${i}.tar.gz" --strip-components 1 -C "${i//_//}" || die "Failed to unpack ${P}-${i}.tar.gz"
63
	done
69
	done
Lines 66-72 Link Here
66
src_configure() {
72
src_configure() {
67
	local mycmakeargs=(
73
	local mycmakeargs=(
68
		-DUSING_QT_UI=$(usex qt5)
74
		-DUSING_QT_UI=$(usex qt5)
69
		-DUSE_SYSTEM_FFMPEG=ON
75
		-DUSE_SYSTEM_FFMPEG=$(usex system-ffmpeg)
70
		-DHEADLESS=$(usex headless)
76
		-DHEADLESS=$(usex headless)
71
		)
77
		)
72
	cmake-utils_src_configure
78
	cmake-utils_src_configure
Lines 85-87 Link Here
85
		make_desktop_entry "PPSSPP$(usex qt5 Qt SDL)" "PPSSPP ($(usex qt5 Qt SDL))" "${PN}" "Game"
91
		make_desktop_entry "PPSSPP$(usex qt5 Qt SDL)" "PPSSPP ($(usex qt5 Qt SDL))" "${PN}" "Game"
86
	fi
92
	fi
87
}
93
}
94
95
pkg_postinst() {
96
	if use system-ffmpeg; then
97
		ewarn "system-ffmpeg USE flag is enabled, some bugs might arise due to it."
98
		ewarn "See https://github.com/hrydgard/ppsspp/issues/9026 for more informations."
99
	fi
100
}

Return to bug 619104