mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
Retroarch: bump version to 1.8.6 (#4951)
This commit is contained in:
@@ -1,25 +0,0 @@
|
|||||||
From 3999164cb9613d4892b767dea0c5d9690f4a1ecf Mon Sep 17 00:00:00 2001
|
|
||||||
From: Crestwave <crest.wave@yahoo.com>
|
|
||||||
Date: Sun, 15 Mar 2020 20:36:38 +0800
|
|
||||||
Subject: (Haiku) Use GL1 video driver by default
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/configuration.c b/configuration.c
|
|
||||||
index c339e9e..16174c6 100644
|
|
||||||
--- a/configuration.c
|
|
||||||
+++ b/configuration.c
|
|
||||||
@@ -322,9 +322,9 @@ enum midi_driver_enum
|
|
||||||
static enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_METAL;
|
|
||||||
#elif defined(HAVE_VITA2D)
|
|
||||||
static enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_VITA2D;
|
|
||||||
-#elif (defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) || defined(__CELLOS_LV2__)) && !defined(__WINRT__)
|
|
||||||
+#elif (defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) || defined(__CELLOS_LV2__)) && !defined(__WINRT__) && !defined(__HAIKU__)
|
|
||||||
static enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_GL;
|
|
||||||
-#elif defined(HAVE_OPENGL_CORE)
|
|
||||||
+#elif defined(HAVE_OPENGL_CORE) && !defined(__HAIKU__)
|
|
||||||
static enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_GL_CORE;
|
|
||||||
#elif defined(HAVE_OPENGL1)
|
|
||||||
static enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_GL1;
|
|
||||||
--
|
|
||||||
2.24.1
|
|
||||||
|
|
||||||
@@ -1,126 +0,0 @@
|
|||||||
SUMMARY="The reference frontend of libretro"
|
|
||||||
DESCRIPTION="RetroArch is a frontend for emulators, game engines and media \
|
|
||||||
players. It enables you to run classic games on a wide range of computers and \
|
|
||||||
consoles through its slick graphical interface. It has advanced features like \
|
|
||||||
shaders, netplay, rewinding, next-frame response times, and more!"
|
|
||||||
HOMEPAGE="https://www.retroarch.com/"
|
|
||||||
COPYRIGHT="2010-2020 The RetroArch Team"
|
|
||||||
LICENSE="GNU GPL v3"
|
|
||||||
REVISION="1"
|
|
||||||
SOURCE_URI="https://github.com/libretro/RetroArch/archive/v$portVersion.tar.gz"
|
|
||||||
CHECKSUM_SHA256="027e9eb243488da1b8532116eab2a79932fcf2dcb96bcc4be9a12b329a2a9c52"
|
|
||||||
SOURCE_FILENAME="retroarch-$portVersion.tar.gz"
|
|
||||||
SOURCE_DIR="RetroArch-$portVersion"
|
|
||||||
PATCHES="retroarch-$portVersion.patchset"
|
|
||||||
ADDITIONAL_FILES="retroarch.rdef.in"
|
|
||||||
|
|
||||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
|
||||||
commandBinDir=$binDir
|
|
||||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
||||||
SECONDARY_ARCHITECTURES="x86"
|
|
||||||
commandBinDir=$prefix/bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
GLOBAL_WRITABLE_FILES="
|
|
||||||
$relativeSettingsDir/retroarch.cfg auto-merge
|
|
||||||
"
|
|
||||||
USER_SETTINGS_FILES="
|
|
||||||
$relativeSettingsDir/retroarch/retroarch.cfg template \
|
|
||||||
$sysconfDir/retroarch.cfg
|
|
||||||
"
|
|
||||||
|
|
||||||
PROVIDES="
|
|
||||||
retroarch$secondaryArchSuffix = $portVersion
|
|
||||||
app:retroarch = $portVersion
|
|
||||||
cmd:retroarch_cg2glsl
|
|
||||||
"
|
|
||||||
REQUIRES="
|
|
||||||
haiku$secondaryArchSuffix
|
|
||||||
retroarch_assets
|
|
||||||
cmd:python3
|
|
||||||
lib:libavcodec$secondaryArchSuffix
|
|
||||||
lib:libavdevice$secondaryArchSuffix
|
|
||||||
lib:libavformat$secondaryArchSuffix
|
|
||||||
lib:libavutil$secondaryArchSuffix
|
|
||||||
lib:libGL$secondaryArchSuffix
|
|
||||||
lib:libsdl2_2.0$secondaryArchSuffix
|
|
||||||
lib:libswresample$secondaryArchSuffix
|
|
||||||
lib:libswscale$secondaryArchSuffix
|
|
||||||
lib:libz$secondaryArchSuffix
|
|
||||||
"
|
|
||||||
|
|
||||||
BUILD_REQUIRES="
|
|
||||||
haiku${secondaryArchSuffix}_devel
|
|
||||||
devel:libavcodec$secondaryArchSuffix
|
|
||||||
devel:libavdevice$secondaryArchSuffix
|
|
||||||
devel:libavformat$secondaryArchSuffix
|
|
||||||
devel:libavutil$secondaryArchSuffix
|
|
||||||
devel:libGL$secondaryArchSuffix
|
|
||||||
devel:libsdl2_2.0$secondaryArchSuffix
|
|
||||||
devel:libswresample$secondaryArchSuffix
|
|
||||||
devel:libswscale$secondaryArchSuffix
|
|
||||||
devel:libz$secondaryArchSuffix
|
|
||||||
"
|
|
||||||
BUILD_PREREQUIRES="
|
|
||||||
cmd:gcc$secondaryArchSuffix
|
|
||||||
cmd:make
|
|
||||||
cmd:pkg_config$secondaryArchSuffix
|
|
||||||
cmd:which
|
|
||||||
"
|
|
||||||
|
|
||||||
defineDebugInfoPackage retroarch$secondaryArchSuffix \
|
|
||||||
"$appsDir/RetroArch"
|
|
||||||
|
|
||||||
PATCH()
|
|
||||||
{
|
|
||||||
libretroDir="`finddir B_SYSTEM_DIRECTORY`/$relativeAddOnsDir/libretro"
|
|
||||||
assetsDir="`finddir B_SYSTEM_DATA_DIRECTORY`/retroarch/assets"
|
|
||||||
cacheDir="`finddir B_SYSTEM_CACHE_DIRECTORY`/retroarch"
|
|
||||||
contentDir="`finddir B_SYSTEM_VAR_DIRECTORY`/retroarch"
|
|
||||||
coreAssetsDir="`finddir B_SYSTEM_VAR_DIRECTORY`/retroarch/assets"
|
|
||||||
sed -i \
|
|
||||||
-e "s|^# \(libretro_directory =\)|\1 \"$libretroDir/\"|;" \
|
|
||||||
-e "s|^# \(libretro_info_path =\)|\1 \"$libretroDir/\"|;" \
|
|
||||||
-e "s|^# \(assets_directory =\)|\1 \"$assetsDir/\"|;" \
|
|
||||||
-e "s|^# \(cache_directory =\)|\1 \"$cacheDir/\"|;" \
|
|
||||||
-e "s|^# \(content_directory =\)|\1 \"$contentDir/\"|;" \
|
|
||||||
-e "s|^# \(core_assets_directory =\)|\1 \"$coreAssetsDir/\"|;" \
|
|
||||||
retroarch.cfg
|
|
||||||
}
|
|
||||||
|
|
||||||
BUILD()
|
|
||||||
{
|
|
||||||
./configure --prefix="$prefix" --sysconfdir="$sysconfDir" \
|
|
||||||
--bindir="$commandBinDir" --datarootdir="$dataRootDir" \
|
|
||||||
--docdir="$docDir" --mandir="$manDir" \
|
|
||||||
--with-assets_dir="$dataDir" --disable-discord
|
|
||||||
make $jobArgs
|
|
||||||
}
|
|
||||||
|
|
||||||
INSTALL()
|
|
||||||
{
|
|
||||||
make install
|
|
||||||
|
|
||||||
install -m 0755 -d "$appsDir"
|
|
||||||
mv "$commandBinDir/retroarch" "$appsDir/RetroArch"
|
|
||||||
|
|
||||||
install -m 0755 -d "$dataDir"/retroarch
|
|
||||||
install -m 0644 -T retroarch.cfg "$settingsDir"/retroarch.cfg
|
|
||||||
install -m 0644 -T retroarch.cfg "$dataDir"/retroarch/retroarch.cfg.default
|
|
||||||
|
|
||||||
local APP_SIGNATURE="application/x-vnd.RetroArch"
|
|
||||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
||||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
||||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
||||||
sed \
|
|
||||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
||||||
-e "s|@MAJOR@|$MAJOR|" \
|
|
||||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
||||||
-e "s|@MINOR@|$MINOR|" \
|
|
||||||
$portDir/additional-files/retroarch.rdef.in > retroarch.rdef
|
|
||||||
|
|
||||||
addResourcesToBinaries retroarch.rdef \
|
|
||||||
"$appsDir"/RetroArch
|
|
||||||
|
|
||||||
addAppDeskbarSymlink "$appsDir"/RetroArch
|
|
||||||
}
|
|
||||||
@@ -4,11 +4,11 @@ players. It enables you to run classic games on a wide range of computers and \
|
|||||||
consoles through its slick graphical interface. It has advanced features like \
|
consoles through its slick graphical interface. It has advanced features like \
|
||||||
shaders, netplay, rewinding, next-frame response times, and more!"
|
shaders, netplay, rewinding, next-frame response times, and more!"
|
||||||
HOMEPAGE="https://www.retroarch.com/"
|
HOMEPAGE="https://www.retroarch.com/"
|
||||||
COPYRIGHT="2010-2018 The RetroArch Team"
|
COPYRIGHT="2010-2020 The RetroArch Team"
|
||||||
LICENSE="GNU GPL v3"
|
LICENSE="GNU GPL v3"
|
||||||
REVISION="2"
|
REVISION="1"
|
||||||
SOURCE_URI="https://github.com/libretro/RetroArch/archive/v$portVersion.tar.gz"
|
SOURCE_URI="https://github.com/libretro/RetroArch/archive/v$portVersion.tar.gz"
|
||||||
CHECKSUM_SHA256="f29b6dd9b18f874571803afac760b7fc99dc177dd079b38216b7576bd7d86dd4"
|
CHECKSUM_SHA256="fc4d239cf038066b9a0d866fbff3b6ae6e00a3a1fdfb9657cbc0ae093bc22394"
|
||||||
SOURCE_FILENAME="retroarch-$portVersion.tar.gz"
|
SOURCE_FILENAME="retroarch-$portVersion.tar.gz"
|
||||||
SOURCE_DIR="RetroArch-$portVersion"
|
SOURCE_DIR="RetroArch-$portVersion"
|
||||||
ADDITIONAL_FILES="retroarch.rdef.in"
|
ADDITIONAL_FILES="retroarch.rdef.in"
|
||||||
Reference in New Issue
Block a user