View | Details | Raw Unified | Return to bug 282809
Collapse All | Expand All

(-)b/emulators/flycast/Makefile (-3 / +11 lines)
Lines 1-6 Link Here
1
PORTNAME=	flycast
1
PORTNAME=	flycast
2
DISTVERSIONPREFIX=	v
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	2.4
3
DISTVERSION=	2.4
4
PORTREVISION=	1
4
CATEGORIES=	emulators
5
CATEGORIES=	emulators
5
6
6
MAINTAINER=	bsdcode@disroot.org
7
MAINTAINER=	bsdcode@disroot.org
Lines 16-33 LIB_DEPENDS= libchdr.so:devel/libchdr \ Link Here
16
		libzip.so:archivers/libzip \
17
		libzip.so:archivers/libzip \
17
		libzstd.so:archivers/zstd
18
		libzstd.so:archivers/zstd
18
19
19
USES=		cmake compiler:c++17-lang lua:52+ pkgconfig sdl
20
USES=		cmake compiler:c++17-lang pkgconfig sdl
20
USE_GITHUB=	yes
21
USE_GITHUB=	yes
21
GH_ACCOUNT=	flyinghead
22
GH_ACCOUNT=	flyinghead
22
USE_SDL=	sdl2
23
USE_SDL=	sdl2
23
24
24
.include "${.CURDIR}/Makefile.tuples"
25
.include "${.CURDIR}/Makefile.tuples"
25
26
26
OPTIONS_DEFINE=		DOCS OPENMP VULKAN
27
OPTIONS_DEFINE=		DOCS LUA OPENMP VULKAN
27
OPTIONS_DEFAULT=	ALSA AO OPENMP OSS VULKAN
28
OPTIONS_DEFAULT=	ALSA AO LUA OPENMP OSS VULKAN
28
OPTIONS_GROUP=		AUDIO
29
OPTIONS_GROUP=		AUDIO
29
OPTIONS_GROUP_AUDIO=	ALSA AO OSS PULSEAUDIO
30
OPTIONS_GROUP_AUDIO=	ALSA AO OSS PULSEAUDIO
30
31
32
# building with lua support fails on i386, see also
33
# https://github.com/vinniefalco/LuaBridge/issues/302
34
OPTIONS_EXCLUDE_i386=	LUA
35
31
VULKAN_DESC=	Build with Vulkan support
36
VULKAN_DESC=	Build with Vulkan support
32
37
33
ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
38
ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
Lines 36-41 ALSA_CMAKE_BOOL= USE_ALSA Link Here
36
AO_LIB_DEPENDS=		libao.so:audio/libao
41
AO_LIB_DEPENDS=		libao.so:audio/libao
37
AO_CMAKE_BOOL=		USE_AO
42
AO_CMAKE_BOOL=		USE_AO
38
43
44
LUA_USES=		lua:52+
45
LUA_CMAKE_BOOL=		USE_LUA
46
39
OPENMP_CMAKE_BOOL=	USE_OPENMP
47
OPENMP_CMAKE_BOOL=	USE_OPENMP
40
48
41
OSS_CMAKE_BOOL=		USE_OSS
49
OSS_CMAKE_BOOL=		USE_OSS
(-)b/emulators/flycast/files/patch-CMakeLists.txt (-1 / +9 lines)
Lines 15-20 Link Here
15
 		target_compile_definitions(${PROJECT_NAME} PRIVATE USE_ALSA)
15
 		target_compile_definitions(${PROJECT_NAME} PRIVATE USE_ALSA)
16
 		target_include_directories(${PROJECT_NAME} PRIVATE ${ALSA_INCLUDE_DIRS})
16
 		target_include_directories(${PROJECT_NAME} PRIVATE ${ALSA_INCLUDE_DIRS})
17
 		target_link_libraries(${PROJECT_NAME} PRIVATE ${ALSA_LIBRARIES})
17
 		target_link_libraries(${PROJECT_NAME} PRIVATE ${ALSA_LIBRARIES})
18
@@ -463,7 +467,7 @@ if(NOT LIBRETRO)
19
 	endif()
20
 
21
 	find_package(Lua 5.2)
22
-	if(NOT APPLE AND LUA_FOUND)
23
+	if(USE_LUA AND NOT APPLE AND LUA_FOUND)
24
 		target_compile_definitions(${PROJECT_NAME} PRIVATE USE_LUA)
25
 		target_include_directories(${PROJECT_NAME} PRIVATE ${LUA_INCLUDE_DIR} core/deps/luabridge/Source)
26
 		list(TRANSFORM LUA_LIBRARIES REPLACE "\.dll" "")
18
@@ -471,9 +475,8 @@ endif()
27
@@ -471,9 +475,8 @@ endif()
19
 	endif()
28
 	endif()
20
 endif()
29
 endif()
21
- 

Return to bug 282809