llvm8: rename "version" file so it isn't picked up by C++ #include <version>
This commit is contained in:
parent
b523f4eeaf
commit
58d0e07f95
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.16 2019/02/08 18:53:42 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.17 2019/06/19 15:44:21 naddy Exp $
|
||||
|
||||
COMMENT = modern, open-source flight simulator
|
||||
|
||||
@ -36,6 +36,10 @@ CONFIGURE_ARGS += -DCMAKE_INSTALL_MANDIR="${PREFIX}/man" \
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
# Keep C++ #include <version> from picking up this unrelated file
|
||||
post-extract:
|
||||
mv ${WRKSRC}/version ${WRKSRC}/version.txt
|
||||
|
||||
pre-configure:
|
||||
perl -pi -e 's/^\.Id.*//' ${WRKSRC}/man/*.1.in
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
$OpenBSD: patch-CMakeLists_txt,v 1.1 2018/10/26 19:53:06 naddy Exp $
|
||||
$OpenBSD: patch-CMakeLists_txt,v 1.2 2019/06/19 15:44:21 naddy Exp $
|
||||
|
||||
Linking with the X11 libraries is required because various X11
|
||||
functions are called directly.
|
||||
@ -6,6 +6,22 @@ functions are called directly.
|
||||
Index: CMakeLists.txt
|
||||
--- CMakeLists.txt.orig
|
||||
+++ CMakeLists.txt
|
||||
@@ -49,13 +49,13 @@ set(CMAKE_RELWITHDEBINFO_POSTFIX "" CACHE STRING "add
|
||||
set(CMAKE_MINSIZEREL_POSTFIX "" CACHE STRING "add a postfix, usually empty on windows")
|
||||
|
||||
# read 'version' file into a variable (stripping any newlines or spaces)
|
||||
-file(READ version versionFile)
|
||||
+file(READ version.txt versionFile)
|
||||
if (NOT versionFile)
|
||||
message(FATAL_ERROR "Unable to determine FlightGear version. Version file is missing.")
|
||||
endif()
|
||||
string(STRIP "${versionFile}" FLIGHTGEAR_VERSION)
|
||||
# add a dependency on the versino file
|
||||
-set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS version)
|
||||
+set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS version.txt)
|
||||
|
||||
# FlightGear packaging (to build a source tarball)
|
||||
include( ConfigureCPack )
|
||||
@@ -149,6 +149,8 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR
|
||||
if(HTS_ENGINE_FOUND)
|
||||
set(SYSTEM_HTS_ENGINE_DEFAULT 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user