diff --git a/emulators/higan/Makefile b/emulators/higan/Makefile index ca16f7cd8ace..37e3518c56ad 100644 --- a/emulators/higan/Makefile +++ b/emulators/higan/Makefile @@ -1,99 +1,97 @@ PORTNAME= higan -PORTVERSION= 106 -PORTREVISION= 12 +DISTVERSIONPREFIX= v +DISTVERSION= 110 CATEGORIES= emulators games -MASTER_SITES= http://download.byuu.org/ \ - http://www.cyberbotx.com/higan/ -DISTNAME= ${PORTNAME}_v${PORTVERSION}-source MAINTAINER= cyberbotx@cyberbotx.com COMMENT= Nintendo multi-system emulator -WWW= http://byuu.org/higan/ +WWW= https://github.com/higan-emu/higan + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/LICENSE.txt ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ - libfreetype.so:print/freetype2 + libfreetype.so:print/freetype2 \ + libharfbuzz.so:print/harfbuzz -USES= 7z compiler:c++14-lang gettext gmake gnome pkgconfig xorg +USES= compiler:c++14-lang gettext gmake gnome pkgconfig xorg USE_GNOME= cairo gdkpixbuf2 gtk20 gtksourceview2 -USE_XORG= x11 xext +USE_XORG= x11 xext xrandr USE_CSTD= c99 USE_CXXSTD= c++14 -USE_GCC= yes + +USE_GITHUB= yes +GH_ACCOUNT= higan-emu MAKEFILE= GNUmakefile -MAKE_ENV= compiler="${CXX}" hiro="gtk" +MAKE_ENV= compiler="${CXX}" hiro="gtk2" OPTIONS_DEFINE= DEBUG OPTIONS_MULTI= VIDEO SOUND INPUT OPTIONS_MULTI_VIDEO= GLX SDL XSHM XV OPTIONS_MULTI_SOUND= AO OPENAL OSS PULSEAUDIO OPTIONS_MULTI_INPUT= INPUT_SDL INPUT_X OPTIONS_DEFAULT= GLX XSHM XV SDL \ - OSS INPUT_SDL INPUT_X + OPENAL INPUT_SDL INPUT_X XSHM_DESC= Build XShm video driver XV_DESC= Build Xv video driver INPUT_SDL_DESC= Build SDL input driver INPUT_X_DESC= Build X input driver GLX_USES= gl GLX_USE= GL=gl GLX_VARS= VIDEO_DRIVER+=video.glx SDL_USES= sdl -SDL_USE= XORG=xv SDL=sdl +SDL_USE= XORG=xv SDL=sdl2 SDL_VARS= VIDEO_DRIVER+=video.sdl XSHM_USE= XORG=xext XSHM_VARS= VIDEO_DRIVER+=video.xshm XV_USE= XORG=xv XV_VARS= VIDEO_DRIVER+=video.xvideo AO_LIB_DEPENDS= libao.so:audio/libao AO_VARS= AUDIO_DRIVER+=audio.ao OPENAL_USES= openal:al OPENAL_VARS= AUDIO_DRIVER+=audio.openal OSS_VARS= AUDIO_DRIVER+=audio.oss PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio PULSEAUDIO_VARS= AUDIO_DRIVER+=audio.pulseaudio INPUT_SDL_USES= sdl INPUT_SDL_USE= SDL=sdl INPUT_SDL_VARS= INPUT_DRIVER+=input.sdl INPUT_X_VARS= INPUT_DRIVER+=input.xlib post-patch: - ${REINPLACE_CMD} \ - -e 's|%%VIDEO%%|${VIDEO_DRIVER}|' \ - -e 's|%%AUDIO%%|${AUDIO_DRIVER}|' \ - -e 's|%%INPUT%%|${INPUT_DRIVER}|' \ - ${WRKSRC}/higan/target-tomoko/GNUmakefile ${REINPLACE_CMD} -e 's|/usr/share/|${PREFIX}/share/|' \ ${WRKSRC}/nall/path.hpp post-patch-DEBUG-on: ${REINPLACE_CMD} -e 's|-O3|-g|g' \ ${WRKSRC}/higan/GNUmakefile \ ${WRKSRC}/icarus/GNUmakefile do-build: .for d in higan icarus @${DO_MAKE_BUILD} ${ALL_TARGET} -C${WRKSRC}/${d} .endfor do-install: ${INSTALL_PROGRAM} ${WRKSRC}/higan/out/higan ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_PROGRAM} ${WRKSRC}/icarus/out/icarus ${STAGEDIR}${PREFIX}/bin/ - ${INSTALL_DATA} ${WRKSRC}/higan/data/higan.png ${STAGEDIR}${PREFIX}/share/pixmaps/ - ${INSTALL_DATA} ${WRKSRC}/higan/data/higan.desktop ${STAGEDIR}${PREFIX}/share/applications/ - (cd ${WRKSRC}/higan/systems && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/) + ${INSTALL_DATA} ${WRKSRC}/higan/target-higan/resource/higan.png ${STAGEDIR}${PREFIX}/share/pixmaps/ + ${INSTALL_DATA} ${WRKSRC}/higan/target-higan/resource/higan.desktop ${STAGEDIR}${PREFIX}/share/applications/ + (cd ${WRKSRC}/higan/System && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/) (cd ${WRKSRC}/icarus/Database && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/icarus/Database/) .include diff --git a/emulators/higan/distinfo b/emulators/higan/distinfo index f976c88f3721..2338ce694466 100644 --- a/emulators/higan/distinfo +++ b/emulators/higan/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1516118942 -SHA256 (higan_v106-source.7z) = 6564f91f232040c46c052de763dc139e94005e0f2376959fdacbb6ccd3fd6d18 -SIZE (higan_v106-source.7z) = 830639 +TIMESTAMP = 1700308663 +SHA256 (higan-emu-higan-v110_GH0.tar.gz) = 18457ac2608ab548983c3266ae38e6397d1801773969a796a672e2d9c56c69c5 +SIZE (higan-emu-higan-v110_GH0.tar.gz) = 1661896 diff --git a/emulators/higan/files/patch-higan_GNUmakefile b/emulators/higan/files/patch-higan_GNUmakefile deleted file mode 100644 index 86cf95a2f544..000000000000 --- a/emulators/higan/files/patch-higan_GNUmakefile +++ /dev/null @@ -1,10 +0,0 @@ ---- higan/GNUmakefile.orig 2020-02-08 23:13:45 UTC -+++ higan/GNUmakefile -@@ -26,7 +26,6 @@ else ifneq ($(filter $(platform),linux bsd),) - flags += -fopenmp - link += -fopenmp - ifeq ($(binary),application) -- flags += -march=native - link += -Wl,-export-dynamic - link += -lX11 -lXext - else ifeq ($(binary),library) diff --git a/emulators/higan/files/patch-higan_target-tomoko_GNUmakefile b/emulators/higan/files/patch-higan_target-tomoko_GNUmakefile deleted file mode 100644 index 1b8131a40d9d..000000000000 --- a/emulators/higan/files/patch-higan_target-tomoko_GNUmakefile +++ /dev/null @@ -1,15 +0,0 @@ ---- higan/target-tomoko/GNUmakefile.orig 2017-09-23 21:35:23 UTC -+++ higan/target-tomoko/GNUmakefile -@@ -30,9 +30,9 @@ else ifeq ($(platform),linux) - ruby += audio.oss audio.alsa audio.openal audio.pulseaudio audio.pulseaudiosimple audio.ao - ruby += input.sdl input.xlib input.udev - else ifeq ($(platform),bsd) -- ruby += video.glx video.xvideo video.xshm video.sdl -- ruby += audio.oss audio.openal -- ruby += input.sdl input.xlib -+ ruby += %%VIDEO%% -+ ruby += %%AUDIO%% -+ ruby += %%INPUT%% - endif - - # ruby diff --git a/emulators/higan/files/patch-higan_target-tomoko_presentation_presentation.cpp b/emulators/higan/files/patch-higan_target-tomoko_presentation_presentation.cpp deleted file mode 100644 index bc30b6dc349c..000000000000 --- a/emulators/higan/files/patch-higan_target-tomoko_presentation_presentation.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- higan/target-tomoko/presentation/presentation.cpp.orig 2017-01-13 17:52:31 UTC -+++ higan/target-tomoko/presentation/presentation.cpp -@@ -278,7 +278,7 @@ auto Presentation::toggleFullScreen() -> - } - - auto Presentation::loadShaders() -> void { -- auto pathname = locate("Video Shaders/"); -+ auto pathname = locateShared("Video Shaders/"); - - if(settings["Video/Driver"].text() == "OpenGL") { - for(auto shader : directory::folders(pathname, "*.shader")) { diff --git a/emulators/higan/files/patch-higan_target-tomoko_program_medium.cpp b/emulators/higan/files/patch-higan_target-tomoko_program_medium.cpp deleted file mode 100644 index 6c898cd0f699..000000000000 --- a/emulators/higan/files/patch-higan_target-tomoko_program_medium.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- higan/target-tomoko/program/medium.cpp.orig 2017-01-13 10:43:46 UTC -+++ higan/target-tomoko/program/medium.cpp -@@ -17,7 +17,7 @@ auto Program::loadMedium() -> void { - auto Program::loadMedium(Emulator::Interface& interface, const Emulator::Interface::Medium& medium) -> void { - unloadMedium(); - -- mediumPaths.append(locate({medium.name, ".sys/"})); -+ mediumPaths.append(locateShared({medium.name, ".sys/"})); - - Emulator::audio.reset(2, audio->get(Audio::Frequency).get(44100)); - inputManager->bind(emulator = &interface); diff --git a/emulators/higan/files/patch-higan_target-tomoko_tomoko.cpp b/emulators/higan/files/patch-higan_target-tomoko_tomoko.cpp deleted file mode 100644 index e3790ab98982..000000000000 --- a/emulators/higan/files/patch-higan_target-tomoko_tomoko.cpp +++ /dev/null @@ -1,23 +0,0 @@ ---- higan/target-tomoko/tomoko.cpp.orig 2016-07-01 08:21:27 UTC -+++ higan/target-tomoko/tomoko.cpp -@@ -4,6 +4,20 @@ unique_pointer