-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games-emulation/ppsspp-libretro: Version bump, #107
- Loading branch information
Showing
1 changed file
with
71 additions
and
0 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
games-emulation/ppsspp-libretro/ppsspp-libretro-1.0_pre20180327.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
|
||
LIBRETRO_REPO_NAME="libretro/${PN//-libretro}" | ||
LIBRETRO_COMMIT_SHA="29de4b5a18de294a4f73f87515dd5b7290d00320" | ||
inherit libretro-core | ||
|
||
DESCRIPTION="libretro implementation of PPSSPP. (PlayStation Portable/PSP)" | ||
HOMEPAGE="https://github.com/libretro/ppsspp" | ||
KEYWORDS="~amd64 ~x86 ~arm" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
IUSE="gles2" | ||
|
||
DEPEND="x11-libs/libICE | ||
sys-libs/zlib | ||
x11-libs/libXt | ||
x11-libs/libXext | ||
media-libs/mesa | ||
gles2? ( media-libs/mesa[gles2] ) | ||
gles2? ( dev-libs/wayland ) | ||
!games-emulation/psp-assets" | ||
RDEPEND="${DEPEND} | ||
games-emulation/libretro-info" | ||
|
||
S=${S}/libretro | ||
|
||
ASSETS_DIR=${LIBRETRO_DATA_DIR}/PPSSPP | ||
|
||
src_prepare() { | ||
libretro-core_src_prepare | ||
#fixing ARCH detection | ||
sed -i Makefile \ | ||
-e 's:$(ARCH):$(REAL_ARCH):' \ | ||
-e 's:ARCH = $(shell uname -m):REAL_ARCH = $(shell uname -m):' \ | ||
|| die '"sed" failed' | ||
sed -i Makefile.common \ | ||
-e 's:ifeq ($(WITH_DYNAREC), arm):ifneq (,$(findstring arm,$(WITH_DYNAREC))):' \ | ||
|| die '"sed" failed' | ||
} | ||
|
||
src_compile() { | ||
use gles2 && append-ldflags -lEGL | ||
myemakeargs=( | ||
$(usex gles2 "GLES=1" "") | ||
) | ||
libretro-core_src_compile | ||
} | ||
|
||
src_install() { | ||
dodir ${ASSETS_DIR} | ||
cp -R "${S}"/../assets/* "${D}${ASSETS_DIR}" || die "Install failed!" | ||
libretro-core_src_install | ||
} | ||
|
||
pkg_postinst() { | ||
ewarn "" | ||
ewarn "You need to symlink \"${ASSETS_DIR}\"" | ||
ewarn "to the \"system_directory/\" directory of your user." | ||
ewarn "As retroarch user:" | ||
ewarn "When upgrading from old assets:" | ||
ewarn "\$ rm -r ~/.local/share/retroarch/system/PPSSPP/" | ||
ewarn "To symlink the assets:" | ||
ewarn "\$ mkdir -p ~/.local/share/retroarch/system" | ||
ewarn "\$ ln -s ${ASSETS_DIR} ~/.local/share/retroarch/system/" | ||
ewarn "" | ||
ewarn "" | ||
} |