glm/glm-0.9.9.8-pkgconfig.patch

27 lines
948 B
Diff
Raw Normal View History

Accepting request 900879 from home:alois:branches:science - Update to version 0.9.9.8 Features: * Added GLM_EXT_vector_intX* and GLM_EXT_vector_uintX* extensions * Added GLM_EXT_matrix_intX* and GLM_EXT_matrix_uintX* extensions Improvements: * Added clamp, repeat, mirrorClamp and mirrorRepeat function to GLM_EXT_scalar_commond and GLM_EXT_vector_commond extensions with tests Fixes: * Fixed unnecessary warnings from matrix_projection.inl * Fixed quaternion slerp overload which interpolates with extra spins * Fixed for glm::length using arch64 * Fixed singularity check for quatLookAt version 0.9.9.7 Improvements: * Improved Neon support with more functions optimized * Added CMake GLM interface * Added fma implementation based on std::fma * Added missing quat constexpr * Added GLM_FORCE_QUAT_DATA_WXYZ to store quat data as w,x,y,z instead of x,y,z,w Fixes: * Fixed equal ULP variation when using negative sign * Fixed for intersection ray/plane and added related tests * Fixed ARM 64bit detection * Fixed GLM_EXT_matrix_clip_space warnings * Fixed Wimplicit-int-float-conversion warnings with clang 10+ * Fixed EXT_matrix_clip_space perspectiveFov version 0.9.9.6 Features: * Added Neon support to glm * Added SYCL support * Added EXT_scalar_integer extension with power of two and multiple scalar functions * Added EXT_vector_integer extension with power of two and multiple vector functions Improvements: * Added missing genType check for bitCount and bitfieldReverse Fixes: * Fixed for g++6 where -std=c++1z sets __cplusplus to 201500 instead of 201402 * Fixed hash hashes qua instead of tquat * Fixed .natvis as structs renamed * Fixed ldexp and frexp declaration * Fixed missing const to quaternion conversion operators * Fixed EXT_scalar_ulp and EXT_vector_ulp API coding style * Fixed quaternion componant order: w, {x, y, z} * Fixed GLM_HAS_CXX11_STL broken on Clang with Linux * Fixed Clang or GCC build due to wrong GLM_HAS_IF_CONSTEXPR definition * Fixed CUDA 9 build - Drop glm-cmake-config.patch (no longer applies) - Add glm-0.9.9.8-install.patch (courtesy of Fedora), glm-0.9.9.8-pkgconfig.patch and glm-0.9.9.8-fix_tests_big-endian.patch OBS-URL: https://build.opensuse.org/request/show/900879 OBS-URL: https://build.opensuse.org/package/show/science/glm?expand=0&rev=11
2021-06-19 14:45:12 +00:00
Index: glm-0.9.9.8/CMakeLists.txt
===================================================================
--- glm-0.9.9.8.orig/CMakeLists.txt
+++ glm-0.9.9.8/CMakeLists.txt
@@ -17,6 +17,9 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_
write_basic_package_version_file("glmConfigVersion.cmake" COMPATIBILITY AnyNewerVersion)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/glmConfigVersion.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/glm)
+ configure_file(glm.pc.in glm.pc @ONLY)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/glm.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
+
include(CTest)
if(BUILD_TESTING)
add_subdirectory(test)
Index: glm-0.9.9.8/glm.pc.in
===================================================================
--- /dev/null
+++ glm-0.9.9.8/glm.pc.in
@@ -0,0 +1,7 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+includedir=${prefix}/include
+
+Name: GLM
+Description: OpenGL Mathematics
+Version: @GLM_VERSION@
+Cflags: -I${includedir}