Bump abandoned package to close#132479.
- Use fetchFromGitHub to download the archive.
- No need for the updated platform.h patch. The released archive builds
with default stdenv. (It may be needed again in the future?.)
- Use the proper attribute to set CMake flags.
- Don't build the (dummy?) libraries. They are not used anyway by any
other target nor made available by the glmConfig.cmake file.
- Build and run the tests now.
- Don't define the GLM_COMPILER macro on Darwin. Doesn't seem necessary
anymore, there are no errors without it. (And it is not even documented
what was the original error that required it to be defined.)
- Upstream became package-unfriendly and removed the install command,
so it needs to be installed manually.
- Don't set the now unsupported CMake option GLM_INSTALL_ENABLE.
- Remove unwanted files from the include directory.
- Fix glmConfig.cmake with the proper path to the include directory.
- While on it, install a custom pkg-config file, since it is trivial.
- Don't install unnecessary files as documentation.
- Since I practically rewrote the entire derivation and the package is
abandoned, add myself as maintainer (I guess?).
I haven't been doing any maintenance for a long time now and not only
do I get notified, it also creates a fake impression that all these
packages had at least one maintainer when in practice they had none.
OpenGL Mathematics (GLM) is a header only C++ mathematics library for
graphics software based on the OpenGL Shading Language (GLSL)
specification and released under the MIT license.
http://glm.g-truc.net/