1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils cmake-utils qt4-r2 git-r3
9 DESCRIPTION="A PSP emulator written in C++."
10 HOMEPAGE="http://www.ppsspp.org/"
11 EGIT_REPO_URI="git://github.com/hrydgard/${PN}.git"
16 KEYWORDS="~amd64 ~x86"
37 dev-qt/qt-mobility[multimedia]
46 dev-qt/qt-mobility[multimedia]
54 cd "${WORKDIR}"/"${P}"/Qt || die
57 cd "${WORKDIR}"/"${P}"/Qt || die
63 epatch "$FILESDIR"/ppsspp-cmake.patch
64 epatch "$FILESDIR"/ppsspp-ffmpeg-x86_64.patch
65 epatch "$FILESDIR"/ppsspp-ffmpeg-x86.patch
66 epatch "$FILESDIR"/ppsspp-qt.patch
68 cd "${WORKDIR}"/"${P}"/Qt || die
71 cd "${WORKDIR}"/"${P}"/Qt || die
74 cmake-utils_src_prepare
80 cd "${WORKDIR}"/"${P}"/Qt || die
82 eqmake4 "${WORKDIR}"/"${P}"/Qt/PPSSPPQt.pro
84 cd "${WORKDIR}"/"${P}"/Qt || die
86 eqmake5 "${WORKDIR}"/"${P}"/Qt/PPSSPPQt.pro
88 cmake-utils_src_configure
94 cd "${WORKDIR}"/"${P}"/Qt || die
97 cd "${WORKDIR}"/"${P}"/Qt || die
100 cmake-utils_src_compile
107 newexe "${WORKDIR}"/"${P}"/Qt/ppsspp ppsspp
109 exeinto /usr/games/bin
110 newexe "${WORKDIR}"/"${P}"/Qt/ppsspp ppsspp
113 dobin "${FILESDIR}"/ppsspp
114 exeinto /usr/share/games/"${PN}"
115 doexe "${WORKDIR}"/"${P}"_build/PPSSPPSDL
116 insinto /usr/share/games/"${PN}"
117 doins -r "${WORKDIR}"/"${P}"_build/assets
118 doins -r "${WORKDIR}"/"${P}"/lang
120 insinto /usr/share/icons/
121 newins "${WORKDIR}"/"${P}"/source_assets/image/icon_regular_72.png ppsspp-icon.png
122 domenu "${FILESDIR}"/ppsspp.desktop
126 elog "Remember, in order to play games, you have to "
127 elog "be in the 'games' group. "
128 elog "Just run 'gpasswd -a <USER> games', then have <USER> re-login. "