File: kfreebsd-gettext.patch

package info (click to toggle)
minetest 0.4.15%2Brepack2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 30,732 kB
  • ctags: 13,048
  • sloc: cpp: 110,598; xml: 77,537; ansic: 4,149; sh: 853; makefile: 788; python: 659; java: 484
file content (27 lines) | stat: -rw-r--r-- 934 bytes parent folder | download | duplicates (2)
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
From: Matthew Bekkema <mat8913ftw@gmail.com>
Date: Sun, 4 Jan 2015 20:49:22 +0100
Subject: kfreebsd-gettext

Fix the build on kFreeBSD as it uses glibc
---
 cmake/Modules/FindGettextLib.cmake |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Index: b/cmake/Modules/FindGettextLib.cmake
===================================================================
--- a/cmake/Modules/FindGettextLib.cmake
+++ b/cmake/Modules/FindGettextLib.cmake
@@ -60,9 +60,10 @@ find_package_handle_standard_args(GetTex
 
 if(GETTEXT_FOUND)
 	# BSD variants require special linkage as they don't use glibc
-	if(${CMAKE_SYSTEM_NAME} MATCHES "BSD")
-		set(GETTEXT_LIBRARY "intl")
-	endif()
+	# DEBIAN CHANGE: kFreeBSD still uses glibc
+#	if(${CMAKE_SYSTEM_NAME} MATCHES "BSD")
+#		set(GETTEXT_LIBRARY "intl")
+#	endif()
 
 	set(GETTEXT_PO_PATH ${CMAKE_SOURCE_DIR}/po)
 	set(GETTEXT_MO_BUILD_PATH ${CMAKE_BINARY_DIR}/locale/<locale>/LC_MESSAGES)