Skip to content

Commit

Permalink
emulators/higan: Update to v110
Browse files Browse the repository at this point in the history
Moreover,

- Switch to USE_GITHUB, since the sources are now available only there.
- Replace WWW with the GitHub repository link, since the site in WWW
  does not exist anymore.
- Change default sound option from OSS to OPENAL: OSS does not work.
- Do not require GCC anymore.

PR:		273678
Approved by:	Naram Qashat <cyberbotx@cyberbotx.com> (maintainer)
  • Loading branch information
lsalvadore committed Dec 6, 2023
1 parent 3f31601 commit 597ca5a
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 187 deletions.
40 changes: 19 additions & 21 deletions emulators/higan/Makefile
@@ -1,37 +1,40 @@
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
Expand All @@ -43,7 +46,7 @@ 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
Expand All @@ -70,11 +73,6 @@ 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

Expand All @@ -91,9 +89,9 @@ do-build:
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 <bsd.port.mk>
6 changes: 3 additions & 3 deletions 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
10 changes: 0 additions & 10 deletions emulators/higan/files/patch-higan_GNUmakefile

This file was deleted.

15 changes: 0 additions & 15 deletions emulators/higan/files/patch-higan_target-tomoko_GNUmakefile

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions emulators/higan/files/patch-higan_target-tomoko_program_medium.cpp

This file was deleted.

23 changes: 0 additions & 23 deletions emulators/higan/files/patch-higan_target-tomoko_tomoko.cpp

This file was deleted.

8 changes: 0 additions & 8 deletions emulators/higan/files/patch-higan_target-tomoko_tomoko.hpp

This file was deleted.

This file was deleted.

35 changes: 0 additions & 35 deletions emulators/higan/files/patch-icarus_core_core.cpp

This file was deleted.

23 changes: 0 additions & 23 deletions emulators/higan/files/patch-icarus_icarus.cpp

This file was deleted.

35 changes: 19 additions & 16 deletions emulators/higan/pkg-plist
@@ -1,21 +1,24 @@
%%DATADIR%%/Game Boy Color/boot.cgb-0.rom
%%DATADIR%%/Game Boy Color/boot.cgb-1.rom
%%DATADIR%%/Game Boy/boot.dmg-0.rom
%%DATADIR%%/Game Boy/boot.dmg-1.rom
%%DATADIR%%/Game Boy/boot.mgb.rom
%%DATADIR%%/MSX/Keyboard/Japanese/layout.bml
%%DATADIR%%/MSX/bios.rom
%%DATADIR%%/MSX2/Keyboard/Japanese/layout.bml
%%DATADIR%%/MSX2/bios.rom
%%DATADIR%%/MSX2/sub.rom
%%DATADIR%%/Mega Drive/tmss.rom
%%DATADIR%%/Pocket Challenge V2/boot.rom
%%DATADIR%%/Super Famicom/boards.bml
%%DATADIR%%/Super Famicom/ipl.rom
%%DATADIR%%/SwanCrystal/boot.rom
%%DATADIR%%/WonderSwan Color/boot.rom
%%DATADIR%%/WonderSwan/boot.rom
bin/higan
bin/icarus
share/applications/higan.desktop
%%DATADIR%%/Famicom.sys/manifest.bml
%%DATADIR%%/Game Boy Advance.sys/manifest.bml
%%DATADIR%%/Game Boy Color.sys/boot.rom
%%DATADIR%%/Game Boy Color.sys/manifest.bml
%%DATADIR%%/Game Boy.sys/boot.rom
%%DATADIR%%/Game Boy.sys/manifest.bml
%%DATADIR%%/Game Gear.sys/manifest.bml
%%DATADIR%%/Master System.sys/manifest.bml
%%DATADIR%%/Mega Drive.sys/manifest.bml
%%DATADIR%%/Mega Drive.sys/tmss.rom
%%DATADIR%%/PC Engine.sys/manifest.bml
%%DATADIR%%/Super Famicom.sys/ipl.rom
%%DATADIR%%/Super Famicom.sys/manifest.bml
%%DATADIR%%/SuperGrafx.sys/manifest.bml
%%DATADIR%%/WonderSwan Color.sys/manifest.bml
%%DATADIR%%/WonderSwan.sys/manifest.bml
share/icarus/Database/Super Famicom.bml
share/icarus/Database/BS Memory.bml
share/icarus/Database/Sufami Turbo.bml
share/pixmaps/higan.png

0 comments on commit 597ca5a

Please sign in to comment.