-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathalure-1-fixes.patch
79 lines (66 loc) · 2.39 KB
/
alure-1-fixes.patch
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
This file is part of MXE. See LICENSE.md for licensing information.
Contains ad hoc patches for cross building.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tony Theodore <[email protected]>
Date: Sun, 18 Feb 2018 12:33:24 +1100
Subject: [PATCH 1/3] fix pkg-config
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1111111..2222222 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,12 +14,12 @@ INCLUDE(CheckIncludeFile)
INCLUDE(CheckIncludeFiles)
INCLUDE(CheckLibraryExists)
INCLUDE(CheckSharedFunctionExists)
-INCLUDE(FindPkgConfig)
-INCLUDE(UsePkgConfig)
INCLUDE(CheckFileOffsetBits)
PROJECT(ALURE)
+find_package(PkgConfig)
+
IF(WIN32)
SET(LIBNAME ALURE32)
ELSE(WIN32)
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tony Theodore <[email protected]>
Date: Sun, 18 Feb 2018 12:51:07 +1100
Subject: [PATCH 2/3] disable docs
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1111111..2222222 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -497,9 +497,6 @@ ELSE(APPLE)
SET(INCPATH AL)
ENDIF(APPLE)
-INSTALL(DIRECTORY "${ALURE_SOURCE_DIR}/docs/html"
- DESTINATION share/doc/alure
-)
INSTALL(FILES include/AL/alure.h
DESTINATION "include/${INCPATH}"
)
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tony Theodore <[email protected]>
Date: Mon, 31 Oct 2022 18:03:53 +1100
Subject: [PATCH 3/3] use COMPILE_OPTIONS to handle semicolons correctly
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1111111..2222222 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -215,7 +215,7 @@ IF(SNDFILE)
SET(HAS_SNDFILE 1)
LINK_DIRECTORIES(${SNDFILE_LIBRARY_DIRS})
SET_SOURCE_FILES_PROPERTIES(src/codec_sndfile.cpp PROPERTIES
- COMPILE_FLAGS "${SNDFILE_CFLAGS}")
+ COMPILE_OPTIONS "${SNDFILE_CFLAGS}")
ELSE(SNDFILE_FOUND)
FIND_PACKAGE(SndFile)
IF(SNDFILE_FOUND)
@@ -237,7 +237,7 @@ IF(VORBIS)
SET(HAS_VORBISFILE 1)
LINK_DIRECTORIES(${VORBISFILE_LIBRARY_DIRS})
SET_SOURCE_FILES_PROPERTIES(src/codec_vorbisfile.cpp PROPERTIES
- COMPILE_FLAGS "${VORBISFILE_CFLAGS}")
+ COMPILE_OPTIONS "${VORBISFILE_CFLAGS}")
ELSE(VORBISFILE_FOUND)
FIND_PACKAGE(OggVorbis)
IF(OGGVORBIS_FOUND)