Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some parts of glm were retroactively marked as experimental, and using now leads to a compile error - added override for this error to consumers which need it.
- Loading branch information
Showing
14 changed files
with
122 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,25 @@ | ||
PORTNAME= glm | ||
PORTVERSION= 0.9.9.8 | ||
PORTVERSION= 1.0.1 | ||
PORTEPOCH= 1 | ||
CATEGORIES= math graphics | ||
|
||
MAINTAINER= amdmi3@FreeBSD.org | ||
COMMENT= C++ mathematics library for software based on the OpenGL GLSL | ||
WWW= https://glm.g-truc.net/ | ||
WWW= https://github.com/g-truc/glm | ||
|
||
LICENSE= MIT | ||
LICENSE_FILE= ${WRKSRC}/copying.txt | ||
|
||
USES= cmake compiler:c++11-lang pkgconfig | ||
USE_GITHUB= yes | ||
GH_ACCOUNT= g-truc | ||
NO_ARCH= yes | ||
|
||
SUB_FILES= glm.pc | ||
CMAKE_OFF= GLM_BUILD_LIBRARY | ||
|
||
PORTDOCS= * | ||
|
||
OPTIONS_DEFINE= TEST DOCS | ||
TEST_CMAKE_BOOL= GLM_TEST_ENABLE | ||
TEST_TEST_TARGET= test | ||
|
||
post-patch: | ||
@${REINPLACE_CMD} -e '/printf/ s|EndTime - StartTime|static_cast<long>(&)|' \ | ||
${WRKSRC}/test/core/core_func_matrix.cpp | ||
|
||
do-install: | ||
@cd ${WRKSRC} && ${COPYTREE_SHARE} "glm" ${STAGEDIR}${PREFIX}/include \ | ||
"-not -name CMakeLists.txt" | ||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/cmake/glm | ||
${INSTALL_DATA} ${WRKSRC}/cmake/glm/*.cmake ${STAGEDIR}${PREFIX}/lib/cmake/glm | ||
${INSTALL_DATA} ${WRKDIR}/glm.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig | ||
|
||
do-install-DOCS-on: | ||
@cd ${WRKSRC} && ${COPYTREE_SHARE} "doc *.md" ${STAGEDIR}${DOCSDIR} | ||
|
||
.include <bsd.port.mk> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TIMESTAMP = 1615332075 | ||
SHA256 (g-truc-glm-0.9.9.8_GH0.tar.gz) = 7d508ab72cb5d43227a3711420f06ff99b0a0cb63ee2f93631b162bfe1fe9592 | ||
SIZE (g-truc-glm-0.9.9.8_GH0.tar.gz) = 4368032 | ||
TIMESTAMP = 1709055434 | ||
SHA256 (g-truc-glm-1.0.1_GH0.tar.gz) = 9f3174561fd26904b23f0db5e560971cbf9b3cbda0b280f04d5c379d03bf234c | ||
SIZE (g-truc-glm-1.0.1_GH0.tar.gz) = 4567161 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
This is needed to fix x11-wm/gamescope with glm 1.0.1 | ||
|
||
https://github.com/g-truc/glm/issues/1269 | ||
|
||
--- glm/gtx/bit.hpp.orig 2024-02-27 17:19:47 UTC | ||
+++ glm/gtx/bit.hpp | ||
@@ -46,7 +46,7 @@ namespace glm | ||
/// @see gtc_round | ||
/// @see gtx_bit | ||
template<typename genIUType> | ||
- GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoAbove(genIUType Value); | ||
+ GLM_FUNC_DECL genIUType powerOfTwoAbove(genIUType Value); | ||
|
||
/// Return the power of two number which value is just higher the input value. | ||
/// Deprecated, use ceilPowerOfTwo from GTC_round instead | ||
@@ -54,7 +54,7 @@ namespace glm | ||
/// @see gtc_round | ||
/// @see gtx_bit | ||
template<length_t L, typename T, qualifier Q> | ||
- GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q> powerOfTwoAbove(vec<L, T, Q> const& value); | ||
+ GLM_FUNC_DECL vec<L, T, Q> powerOfTwoAbove(vec<L, T, Q> const& value); | ||
|
||
/// Return the power of two number which value is just lower the input value. | ||
/// Deprecated, use floorPowerOfTwo from GTC_round instead | ||
@@ -62,7 +62,7 @@ namespace glm | ||
/// @see gtc_round | ||
/// @see gtx_bit | ||
template<typename genIUType> | ||
- GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoBelow(genIUType Value); | ||
+ GLM_FUNC_DECL genIUType powerOfTwoBelow(genIUType Value); | ||
|
||
/// Return the power of two number which value is just lower the input value. | ||
/// Deprecated, use floorPowerOfTwo from GTC_round instead | ||
@@ -70,7 +70,7 @@ namespace glm | ||
/// @see gtc_round | ||
/// @see gtx_bit | ||
template<length_t L, typename T, qualifier Q> | ||
- GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q> powerOfTwoBelow(vec<L, T, Q> const& value); | ||
+ GLM_FUNC_DECL vec<L, T, Q> powerOfTwoBelow(vec<L, T, Q> const& value); | ||
|
||
/// Return the power of two number which value is the closet to the input value. | ||
/// Deprecated, use roundPowerOfTwo from GTC_round instead | ||
@@ -78,7 +78,7 @@ namespace glm | ||
/// @see gtc_round | ||
/// @see gtx_bit | ||
template<typename genIUType> | ||
- GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoNearest(genIUType Value); | ||
+ GLM_FUNC_DECL genIUType powerOfTwoNearest(genIUType Value); | ||
|
||
/// Return the power of two number which value is the closet to the input value. | ||
/// Deprecated, use roundPowerOfTwo from GTC_round instead | ||
@@ -86,7 +86,7 @@ namespace glm | ||
/// @see gtc_round | ||
/// @see gtx_bit | ||
template<length_t L, typename T, qualifier Q> | ||
- GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q> powerOfTwoNearest(vec<L, T, Q> const& value); | ||
+ GLM_FUNC_DECL vec<L, T, Q> powerOfTwoNearest(vec<L, T, Q> const& value); | ||
|
||
/// @} | ||
} //namespace glm |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- test/CMakeLists.txt.orig 2024-02-27 17:19:47 UTC | ||
+++ test/CMakeLists.txt | ||
@@ -11,7 +11,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
endif() | ||
|
||
if(NOT GLM_DISABLE_AUTO_DETECTION) | ||
- add_compile_options(-Werror -Weverything) | ||
+ add_compile_options(-Weverything) | ||
endif() | ||
|
||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU") | ||
@@ -20,7 +20,6 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU") | ||
endif() | ||
|
||
if(NOT GLM_DISABLE_AUTO_DETECTION) | ||
- add_compile_options(-Werror) | ||
# add_compile_options(-Wpedantic) | ||
# add_compile_options(-Wall) | ||
# add_compile_options(-Wextra) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- test/core/core_func_matrix.cpp.orig 2024-02-27 17:19:47 UTC | ||
+++ test/core/core_func_matrix.cpp | ||
@@ -392,7 +392,7 @@ static int test_inverse_perf(std::size_t Count, std::s | ||
//glm::uint Ulp = 0; | ||
//Ulp = glm::max(glm::float_distance(*Dst, *Src), Ulp); | ||
|
||
- std::printf("inverse<%s>(%f): %lu\n", Message, static_cast<double>(Diff), EndTime - StartTime); | ||
+ std::printf("inverse<%s>(%f): %lu\n", Message, static_cast<double>(Diff), (unsigned long)(EndTime - StartTime)); | ||
|
||
return 0; | ||
} |
This file contains 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
This file contains 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