aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/libreoffice-glm.patch
blob: 9e76cf1389c1e819124339d1e9df332e3ec5cadd (about) (plain)
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
Fix build with GLM 0.9.9.

This patch is an amalgamation of these upstream commits:

https://github.com/LibreOffice/core/commit/953c4add8fd76d88f49a81ae4c21a1fdcc007e57
https://github.com/LibreOffice/core/commit/5f1bf6598b5725ad1e50ae9f7ec7524cc8a834fa

diff --git a/chart2/Library_chartcore.mk b/chart2/Library_chartcore.mk
index 28bc87b89057..69d4c0552636 100644
--- a/chart2/Library_chartcore.mk
+++ b/chart2/Library_chartcore.mk
@@ -23,6 +23,12 @@ $(eval $(call gb_Library_add_defs,chartcore,\
     -DOOO_DLLIMPLEMENTATION_CHARTVIEW \
 ))
 
+ifeq ($(SYSTEM_GLM),TRUE)
+$(eval $(call gb_Library_add_defs,chartcore,\
+        -DGLM_ENABLE_EXPERIMENTAL \
+))
+endif
+
 $(eval $(call gb_Library_set_precompiled_header,chartcore,$(SRCDIR)/chart2/inc/pch/precompiled_chartcore))
 
 $(eval $(call gb_Library_use_externals,chartcore,\
diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk
index c1f3cc5324e7..0b684c6185a9 100644
--- a/vcl/Library_vcl.mk
+++ b/vcl/Library_vcl.mk
@@ -49,6 +49,12 @@ $(eval $(call gb_Library_add_defs,vcl,\
 	-DENABLE_MERGELIBS=$(if $(MERGELIBS),1,0) \
 ))
 
+ifeq ($(SYSTEM_GLM),TRUE)
+$(eval $(call gb_Library_add_defs,vcl,\
+        -DGLM_ENABLE_EXPERIMENTAL \
+))
+endif
+
 $(eval $(call gb_Library_use_sdk_api,vcl))
 
 $(eval $(call gb_Library_use_custom_headers,vcl,\
diff --git a/vcl/Executable_icontest.mk b/vcl/Executable_icontest.mk
index ce163303f8a4..8c917b71cd0e 100644
--- a/vcl/Executable_icontest.mk
+++ b/vcl/Executable_icontest.mk
@@ -19,6 +19,12 @@ $(eval $(call gb_Executable_use_externals,icontest,\
 ))
 endif
 
+ifeq ($(SYSTEM_GLM),TRUE)
+$(eval $(call gb_Executable_add_defs,icontest,\
+    -DGLM_ENABLE_EXPERIMENTAL \
+))
+endif
+
 $(eval $(call gb_Executable_use_api,icontest,\
     offapi \
     udkapi \
s/utils.scm?id=bbd00d2012833c6419a62f6490cbef3e896b1e11'>utils: Add split procedure....David Thompson 2015-05-06search-paths: Export 'string-tokenize*'....Ludovic Courtès 2015-05-04search-paths: Add 'evaluate-search-paths', from (guix scripts package)....Ludovic Courtès 2014-10-05utils: Add 'strip-keyword-arguments'....Ludovic Courtès 2014-07-20guix: utils: Add fold-tree and fold-tree-leaves....Eric Bavier 2014-04-14offload: '{send,receive}-files' wait for completion of the transfer....Ludovic Courtès 2014-04-07tests: Avoid buffering in 'fcntl-flock' tests....Ludovic Courtès 2014-03-24utils: Add 'call-with-decompressed-port' and 'call-with-compressed-output-port'....Ludovic Courtès 2014-03-24utils: Add 'filtered-output-port' and 'compressed-output-port'....Ludovic Courtès 2014-03-22utils: Add 'decompressed-port' and 'compressed-port'....Ludovic Courtès 2014-03-22utils: 'filtered-port' doesn't leave dangling processes behind....Ludovic Courtès 2014-03-08utils: Add a non-blocking option for 'fcntl-flock'....Ludovic Courtès 2014-03-06tests: Rewrite 'fcntl-lock' test....Ludovic Courtès 2014-01-24utils: Add 'fcntl-flock'....Ludovic Courtès 2013-11-13utils: Add 'string-replace-substring'....Ludovic Courtès 2013-08-23utils: Add `guile-version>?', and use it....Ludovic Courtès 2013-08-22substitute-binary: Try hard to avoid port buffering....Ludovic Courtès