Created
June 11, 2016 13:50
-
-
Save monwarez/a8e8b54ce4a6b840d88b7f43d0132e66 to your computer and use it in GitHub Desktop.
Ogre3d FreeBSD port diff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- CMake/ConfigureBuild.cmake.orig 2013-04-16 03:54:30.000000000 +0200 | |
+++ CMake/ConfigureBuild.cmake 2013-08-12 14:32:35.000000000 +0200 | |
@@ -211,18 +211,18 @@ | |
else () | |
configure_file(${OGRE_TEMPLATES_DIR}/OGRE.pc.in ${OGRE_BINARY_DIR}/pkgconfig/OGRE.pc @ONLY) | |
endif () | |
- install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE.pc DESTINATION ${OGRE_LIB_DIRECTORY}/pkgconfig) | |
+ install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE.pc DESTINATION ${OGRE_LIBDATA_DIRECTORY}/pkgconfig) | |
# configure additional packages | |
if (OGRE_BUILD_PLUGIN_PCZ) | |
configure_file(${OGRE_TEMPLATES_DIR}/OGRE-PCZ.pc.in ${OGRE_BINARY_DIR}/pkgconfig/OGRE-PCZ.pc @ONLY) | |
- install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-PCZ.pc DESTINATION ${OGRE_LIB_DIRECTORY}/pkgconfig) | |
+ install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-PCZ.pc DESTINATION ${OGRE_LIBDATA_DIRECTORY}/pkgconfig) | |
endif () | |
if (OGRE_BUILD_COMPONENT_PAGING) | |
configure_file(${OGRE_TEMPLATES_DIR}/OGRE-Paging.pc.in ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Paging.pc @ONLY) | |
- install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Paging.pc DESTINATION ${OGRE_LIB_DIRECTORY}/pkgconfig) | |
+ install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Paging.pc DESTINATION ${OGRE_LIBDATA_DIRECTORY}/pkgconfig) | |
endif () | |
if (OGRE_BUILD_COMPONENT_TERRAIN) | |
@@ -230,27 +230,27 @@ | |
set(OGRE_PAGING_ADDITIONAL_PACKAGES ", OGRE-Paging = ${OGRE_VERSION}") | |
endif () | |
configure_file(${OGRE_TEMPLATES_DIR}/OGRE-Terrain.pc.in ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Terrain.pc @ONLY) | |
- install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Terrain.pc DESTINATION ${OGRE_LIB_DIRECTORY}/pkgconfig) | |
+ install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Terrain.pc DESTINATION ${OGRE_LIBDATA_DIRECTORY}/pkgconfig) | |
endif () | |
if (OGRE_BUILD_COMPONENT_RTSHADERSYSTEM) | |
configure_file(${OGRE_TEMPLATES_DIR}/OGRE-RTShaderSystem.pc.in ${OGRE_BINARY_DIR}/pkgconfig/OGRE-RTShaderSystem.pc @ONLY) | |
- install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-RTShaderSystem.pc DESTINATION ${OGRE_LIB_DIRECTORY}/pkgconfig) | |
+ install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-RTShaderSystem.pc DESTINATION ${OGRE_LIBDATA_DIRECTORY}/pkgconfig) | |
endif () | |
if (OGRE_BUILD_COMPONENT_PROPERTY) | |
configure_file(${OGRE_TEMPLATES_DIR}/OGRE-Property.pc.in ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Property.pc @ONLY) | |
- install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Property.pc DESTINATION ${OGRE_LIB_DIRECTORY}/pkgconfig) | |
+ install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Property.pc DESTINATION ${OGRE_LIBDATA_DIRECTORY}/pkgconfig) | |
endif () | |
if (OGRE_BUILD_COMPONENT_OVERLAY) | |
configure_file(${OGRE_TEMPLATES_DIR}/OGRE-Overlay.pc.in ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Overlay.pc @ONLY) | |
- install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Overlay.pc DESTINATION ${OGRE_LIB_DIRECTORY}/pkgconfig) | |
+ install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Overlay.pc DESTINATION ${OGRE_LIBDATA_DIRECTORY}/pkgconfig) | |
endif () | |
if (OGRE_BUILD_COMPONENT_VOLUME) | |
configure_file(${OGRE_TEMPLATES_DIR}/OGRE-Volume.pc.in ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Volume.pc @ONLY) | |
- install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Volume.pc DESTINATION ${OGRE_LIB_DIRECTORY}/pkgconfig) | |
+ install(FILES ${OGRE_BINARY_DIR}/pkgconfig/OGRE-Volume.pc DESTINATION ${OGRE_LIBDATA_DIRECTORY}/pkgconfig) | |
endif () | |
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- CMakeLists.txt.orig 2013-12-01 18:28:12.000000000 +0100 | |
+++ CMakeLists.txt 2014-03-11 21:56:26.000000000 +0100 | |
@@ -102,9 +102,9 @@ | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse") | |
endif () | |
# This is a set of sensible warnings that provide meaningful output | |
- set(OGRE_WARNING_FLAGS "-Wall -Winit-self -Wno-overloaded-virtual -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wshadow -Wno-missing-field-initializers -Wno-long-long") | |
+ set(OGRE_WARNING_FLAGS "-Wall -Winit-self -Wno-overloaded-virtual -Wcast-qual -Wwrite-strings -Wno-unused-parameter -Wshadow -Wno-missing-field-initializers -Wno-long-long") | |
if (NOT APPLE) | |
- set(OGRE_WARNING_FLAGS "${OGRE_WARNING_FLAGS} -Wno-unused-but-set-parameter") | |
+ set(OGRE_WARNING_FLAGS "${OGRE_WARNING_FLAGS}") | |
endif () | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OGRE_WARNING_FLAGS}") | |
endif () | |
@@ -435,6 +435,7 @@ | |
option(OGRE_PROFILING "Enable internal profiling support." FALSE) | |
cmake_dependent_option(OGRE_CONFIG_STATIC_LINK_CRT "Statically link the MS CRT dlls (msvcrt)" FALSE "MSVC" FALSE) | |
set(OGRE_LIB_DIRECTORY "lib${LIB_SUFFIX}" CACHE STRING "Install path for libraries, e.g. 'lib64' on some 64-bit Linux distros.") | |
+set(OGRE_LIBDATA_DIRECTORY "libdata" CACHE STRING "Install path for data files.") | |
if (WIN32) | |
option(OGRE_INSTALL_VSPROPS "Install Visual Studio Property Page." FALSE) | |
if (OGRE_INSTALL_VSPROPS) | |
@@ -477,6 +478,7 @@ | |
OGRE_PROFILING | |
OGRE_CONFIG_STATIC_LINK_CRT | |
OGRE_LIB_DIRECTORY | |
+ OGRE_LIBDATA_DIRECTORY | |
) | |
################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- OgreMain/include/OgrePlatformInformation.h.orig 2013-12-01 18:28:12.000000000 +0100 | |
+++ OgreMain/include/OgrePlatformInformation.h 2014-06-15 21:59:18.000000000 +0200 | |
@@ -94,6 +94,7 @@ | |
OGRE_PLATFORM != OGRE_PLATFORM_NACL | |
# define __OGRE_HAVE_SSE 1 | |
#elif OGRE_DOUBLE_PRECISION == 0 && OGRE_CPU == OGRE_CPU_X86 && (OGRE_COMPILER == OGRE_COMPILER_GNUC || OGRE_COMPILER == OGRE_COMPILER_CLANG) && \ | |
+ defined(__SSE__) && \ | |
OGRE_PLATFORM != OGRE_PLATFORM_APPLE_IOS && OGRE_PLATFORM != OGRE_PLATFORM_NACL | |
# define __OGRE_HAVE_SSE 1 | |
#endif | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Tools/XMLConverter/CMakeLists.txt.orig 2013-04-16 03:54:34.000000000 +0200 | |
+++ Tools/XMLConverter/CMakeLists.txt 2013-08-12 14:34:48.000000000 +0200 | |
@@ -37,6 +37,7 @@ | |
set(TINYXML_LIBRARIES "") | |
endif(NOT TINYXML_FOUND) | |
+set (CMAKE_INCLUDE_DIRECTORIES_BEFORE ON) | |
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${TINYXML_INCLUDE_DIR}) | |
add_definitions(-DTIXML_USE_STL) | |
ogre_add_executable(OgreXMLConverter ${HEADER_FILES} ${SOURCE_FILES}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment