1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

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
DISTVERSIONPREFIX= v
DISTVERSION= 4.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= emulators
MAINTAINER= tiago.gasiba@gmail.com
@ -11,7 +11,7 @@ WWW= https://86box.net/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS= aarch64 amd64
BUILD_DEPENDS= evdev-proto>=5.8:devel/evdev-proto
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
.endif
CMAKE_ON+= ${CMAKE_ON_${ARCH}}
CMAKE_ON_aarch64= NEW_DYNAREC
SUB_FILES= 86Box-install-roms.sh
SUB_LIST= DISTVERSION=${DISTVERSION} \
DISTVERSIONPREFIX=${DISTVERSIONPREFIX}
@ -68,7 +71,7 @@ ICON_RESOLUTIONS= 128x128 192x192 256x256 48x48 512x512 64x64 72x72 96x96
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/.build/src/86Box ${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
${INSTALL_DATA} ${WRKSRC}/src/unix/assets/net.86box.86Box.desktop \
${STAGEDIR}${DESKTOPDIR}

View File

@ -1,9 +1,12 @@
[
{ type: install
message: <<EOM
86Box requires you to manually install ROMS to be able to run.
To do this, you can type in the following command:
86Box-install-roms.sh -i
(1) 86Box requires you to manually install ROMS to be able to run.
To do this, you can type in the following command:
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
}
]