aboutsummaryrefslogtreecommitdiff
path: root/math/glm
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2014-12-04 18:32:35 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2014-12-04 18:32:35 +0000
commit6f351b1767ee9d532384b5fc44e97132163a51a6 (patch)
tree256810c58370b9e40d303c4dc8601b93e742ece6 /math/glm
parent3e2c93d74d21126197ce6ddbd2f512c6fbccae0d (diff)
downloadports-6f351b1767ee9d532384b5fc44e97132163a51a6.tar.gz
ports-6f351b1767ee9d532384b5fc44e97132163a51a6.zip
Notes
Diffstat (limited to 'math/glm')
-rw-r--r--math/glm/Makefile1
-rw-r--r--math/glm/files/patch-glm__detail__type_int.hpp35
2 files changed, 36 insertions, 0 deletions
diff --git a/math/glm/Makefile b/math/glm/Makefile
index 08ea9748fc64..d6836f3f2923 100644
--- a/math/glm/Makefile
+++ b/math/glm/Makefile
@@ -3,6 +3,7 @@
PORTNAME= glm
PORTVERSION= 0.9.5.4
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= math graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
diff --git a/math/glm/files/patch-glm__detail__type_int.hpp b/math/glm/files/patch-glm__detail__type_int.hpp
new file mode 100644
index 000000000000..1a3fd5ddc853
--- /dev/null
+++ b/math/glm/files/patch-glm__detail__type_int.hpp
@@ -0,0 +1,35 @@
+--- glm/detail/type_int.hpp.orig 2014-12-04 12:55:42.000000000 -0500
++++ glm/detail/type_int.hpp 2014-12-04 12:57:55.000000000 -0500
+@@ -32,22 +32,22 @@
+ #include "setup.hpp"
+
+ #if GLM_HAS_EXTENDED_INTEGER_TYPE
+-# include <cstdint>
++# include <tr1/cstdint>
+ #endif
+
+ namespace glm{
+ namespace detail
+ {
+ # if GLM_HAS_EXTENDED_INTEGER_TYPE
+- typedef std::int8_t int8;
+- typedef std::int16_t int16;
+- typedef std::int32_t int32;
+- typedef std::int64_t int64;
+-
+- typedef std::uint8_t uint8;
+- typedef std::uint16_t uint16;
+- typedef std::uint32_t uint32;
+- typedef std::uint64_t uint64;
++ typedef ::int8_t int8;
++ typedef ::int16_t int16;
++ typedef ::int32_t int32;
++ typedef ::int64_t int64;
++
++ typedef ::uint8_t uint8;
++ typedef ::uint16_t uint16;
++ typedef ::uint32_t uint32;
++ typedef ::uint64_t uint64;
+ # else
+ # if(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) // C99 detected, 64 bit types available
+ typedef int64_t sint64;