From bd8024cbaece710a3086d2ff4ab57caecffcebe5 Mon Sep 17 00:00:00 2001 From: Michael Knobloch <m.knobloch@fz-juelich.de> Date: Thu, 1 Dec 2022 11:14:51 +0100 Subject: [PATCH] Added GLM and install patch to 2023 stage --- .../g/GLM/GLM-0.9.9.8-GCCcore-11.3.0.eb | 33 +++++++++++++++++++ .../GLM/GLM-0.9.9.8_fix_missing_install.patch | 15 +++++++++ 2 files changed, 48 insertions(+) create mode 100644 Golden_Repo/g/GLM/GLM-0.9.9.8-GCCcore-11.3.0.eb create mode 100644 Golden_Repo/g/GLM/GLM-0.9.9.8_fix_missing_install.patch diff --git a/Golden_Repo/g/GLM/GLM-0.9.9.8-GCCcore-11.3.0.eb b/Golden_Repo/g/GLM/GLM-0.9.9.8-GCCcore-11.3.0.eb new file mode 100644 index 000000000..22d687ed0 --- /dev/null +++ b/Golden_Repo/g/GLM/GLM-0.9.9.8-GCCcore-11.3.0.eb @@ -0,0 +1,33 @@ +easyblock = 'CMakeMake' + +name = 'GLM' +version = '0.9.9.8' + +homepage = 'https://github.com/g-truc/glm' +description = """ +OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics +software based on the OpenGL Shading Language (GLSL) specifications.""" + +toolchain = {'name': 'GCCcore', 'version': '11.3.0'} + +source_urls = ['https://github.com/g-truc/glm/archive/'] +sources = ['%(version)s.tar.gz'] +patches = [ + 'GLM-0.9.9.8_fix_missing_install.patch', +] +checksums = [ + '7d508ab72cb5d43227a3711420f06ff99b0a0cb63ee2f93631b162bfe1fe9592', # 0.9.9.8.tar.gz + '1cc199f9d66679b0b5e9a9fbe20bca0d9b15760fa172ca8759dd15bab35802ca', # GLM-0.9.9.8_fix_missing_install.patch +] + +builddependencies = [ + ('binutils', '2.38'), + ('CMake', '3.23.1'), +] + +sanity_check_paths = { + 'files': [], + 'dirs': ['include/glm/gtc', 'include/glm/gtx'], +} + +moduleclass = 'lib' diff --git a/Golden_Repo/g/GLM/GLM-0.9.9.8_fix_missing_install.patch b/Golden_Repo/g/GLM/GLM-0.9.9.8_fix_missing_install.patch new file mode 100644 index 000000000..cc9f8fcba --- /dev/null +++ b/Golden_Repo/g/GLM/GLM-0.9.9.8_fix_missing_install.patch @@ -0,0 +1,15 @@ +Restore installation functionality which was removed in v0.9.9.6 + +Åke Sandgren, 20200519 +diff -ru glm-0.9.9.8.orig/CMakeLists.txt glm-0.9.9.8/CMakeLists.txt +--- glm-0.9.9.8.orig/CMakeLists.txt 2020-04-13 19:41:16.000000000 +0200 ++++ glm-0.9.9.8/CMakeLists.txt 2020-05-19 16:16:12.731259305 +0200 +@@ -8,6 +8,8 @@ + add_subdirectory(glm) + add_library(glm::glm ALIAS glm) + ++install(DIRECTORY glm DESTINATION "include") ++ + if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) + + add_subdirectory(test) -- GitLab