emulators/86Box: add support for aarch64 and improvements to configuration file

* Add support for aarch64
* Set the configuration to ~/.config/86Box.cfg when running from desktop shortcut
* Make this behavior explicit in pkg-message

PR:	280764
This commit is contained in:
gatekeeper 2024-08-12 16:49:40 +03:00 committed by Vladimir Druzenko
parent 5739fc8d5e
commit 465c31f9b5
2 changed files with 12 additions and 6 deletions

View file

@ -1,7 +1,7 @@
PORTNAME= 86Box PORTNAME= 86Box
DISTVERSIONPREFIX= v DISTVERSIONPREFIX= v
DISTVERSION= 4.2 DISTVERSION= 4.2
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= emulators CATEGORIES= emulators
MAINTAINER= tiago.gasiba@gmail.com MAINTAINER= tiago.gasiba@gmail.com
@ -11,7 +11,7 @@ WWW= https://86box.net/
LICENSE= GPLv2 LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING LICENSE_FILE= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS= aarch64 amd64
BUILD_DEPENDS= evdev-proto>=5.8:devel/evdev-proto BUILD_DEPENDS= evdev-proto>=5.8:devel/evdev-proto
LIB_DEPENDS= libevdev.so:devel/libevdev \ LIB_DEPENDS= libevdev.so:devel/libevdev \
@ -48,6 +48,9 @@ CMAKE_ON= USE_QT6
CXXFLAGS+= -I${LOCALBASE}/include/qt6/QtGui/`pkg-config --modversion Qt6Gui`/QtGui CXXFLAGS+= -I${LOCALBASE}/include/qt6/QtGui/`pkg-config --modversion Qt6Gui`/QtGui
.endif .endif
CMAKE_ON+= ${CMAKE_ON_${ARCH}}
CMAKE_ON_aarch64= NEW_DYNAREC
SUB_FILES= 86Box-install-roms.sh SUB_FILES= 86Box-install-roms.sh
SUB_LIST= DISTVERSION=${DISTVERSION} \ SUB_LIST= DISTVERSION=${DISTVERSION} \
DISTVERSIONPREFIX=${DISTVERSIONPREFIX} DISTVERSIONPREFIX=${DISTVERSIONPREFIX}
@ -68,7 +71,7 @@ ICON_RESOLUTIONS= 128x128 192x192 256x256 48x48 512x512 64x64 72x72 96x96
do-install: do-install:
${INSTALL_PROGRAM} ${WRKDIR}/.build/src/86Box ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKDIR}/.build/src/86Box ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKDIR}/86Box-install-roms.sh ${STAGEDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKDIR}/86Box-install-roms.sh ${STAGEDIR}${PREFIX}/bin
${REINPLACE_CMD} -e 's|Exec=86Box|Exec=/bin/sh -c "${PREFIX}/bin/86Box -C $${HOME}/86box.cfg"|' \ ${REINPLACE_CMD} -e 's|Exec=86Box|Exec=/bin/sh -c "${PREFIX}/bin/86Box -C $${HOME}/.config/86Box.cfg"|' \
${WRKSRC}/src/unix/assets/net.86box.86Box.desktop ${WRKSRC}/src/unix/assets/net.86box.86Box.desktop
${INSTALL_DATA} ${WRKSRC}/src/unix/assets/net.86box.86Box.desktop \ ${INSTALL_DATA} ${WRKSRC}/src/unix/assets/net.86box.86Box.desktop \
${STAGEDIR}${DESKTOPDIR} ${STAGEDIR}${DESKTOPDIR}

View file

@ -1,9 +1,12 @@
[ [
{ type: install { type: install
message: <<EOM message: <<EOM
86Box requires you to manually install ROMS to be able to run. (1) 86Box requires you to manually install ROMS to be able to run.
To do this, you can type in the following command: To do this, you can type in the following command:
86Box-install-roms.sh -i 86Box-install-roms.sh -i
(2) Running 86Box through the desktop shortcut uses the configuration
which is placed in the folder ~/.config/86Box.cfg
EOM EOM
} }
] ]