summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Segre <jan@segre.in>2017-01-28 12:21:34 -0200
committerMichał Górny <mgorny@gentoo.org>2017-07-26 10:12:35 +0200
commit3e16317b57e96c4875486f111707727e056a0f4b (patch)
tree726244d8536c3a693f0391dc21b881236dc2cadd /games-simulation/openrct2/files/openrct2-0.1.0-remove-external-gtest.patch
parentmedia-video/openshot: remove old (diff)
downloadgentoo-3e16317b57e96c4875486f111707727e056a0f4b.tar.gz
gentoo-3e16317b57e96c4875486f111707727e056a0f4b.tar.bz2
gentoo-3e16317b57e96c4875486f111707727e056a0f4b.zip
games-simulation/openrct2: new package, #607444
OpenRCT2 (https://openrct2.website/) is an open source re-implementation of RollerCoaster Tycoon 2. The original data files from RCT2 are still needed to play this game, see: https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files#how-to-retrieve Closes: https://github.com/gentoo/gentoo/pull/3694 Package-Manager: Portage-2.3.6, Repoman-2.3.1 Signed-off-by: Jan Segre <jan@segre.in>
Diffstat (limited to 'games-simulation/openrct2/files/openrct2-0.1.0-remove-external-gtest.patch')
-rw-r--r--games-simulation/openrct2/files/openrct2-0.1.0-remove-external-gtest.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/games-simulation/openrct2/files/openrct2-0.1.0-remove-external-gtest.patch b/games-simulation/openrct2/files/openrct2-0.1.0-remove-external-gtest.patch
new file mode 100644
index 00000000000..2c1392b731f
--- /dev/null
+++ b/games-simulation/openrct2/files/openrct2-0.1.0-remove-external-gtest.patch
@@ -0,0 +1,67 @@
+--- a/test/tests/CMakeLists.txt 2017-07-13 14:46:34.690292993 +0200
++++ b/test/tests/CMakeLists.txt 2017-07-13 14:56:57.678054368 +0200
+@@ -2,61 +2,13 @@
+
+ option(DISABLE_RCT2_TESTS "Disable tests that require RollerCoaster Tycoon 2 assets.")
+
+-# Bootstrap GoogleTest
+-INCLUDE(ExternalProject)
++find_package(GTest REQUIRED)
+
+-ExternalProject_Add(
+- googletest-distribution
+- URL https://github.com/google/googletest/archive/release-1.8.0.tar.gz
+- URL_HASH SHA1=e7e646a6204638fe8e87e165292b8dd9cd4c36ed
+- TIMEOUT 10
+- CONFIGURE_COMMAND ""
+- BUILD_COMMAND ""
+- INSTALL_COMMAND ""
+-)
+-
+-# Specify include dir
+-ExternalProject_Get_Property(googletest-distribution SOURCE_DIR)
+-set(GOOGLETEST_DISTRIB_SOURCE_DIR "${SOURCE_DIR}")
+-
+-ExternalProject_Add(
+- googletest
+- DEPENDS googletest-distribution
+- DOWNLOAD_COMMAND ""
+- SOURCE_DIR "${GOOGLETEST_DISTRIB_SOURCE_DIR}/googletest"
+- CMAKE_ARGS "-DCMAKE_CXX_FLAGS=${TARGET_M}"
+- BUILD_BYPRODUCTS "googletest-prefix/src/googletest-build/${CMAKE_STATIC_LIBRARY_PREFIX}gtest${CMAKE_STATIC_LIBRARY_SUFFIX}"
+- BUILD_BYPRODUCTS "googletest-prefix/src/googletest-build/${CMAKE_STATIC_LIBRARY_PREFIX}gtest_main${CMAKE_STATIC_LIBRARY_SUFFIX}"
+- # Disable install step
+- INSTALL_COMMAND ""
+- # Wrap download, configure and build steps in a script to log output
+- LOG_DOWNLOAD ON
+- LOG_CONFIGURE ON
+- LOG_BUILD ON)
+-
+-
+-# Specify include dir
+-set(GTEST_INCLUDE_DIR ${GOOGLETEST_DISTRIB_SOURCE_DIR}/googletest/include)
+-
+-# Library
+-ExternalProject_Get_Property(googletest BINARY_DIR)
+-set(GOOGLETEST_BINARY_DIR "${BINARY_DIR}")
+-set(GTEST_LIBRARY_PATH ${GOOGLETEST_BINARY_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}gtest${CMAKE_STATIC_LIBRARY_SUFFIX})
+-set(GTEST_MAIN_LIBRARY_PATH ${GOOGLETEST_BINARY_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}gtest_main${CMAKE_STATIC_LIBRARY_SUFFIX})
+-set(GTEST_LIBRARY gtest)
+-set(GTEST_MAIN_LIBRARY gtest_main)
+-add_library(${GTEST_LIBRARY} STATIC IMPORTED)
+-add_library(${GTEST_MAIN_LIBRARY} STATIC IMPORTED)
+-set_property(TARGET ${GTEST_LIBRARY} PROPERTY IMPORTED_LOCATION ${GTEST_LIBRARY_PATH})
+-set_property(TARGET ${GTEST_MAIN_LIBRARY} PROPERTY IMPORTED_LOCATION ${GTEST_MAIN_LIBRARY_PATH})
+-add_dependencies(${GTEST_LIBRARY} googletest)
+-add_dependencies(${GTEST_MAIN_LIBRARY} ${GTEST_LIBRARY})
+-
+-include_directories(SYSTEM ${GTEST_INCLUDE_DIR})
++include_directories(SYSTEM ${GTEST_INCLUDE_DIRS})
+ include_directories("${ROOT_DIR}/src")
+ include_directories(${SDL2_INCLUDE_DIRS})
+
+-set(GTEST_LIBRARIES gtest gtest_main pthread)
++set(GTEST_LIBRARIES ${GTEST_BOTH_LIBRARIES})
+
+ # Some most common files required in tests
+ set(COMMON_TEST_SOURCES