ports/sysutils/bareos-server/files/patch-core-cmake_BareosSetVariableDefaults.cmake
Jose Alonso Cardenas Marquez b08635660d - Fix pthread error [1]
- Fix build when python 2.x is not default version [2]
- Fix build when NLS option is not selected [3]
- Fix pkg-plist
- Few other modifications

PR:		237818 237823 237825
Submitted by:	Trond.Endrestol _ at _ ximalas.info [1][3], beldin _ at _ beldin.org [2]
Reported by:	pkg-fallout
2019-05-10 20:19:42 +00:00

15 lines
383 B
CMake

--- core/cmake/BareosSetVariableDefaults.cmake 2019-05-10 11:53:19.620402000 -0500
+++ core/cmake/BareosSetVariableDefaults.cmake 2019-05-10 12:13:55.910452000 -0500
@@ -669,7 +669,11 @@
SET(PACKAGE_URL "\"\"")
SET(PACKAGE_VERSION "\"${BAREOS_NUMERIC_VERSION}\"")
-set(ENABLE_NLS 1)
+IF(DEFINED nls)
+ SET(ENABLE_NLS 1)
+ELSE()
+ SET(ENABLE_NLS 0)
+ENDIF()
IF(HAVE_WIN32)