# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # emulators # emulators/libretro-reicast # emulators/libretro-reicast/Makefile # emulators/libretro-reicast/distinfo # emulators/libretro-reicast/pkg-descr # emulators/libretro-reicast/files # emulators/libretro-reicast/files/patch-CMakeLists.txt # emulators/libretro-reicast/files/patch-libswirl_gui_gui__settings__about.cpp # emulators/libretro-reicast/files/patch-libswirl_linux-dist_main.cpp # emulators/libretro-reicast/files/patch-libswirl_linux_common.cpp # emulators/libretro-reicast/files/patch-reicast_cmake_config.cmake # echo c - emulators mkdir -p emulators > /dev/null 2>&1 echo c - emulators/libretro-reicast mkdir -p emulators/libretro-reicast > /dev/null 2>&1 echo x - emulators/libretro-reicast/Makefile sed 's/^X//' >emulators/libretro-reicast/Makefile << 'b3b03833fa88ce69d5ca1db10c9ff6c8' X# $FreeBSD$ X XPORTNAME= libretro-reicast XPORTVERSION= 0.20200821 XCATEGORIES= emulators games X XMAINTAINER= beyert@cs.ucr.edu XCOMMENT= Standalone port of reicast to libretro X XLICENSE= BSD3CLAUSE LGPL21 GPLv2 XLICENSE_COMB= multi XLICENSE_FILE= ${WRKSRC}/LICENSE X XLIB_DEPENDS= libcurl.so:ftp/curl \ X libasound.so:audio/alsa-lib \ X libao.so:audio/libao \ X libevdev.so:devel/libevdev \ X libpulse.so:audio/pulseaudio \ X libudev.so:devel/libudev-devd X XUSES= compiler:gcc-c++11-lib cmake gl xorg XUSE_LDCONFIG= yes XCMAKE_ARGS= -DLIBRETRO_CORE=ON \ X -DOPENGL_EGL_INCLUDE_DIR:PATH=${LOCALBASE}/include/EGL \ X -DOPENGL_GLX_INCLUDE_DIR:PATH=${LOCALBASE}/include/GL \ X -DOPENGL_INCLUDE_DIR:PATH=${LOCALBASE}/include/GL \ X -DOPENGL_opengl_LIBRARY:PATH=${LOCALBASE}/lib/libGL.so X XUSE_GITHUB= yes XGH_ACCOUNT= reicast XGH_PROJECT= reicast-emulator XGH_TAGNAME= 9a76ffa X XUSE_GL= gl egl gbm X XPLIST_FILES= lib/libretro/reicast_libretro.so X Xdo-install: X ${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro; X ${INSTALL_LIB} ${WRKDIR}/.build/libreicast.so \ X ${STAGEDIR}/${PREFIX}/lib/libretro/reicast_libretro.so; X X.include b3b03833fa88ce69d5ca1db10c9ff6c8 echo x - emulators/libretro-reicast/distinfo sed 's/^X//' >emulators/libretro-reicast/distinfo << '9142987862bc8f375a3b4efee8b9347b' XTIMESTAMP = 1606115826 XSHA256 (reicast-reicast-emulator-0.20200821-9a76ffa_GH0.tar.gz) = aca987228d5fcf7d343ba211f83950ce55918925853c9383f4a0d9680847df45 XSIZE (reicast-reicast-emulator-0.20200821-9a76ffa_GH0.tar.gz) = 6466567 9142987862bc8f375a3b4efee8b9347b echo x - emulators/libretro-reicast/pkg-descr sed 's/^X//' >emulators/libretro-reicast/pkg-descr << '5b0fed59106569cf555457139b330250' XStandalone port of reicast to libretro. X XWWW: https://github.com/reicast/reicast-emulator 5b0fed59106569cf555457139b330250 echo c - emulators/libretro-reicast/files mkdir -p emulators/libretro-reicast/files > /dev/null 2>&1 echo x - emulators/libretro-reicast/files/patch-CMakeLists.txt sed 's/^X//' >emulators/libretro-reicast/files/patch-CMakeLists.txt << 'c9907d314e42976ba6d27f22cb03fa89' X--- CMakeLists.txt.orig 2020-08-21 20:26:50 UTC X+++ CMakeLists.txt X@@ -431,6 +431,8 @@ if(${HOST_OS} EQUAL ${OS_DARWIN}) X X endif() X X+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.1") X+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1") X X if(DEBUG_CMAKE) X message(" ------------------------------------------------") c9907d314e42976ba6d27f22cb03fa89 echo x - emulators/libretro-reicast/files/patch-libswirl_gui_gui__settings__about.cpp sed 's/^X//' >emulators/libretro-reicast/files/patch-libswirl_gui_gui__settings__about.cpp << 'c70821bbb2f5622da7227f261e7a1c37' X--- libswirl/gui/gui_settings_about.cpp.orig 2020-08-21 20:26:50 UTC X+++ libswirl/gui/gui_settings_about.cpp X@@ -40,13 +40,13 @@ void gui_settings_about() X { X ImGui::Text("CPU: %s", X #if HOST_CPU == CPU_X86 X- "x86" X+ "i386" X #elif HOST_CPU == CPU_ARM X "ARM" X #elif HOST_CPU == CPU_MIPS X "MIPS" X #elif HOST_CPU == CPU_X64 X- "x86/64" X+ "amd64" X #elif HOST_CPU == CPU_GENERIC X "Generic" X #elif HOST_CPU == CPU_ARM64 X@@ -88,4 +88,4 @@ void gui_settings_about() X ImGui::PopStyleVar(); X ImGui::EndTabItem(); X } X-} X\ No newline at end of file X+} c70821bbb2f5622da7227f261e7a1c37 echo x - emulators/libretro-reicast/files/patch-libswirl_linux-dist_main.cpp sed 's/^X//' >emulators/libretro-reicast/files/patch-libswirl_linux-dist_main.cpp << 'ed94bd2644ae4ad6018c3428c157c9ff' X--- libswirl/linux-dist/main.cpp.orig 2020-08-21 20:26:50 UTC X+++ libswirl/linux-dist/main.cpp X@@ -22,7 +22,6 @@ X #include "hw/sh4/dyna/blockmanager.h" X #include "hw/maple/maple_cfg.h" X #include X-#include X X #include "libswirl.h" X #include "hw/pvr/Renderer_if.h" ed94bd2644ae4ad6018c3428c157c9ff echo x - emulators/libretro-reicast/files/patch-libswirl_linux_common.cpp sed 's/^X//' >emulators/libretro-reicast/files/patch-libswirl_linux_common.cpp << '3cccd5abcf6cb8828cb934aa1b2402e7' X--- libswirl/linux/common.cpp.orig 2020-08-21 20:26:50 UTC X+++ libswirl/linux/common.cpp X@@ -22,6 +22,12 @@ X #include X #if HOST_OS == OS_DARWIN X #import X+ #elif defined(__FreeBSD__) X+ #include X+ #include X+ #include X+ #include X+ #include X #else X #include X #endif X@@ -33,7 +39,7 @@ X #include X #include X #include X-#if !defined(TARGET_BSD) && !defined(TARGET_IPHONE) && !defined(TARGET_NACL32) && !defined(TARGET_EMSCRIPTEN) && !defined(TARGET_OSX) && !defined(TARGET_OSX_X64) X+#if !defined(__FreeBSD__) && !defined(TARGET_BSD) && !defined(TARGET_IPHONE) && !defined(TARGET_NACL32) && !defined(TARGET_EMSCRIPTEN) && !defined(TARGET_OSX) && !defined(TARGET_OSX_X64) X #include X #include X #endif X@@ -294,7 +300,7 @@ void enable_runfast() X } X X void linux_fix_personality() { X- #if !defined(TARGET_BSD) && !defined(_ANDROID) && !defined(TARGET_OS_MAC) && !defined(TARGET_NACL32) && !defined(TARGET_EMSCRIPTEN) X+ #if !defined(__FreeBSD__) && !defined(TARGET_BSD) && !defined(_ANDROID) && !defined(TARGET_OS_MAC) && !defined(TARGET_NACL32) && !defined(TARGET_EMSCRIPTEN) X printf("Personality: %08X\n", personality(0xFFFFFFFF)); X personality(~READ_IMPLIES_EXEC & personality(0xFFFFFFFF)); X printf("Updated personality: %08X\n", personality(0xFFFFFFFF)); X@@ -302,7 +308,7 @@ void linux_fix_personality() { X } X X void linux_rpi2_init() { X-#if !defined(TARGET_BSD) && !defined(_ANDROID) && !defined(TARGET_NACL32) && !defined(TARGET_EMSCRIPTEN) && defined(TARGET_VIDEOCORE) X+#if !defined(__FreeBSD__) && !defined(TARGET_BSD) && !defined(_ANDROID) && !defined(TARGET_NACL32) && !defined(TARGET_EMSCRIPTEN) && defined(TARGET_VIDEOCORE) X void* handle; X void (*rpi_bcm_init)(void); X 3cccd5abcf6cb8828cb934aa1b2402e7 echo x - emulators/libretro-reicast/files/patch-reicast_cmake_config.cmake sed 's/^X//' >emulators/libretro-reicast/files/patch-reicast_cmake_config.cmake << '39abfbb39c046f076548cfbc562ad813' X--- reicast/cmake/config.cmake.orig 2020-08-21 20:26:50 UTC X+++ reicast/cmake/config.cmake X@@ -106,11 +106,13 @@ endif() X # AMD64/x86_64:x64, i*86:x86, ppc/powerpc[64][b|l]e:ppc[64] etc X # X if(("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686") OR X+ ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i386") OR X ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "X86")) # todo: check MATCHES "i.86" ? X set(host_arch "x86") X set(HOST_CPU ${CPU_X86}) X # X elseif(("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "AMD64") OR X+ ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "amd64") OR X ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64") OR X ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x64")) X set(host_arch "x64") 39abfbb39c046f076548cfbc562ad813 exit