summaryrefslogtreecommitdiff
path: root/emulators/ares/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/ares/Makefile')
-rw-r--r--emulators/ares/Makefile50
1 files changed, 39 insertions, 11 deletions
diff --git a/emulators/ares/Makefile b/emulators/ares/Makefile
index 6ec6dc0301ee..0ce6c3aaf5c9 100644
--- a/emulators/ares/Makefile
+++ b/emulators/ares/Makefile
@@ -1,8 +1,10 @@
PORTNAME= ares
DISTVERSIONPREFIX= v
-DISTVERSION= 144
-PORTREVISION= 1
+DISTVERSION= 146
CATEGORIES= emulators
+MASTER_SITES= https://github.com/${PORTNAME}-emulator/${PORTNAME}/releases/download/${DISTVERSIONFULL}/
+DISTNAME= ${PORTNAME}-source
+DIST_SUBDIR= ${PORTNAME}-${DISTVERSION}
MAINTAINER= bsdcode@disroot.org
COMMENT= Multi-system emulator
@@ -14,24 +16,29 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= librashader>0:devel/librashader
USES= cmake compiler:c++17-lang gl gnome pkgconfig xorg
-USE_GITHUB= yes
-GH_ACCOUNT= ares-emulator
USE_GL= opengl
USE_GNOME= gtk30
USE_XORG= x11 xext xrandr xrender
CMAKE_ARGS= -DARES_CORES="${_CORES:S/ /;/gW}" \
- -DARES_VERSION_OVERRIDE=${DISTVERSIONFULL} \
-DENABLE_CCACHE=${CCACHE_ENABLED}
-CMAKE_ON= ARES_SKIP_DEPS \
+CMAKE_ON= ARES_BUILD_OFFICIAL \
+ ARES_SKIP_DEPS \
ARES_UNITY_CORES
CMAKE_OFF= ARES_BUILD_LOCAL \
ARES_BUNDLE_SHADERS \
ARES_ENABLE_MINIMUM_CPU
-EXTRACT_AFTER_ARGS= --exclude thirdparty/librashader \
+EXTRACT_AFTER_ARGS= --exclude thirdparty/GL \
+ --exclude thirdparty/KHR \
+ --exclude thirdparty/libchdr \
+ --exclude thirdparty/librashader \
+ --exclude thirdparty/sse2neon.h \
+ --exclude thirdparty/xxhash.h \
--no-same-owner --no-same-permissions
+NO_WRKSUBDIR= yes
+
OPTIONS_DEFINE= CHD SDL TOOLS
OPTIONS_DEFAULT= A26 ALSA AO CHD CV FC GB GBA LIBRASHADER \
LIBRETRO LTO MD MS MSX MYVISION N64 NG NGP \
@@ -62,7 +69,7 @@ GBA_DESC= Game Boy Advance
GB_DESC= Game Boy / Game Boy Color
HOTKEYS_DESC= Inofficial hotkeys locking patch
LIBRASHADER_DESC= Slang-shader support via librashader
-LIBRETRO_DESC= Install slang-shaders from libretro
+LIBRETRO_DESC= Install slang-shaders from libretro (implies ${LIBRETRO_IMPLIES})
MD_DESC= Sega Mega Drive / Genesis
MSX_DESC= Microsoft MSX
MS_DESC= Sega Master System / Mark III
@@ -90,8 +97,9 @@ ALSA_CMAKE_BOOL= ARES_ENABLE_ALSA
AO_LIB_DEPENDS= libao.so:audio/libao
AO_CMAKE_BOOL= ARES_ENABLE_AO
-CHD_CMAKE_BOOL= ARES_ENABLE_CHD \
- WITH_SYSTEM_ZLIB
+CHD_LIB_DEPENDS= libchdr.so:devel/libchdr
+CHD_USES= localbase
+CHD_CMAKE_BOOL= ARES_ENABLE_CHD
CV_VARS= _CORES+=cv
@@ -113,6 +121,8 @@ LIBRETRO_RUN_DEPENDS= ${_LIBRETRO_BR_DEPENDS}
LTO_CMAKE_BOOL= ENABLE_IPO
+MD_BUILD_DEPENDS= xxhash>0:devel/xxhash
+MD_USES= localbase
MD_VARS= _CORES+=md
MSX_VARS= _CORES+=msx
@@ -122,8 +132,12 @@ MS_VARS= _CORES+=ms
MYVISION_VARS= _CORES+=myvision
_N64_BR_DEPENDS= vulkan-loader>0:graphics/vulkan-loader
-N64_BUILD_DEPENDS= ${_N64_BR_DEPENDS}
+_N64_BUILD_DEPENDS_aarch64= sse2neon>0:devel/sse2neon
+N64_BUILD_DEPENDS= ${_N64_BR_DEPENDS} \
+ ${_N64_BUILD_DEPENDS_${ARCH}} \
+ xxhash>0:devel/xxhash
N64_RUN_DEPENDS= ${_N64_BR_DEPENDS}
+N64_USES= localbase
N64_VARS= _CORES+=n64
NGP_VARS= _CORES+=ngp
@@ -164,6 +178,20 @@ USBHID_CMAKE_BOOL= ARES_ENABLE_USBHID
WS_VARS= _CORES+=ws
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MTOOLS} && (${PORT_OPTIONS:MGBA} || ${PORT_OPTIONS:MSFC})
+PLIST_SUB+= TOOLSARM7TDMI=""
+.else
+PLIST_SUB+= TOOLSARM7TDMI="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MTOOLS} && (${PORT_OPTIONS:MMD} || ${PORT_OPTIONS:MNG})
+PLIST_SUB+= TOOLSM68000=""
+.else
+PLIST_SUB+= TOOLSM68000="@comment "
+.endif
+
post-patch:
${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/cmake/finders/*