~cypheon/pkgsrc-wip

pkgsrc-wip/bstone/patches/patch-src_CMakeLists.txt -rw-r--r-- 695 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD$

Use pkgsrc openal-soft.

--- src/CMakeLists.txt.orig	2021-02-14 11:47:46.000000000 +0000
+++ src/CMakeLists.txt
@@ -63,6 +63,7 @@ if (BSTONE_USE_STATIC_LINKING)
 	set(BSTONE_SDL2_COMPONENTS "${BSTONE_SDL2_COMPONENTS};static")
 endif ()
 
+find_package(OpenAL 1.7.3 REQUIRED)
 find_package(SDL2W 2.0.4 REQUIRED COMPONENTS ${BSTONE_SDL2_COMPONENTS})
 
 # Threads
@@ -185,6 +186,8 @@ endif ()
 
 target_link_libraries(
 	${PROJECT_NAME}
+	PUBLIC
+		${OPENAL_LIBRARY}
 	PRIVATE
 		SDL2W::SDL2Wmain
 		SDL2W::SDL2W
@@ -216,8 +219,8 @@ target_include_directories(
 	PRIVATE
 		.
 		dosbox
+		${OPENAL_INCLUDE_DIR}
 		lib/glm
-		lib/openal_soft/include/AL
 		lib/stb
 		lib/xbrz
 		sys/win32