summaryrefslogtreecommitdiff
path: root/libre/retroarch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/retroarch')
-rw-r--r--libre/retroarch/PKGBUILD69
-rw-r--r--libre/retroarch/libre.patch248
2 files changed, 317 insertions, 0 deletions
diff --git a/libre/retroarch/PKGBUILD b/libre/retroarch/PKGBUILD
new file mode 100644
index 000000000..3d5dfecfb
--- /dev/null
+++ b/libre/retroarch/PKGBUILD
@@ -0,0 +1,69 @@
+# $Id: PKGBUILD 173594 2016-05-03 18:59:31Z alucryd $
+# Maintainer (Arch): Maxime Gauduin <alucryd@archlinux.org>
+# Contributor (Arch): Themaister <maister@archlinux.us>
+# Contributor (Arch): lifning <definelightning@gmail.com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=retroarch
+pkgver=1.3.4
+pkgrel=1.parabola1
+pkgdesc='Reference frontend for the libretro API, without nonfree software support, libretro-genesis-plus and libretro-snes9x recommendation'
+arch=('i686' 'x86_64')
+url='http://www.libretro.com/'
+license=('GPL')
+groups=('libretro')
+depends=('alsa-lib' 'glibc' 'libdrm' 'libgl' 'libpulse' 'libusb' 'libx11'
+ 'libxcb' 'libxext' 'libxinerama' 'libxkbcommon' 'libxv' 'libxxf86vm'
+ 'mesa' 'openal' 'python' 'sdl2' 'wayland' 'zlib'
+ 'libass.so' 'libavcodec.so' 'libavformat.so' 'libavutil.so'
+ 'libfreetype.so' 'libswresample.so' 'libswscale.so' 'libudev.so')
+optdepends=('libretro-desmume: Nintendo DS core'
+ 'libretro-gambatte: Nintendo Game Boy/Game Boy Color core'
+ 'libretro-genesis-plus: Sega Master System/Genesis/Game Gear/CD/32X core'
+ 'libretro-mgba: Nintendo Game Boy Advance core'
+ 'libretro-mupen64plus: Nintendo 64 core'
+ 'libretro-nestopia: Nintendo Entertainment System core'
+ 'libretro-pcsx-rearmed: Sony PlayStation core'
+ 'libretro-reicast: Sega Dreamcast core'
+ 'libretro-snes9x: Super Nintendo Entertainment System core'
+ 'libretro-yabause: Sega Saturn core'
+ 'libretro-overlays: Collection of overlays'
+ 'libretro-shaders: Collection of shaders'
+ 'retroarch-assets-xmb: XMB menu assets'
+ 'retroarch-autoconfig-udev: udev joypad autoconfig')
+backup=('etc/retroarch.cfg')
+source=("retroarch-${pkgver}.tar.gz::https://github.com/libretro/RetroArch/archive/v${pkgver}.tar.gz"
+ 'libre.patch')
+sha256sums=('a5733a0f4ad828afd00fa2a059deb6538939d46a2aefc4a566c30300a40efb1c'
+ '1df45fe1e42b2494c0906856d08648325c4e854252b87ad975e8fa33504b8949')
+
+prepare() {
+ cd RetroArch-${pkgver}
+
+ patch -p1 -i ${srcdir}/libre.patch
+}
+
+build() {
+ cd RetroArch-${pkgver}
+
+ ./configure \
+ --prefix='/usr' \
+ --disable-cg \
+ --disable-jack \
+ --disable-oss
+ make
+ make -C gfx/video_filters
+ make -C audio/audio_filters
+}
+
+package() {
+ cd RetroArch-${pkgver}
+
+ make DESTDIR="${pkgdir}" install
+
+ install -dm 755 "${pkgdir}"/usr/lib/retroarch/filters/{audio,video}
+ install -m 644 gfx/video_filters/*.{filt,so} "${pkgdir}"/usr/lib/retroarch/filters/video/
+ install -m 644 audio/audio_filters/*.{dsp,so} "${pkgdir}"/usr/lib/retroarch/filters/audio/
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/libre/retroarch/libre.patch b/libre/retroarch/libre.patch
new file mode 100644
index 000000000..244e3c58f
--- /dev/null
+++ b/libre/retroarch/libre.patch
@@ -0,0 +1,248 @@
+diff --git a/README.md b/README.md
+index d35f008..4f7b6c9 100644
+--- a/README.md
++++ b/README.md
+@@ -16,10 +16,6 @@ interface to include support for emulators and/or game engines. libretro is comp
+
+ [libretro API header](https://github.com/libretro/RetroArch/blob/master/libretro.h)
+
+-## Binaries
+-
+-Latest Windows binaries are currently hosted on the buildbot -(http://buildbot.libretro.com/).
+-
+ ## Support
+
+ To reach developers, either make an issue here on Github, make a thread on the [forum](http://www.libretro.com/forums/),
+diff --git a/config.def.h b/config.def.h
+index 673b15a..ed102bf 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -792,33 +792,33 @@ static const bool ui_companion_enable = false;
+
+ #if defined(ANDROID)
+ #if defined(ANDROID_ARM)
+-static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/armeabi-v7a/";
++static char buildbot_server_url[] = "";
+ #elif defined(ANDROID_X86)
+-static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/x86/";
++static char buildbot_server_url[] = "";
+ #else
+ static char buildbot_server_url[] = "";
+ #endif
+ #elif defined(IOS)
+-static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/ios/latest/";
++static char buildbot_server_url[] = "";
+ #elif defined(OSX)
+ #if defined(__x86_64__)
+-static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/osx/x86_64/latest/";
++static char buildbot_server_url[] = "";
+ #elif defined(__i386__) || defined(__i486__) || defined(__i686__)
+-static char buildbot_server_url[] = "http://bot.libretro.com/nightly/apple/osx/x86/latest/";
++static char buildbot_server_url[] = "";
+ #else
+-static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/osx/ppc/latest/";
++static char buildbot_server_url[] = "";
+ #endif
+ #elif defined(_WIN32) && !defined(_XBOX)
+ #if defined(__x86_64__)
+-static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/win-x86_64/latest/";
++static char buildbot_server_url[] = "";
+ #elif defined(__i386__) || defined(__i486__) || defined(__i686__)
+-static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/win-x86/latest/";
++static char buildbot_server_url[] = "";
+ #endif
+ #elif defined(__linux__)
+ #if defined(__x86_64__)
+-static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/linux/x86_64/latest/";
++static char buildbot_server_url[] = "";
+ #elif defined(__i386__) || defined(__i486__) || defined(__i686__)
+-static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/linux/x86/latest/";
++static char buildbot_server_url[] = "";
+ #else
+ static char buildbot_server_url[] = "";
+ #endif
+@@ -826,7 +826,7 @@ static char buildbot_server_url[] = "";
+ static char buildbot_server_url[] = "";
+ #endif
+
+-static char buildbot_assets_server_url[] = "http://buildbot.libretro.com/assets/";
++static char buildbot_assets_server_url[] = "";
+
+ #ifndef IS_SALAMANDER
+ #include "intl/intl.h"
+diff --git a/ctr/Makefile.cores b/ctr/Makefile.cores
+index 1888027..c2f4f01 100644
+--- a/ctr/Makefile.cores
++++ b/ctr/Makefile.cores
+@@ -30,19 +30,6 @@ else ifeq ($(LIBRETRO), nxengine)
+ APP_UNIQUE_ID = 0xBAC05
+ APP_ICON = ctr/assets/nxengine.png
+
+-else ifeq ($(LIBRETRO), genesis_plus_gx)
+- APP_TITLE = Genesis Plus GX Libretro
+- APP_PRODUCT_CODE = RARCH-GENPLUSGX
+- APP_UNIQUE_ID = 0xBAC06
+- APP_ICON = ctr/assets/genesis_plus_gx.png
+-
+-else ifeq ($(LIBRETRO), catsfc)
+- APP_TITLE = CATSFC Libretro
+- APP_PRODUCT_CODE = RARCH-CATSFC
+- APP_UNIQUE_ID = 0xBAC07
+- APP_ICON = ctr/assets/catsfc.png
+- APP_BANNER = ctr/assets/catsfc_banner.png
+-
+ else ifeq ($(LIBRETRO), mednafen_wswan)
+ APP_TITLE = Mednafen wswan Libretro
+ APP_PRODUCT_CODE = RARCH-M-WSWAN
+@@ -67,20 +54,6 @@ else ifeq ($(LIBRETRO), 2048)
+ APP_UNIQUE_ID = 0xBAC0B
+ APP_ICON = ctr/assets/2048.png
+
+-else ifeq ($(LIBRETRO), picodrive)
+- APP_TITLE = Picodrive Libretro
+- APP_PRODUCT_CODE = RARCH-PICODRIVE
+- APP_UNIQUE_ID = 0xBAC0C
+- APP_ICON = ctr/assets/picodrive.png
+- APP_BANNER = ctr/assets/picodrive_banner.png
+- APP_USE_SVCHAX = 1
+-
+-else ifeq ($(LIBRETRO), snes9x_next)
+- APP_TITLE = Snes9x Next Libretro
+- APP_PRODUCT_CODE = RARCH-SNES9XNEXT
+- APP_UNIQUE_ID = 0xBAC0D
+- APP_ICON = ctr/assets/snes9x_next.png
+-
+ else ifeq ($(LIBRETRO), mgba)
+ APP_TITLE = mGBA Libretro
+ APP_AUTHOR = Jeffrey Pfau
+@@ -95,35 +68,6 @@ else ifeq ($(LIBRETRO), quicknes)
+ APP_UNIQUE_ID = 0xBAC0F
+ APP_ICON = ctr/assets/quicknes.png
+
+-else ifeq ($(LIBRETRO), fb_alpha_neo)
+- APP_TITLE = Neo Geo (FB Alpha)
+- APP_AUTHOR = Team FB Alpha
+- APP_PRODUCT_CODE = RARCH-FBANEOGEO
+- APP_UNIQUE_ID = 0xBAC10
+- APP_ICON = ctr/assets/fb_alpha_neo.png
+- APP_SYSTEM_MODE = 80MB
+-
+-else ifeq ($(LIBRETRO), fb_alpha_cps1)
+- APP_TITLE = Final Burn Alpha - CPS-1
+- APP_AUTHOR = Team FB Alpha
+- APP_PRODUCT_CODE = RARCH-FBACPS1
+- APP_UNIQUE_ID = 0xBAC11
+- APP_ICON = ctr/assets/fb_alpha_cps1.png
+-
+-else ifeq ($(LIBRETRO), fb_alpha_cps2)
+- APP_TITLE = Final Burn Alpha - CPS-2
+- APP_AUTHOR = Team FB Alpha
+- APP_PRODUCT_CODE = RARCH-FBACPS2
+- APP_UNIQUE_ID = 0xBAC12
+- APP_ICON = ctr/assets/fb_alpha_cps2.png
+- APP_SYSTEM_MODE = 80MB
+-
+-else ifeq ($(LIBRETRO), catsfc_plus)
+- APP_TITLE = CATSFC Plus Libretro
+- APP_PRODUCT_CODE = RARCH-CATSFCPLUS
+- APP_UNIQUE_ID = 0xBAC13
+- APP_ICON = ctr/assets/catsfc_plus.png
+-
+ else ifeq ($(LIBRETRO), mednafen_pce_fast)
+ APP_TITLE = Mednafen/Beetle PCE FAST
+ APP_AUTHOR = Ryphecha
+@@ -139,47 +83,4 @@ else ifeq ($(LIBRETRO), pcsx_rearmed)
+ APP_ICON = ctr/assets/pcsx_rearmed.png
+ APP_USE_SVCHAX = 1
+
+-else ifeq ($(LIBRETRO), fmsx)
+- APP_TITLE = fMSX
+- APP_AUTHOR = Marat Fayzullin
+- APP_PRODUCT_CODE = RARCH-FMSX
+- APP_UNIQUE_ID = 0xBAC16
+- APP_ICON = ctr/assets/fmsx.png
+-
+-else ifeq ($(LIBRETRO), fb_alpha)
+- APP_TITLE = Final Burn Alpha
+- APP_AUTHOR = Team FB Alpha
+- APP_PRODUCT_CODE = RARCH-FBA
+- APP_UNIQUE_ID = 0xBAC17
+- APP_BIG_TEXT_SECTION = 1
+-
+-else ifeq ($(LIBRETRO), mame2003)
+- APP_TITLE = MAME-2003
+- APP_PRODUCT_CODE = RARCH-MAME2003
+- APP_UNIQUE_ID = 0xBAC18
+- APP_ICON = ctr/assets/mame.png
+- APP_BIG_TEXT_SECTION = 1
+-
+-else ifeq ($(LIBRETRO), mame2000)
+- APP_TITLE = MAME-2000
+- APP_PRODUCT_CODE = RARCH-MAME2000
+- APP_UNIQUE_ID = 0xBAC19
+- APP_ICON = ctr/assets/mame.png
+- APP_BIG_TEXT_SECTION = 1
+-
+-else ifeq ($(LIBRETRO), pocketsnes)
+- APP_TITLE = Pocket Snes
+- APP_AUTHOR = various
+- APP_PRODUCT_CODE = RARCH-POCKETSNES
+- APP_UNIQUE_ID = 0xBAC1A
+- APP_ICON = ctr/assets/pocketsnes.png
+- APP_BANNER = ctr/assets/pocketsnes_banner.png
+-
+-else ifeq ($(LIBRETRO), dosbox)
+- APP_TITLE = DosBox
+- APP_AUTHOR = various
+- APP_PRODUCT_CODE = RARCH-DOSBOX
+- APP_UNIQUE_ID = 0xBAC1B
+- APP_ICON = ctr/assets/dosbox.png
+-
+ endif
+diff --git a/frontend/drivers/platform_darwin.m b/frontend/drivers/platform_darwin.m
+index d38fc6f..509f170 100644
+--- a/frontend/drivers/platform_darwin.m
++++ b/frontend/drivers/platform_darwin.m
+@@ -410,7 +410,7 @@ static void frontend_darwin_get_environment_settings(int *argc, char *argv[],
+
+ get_ios_version(&major, &minor);
+ if (major > 8)
+- strlcpy(g_defaults.path.buildbot_server_url, "http://buildbot.libretro.com/nightly/apple/ios9/latest/", sizeof(g_defaults.path.buildbot_server_url));
++ strlcpy(g_defaults.path.buildbot_server_url, "", sizeof(g_defaults.path.buildbot_server_url));
+
+ fill_pathname_join(assets_zip_path, bundle_path_buf, "assets.zip", sizeof(assets_zip_path));
+
+diff --git a/libretro-common/net/test/net_http_test.c b/libretro-common/net/test/net_http_test.c
+index e6940a5..0bdb771 100644
+--- a/libretro-common/net/test/net_http_test.c
++++ b/libretro-common/net/test/net_http_test.c
+@@ -37,7 +37,7 @@ int main(void)
+ if (!network_init())
+ return -1;
+
+- http1 = net_http_new("http://buildbot.libretro.com/nightly/win-x86/latest/mednafen_psx_libretro.dll.zip");
++ http1 = net_http_new("");
+
+ while (!net_http_update(http1, &pos, &tot))
+ printf("%.9lu / %.9lu \r",pos,tot);
+diff --git a/retroarch.cfg b/retroarch.cfg
+index eed7864..20d6735 100644
+--- a/retroarch.cfg
++++ b/retroarch.cfg
+@@ -683,13 +683,13 @@
+ #### Core Updater
+
+ # URL to core update directory on buildbot.
+-# core_updater_buildbot_url = "http://buildbot.libretro.com"
++core_updater_buildbot_url = ""
+
+ # URL to assets update directory on buildbot.
+-# core_updater_buildbot_assets_url = "http://buildbot.libretro.com/assets/"
++core_updater_buildbot_assets_url = ""
+
+ # Automatically extract archives that the cores are contained in to the libretro cores directory.
+-# core_updater_auto_extract_archive = true
++core_updater_auto_extract_archive = false
+
+ #### Network
+