diff options
Diffstat (limited to 'media-libs/glm')
-rw-r--r-- | media-libs/glm/Manifest | 1 | ||||
-rw-r--r-- | media-libs/glm/glm-0.9.7.2.ebuild | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/media-libs/glm/Manifest b/media-libs/glm/Manifest index ef9429bb4510..1d8a019f304b 100644 --- a/media-libs/glm/Manifest +++ b/media-libs/glm/Manifest @@ -3,3 +3,4 @@ DIST glm-0.9.3.2.zip 6451695 SHA256 ee66ab8336b9b6b3dff69268c497688268cf5a9d2b3a DIST glm-0.9.5.1.zip 4071873 SHA256 4f621657a3a7e73e2062f0c9b4366ba5e14a3c3b3c04928378f37fdd70bd0bf5 SHA512 9644e7d76dda057fb25c3c387316c551e964a179662baf095cc2519ec84693499fd1f9c8d614ed617c3a0e406843aad7a01cbbc9399e86d52cdd8cf72f1b9194 WHIRLPOOL 5a5e2e64c4236f46d97f286b6675fd01b92905fa86c02fe9812d272d0dd0319a1bff8ab0c8d27d1bb706b0033ba08b49085bd83264b72954ca7704fe7260333c DIST glm-0.9.6.1.zip 4232099 SHA256 1a8a0c84dee47b0493aa8d45ccd38dc02b917d9f14da835c5b06fb0b93bb33e8 SHA512 7f1468c5e60e65181f4685a2429fa8d70350a3576175a55b7c9e8597a03837cb84aeaeb88d311e1e1948c5bd90ad9cee9286433cb78fdee54b0fbe5313ce2f84 WHIRLPOOL 88e0c6df25ee1bf73b625614be61c21c07389a7ecc05e2e74714da08412ab3ab0eba6c99c6a793f7b08d52f6748ef5202d8301c1b6cf4d64ab06184bc9482030 DIST glm-0.9.7.1.tar.gz 3453078 SHA256 285a0dc8f762b4e523c8710fbd97accaace0c61f45bc8be2bdb0deed07b0e6f3 SHA512 380d3611b5867a4680c213bfec00e974d29c9aa92ed374adc9ca2ae04d6c4d29f20b88ccf3359df5faabf5050f9e6dc6e417ee9f5f4b484a3ef5aefecd3827a2 WHIRLPOOL 7a76f6efb7acacd7d2025d9ccf9d3feb0887e55dd10c757387ad07dbae44d2aba41758994ca870c64e55e501a9916b3dbdf3606dc9c7cf44368cc405d6c26a4e +DIST glm-0.9.7.2.tar.gz 3454084 SHA256 8fb3049a620cee153462c8c41df9c9ecebfc44cddf823828b25f9eb53a541890 SHA512 edcfc8df59e3adfd6131156bc817a7880afb336d9bea1f2e7324b7c3937057fc8c6eca3b47f5c0c33b08e79ed7ca4f69d884fdfe75204c070b7b79d24256b81a WHIRLPOOL ab296f91ed27cbe24c0ad3fa6fa03787e42aa27ae1c7bf9e31ebadada00a0d00f228aaf8a762ec1f1aaf7096c79db8642ad31926bbe2383a019b2b813e29de23 diff --git a/media-libs/glm/glm-0.9.7.2.ebuild b/media-libs/glm/glm-0.9.7.2.ebuild new file mode 100644 index 000000000000..5af7bf4ff524 --- /dev/null +++ b/media-libs/glm/glm-0.9.7.2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils + +DESCRIPTION="OpenGL Mathematics" +HOMEPAGE="http://glm.g-truc.net/" +SRC_URI="https://github.com/g-truc/glm/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( HappyBunny MIT )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="test cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_avx cpu_flags_x86_avx2" + +RDEPEND="virtual/opengl" + +src_configure() { + if use test; then + local mycmakeargs=( -DGLM_TEST_ENABLE=ON ) + + use cpu_flags_x86_sse2 && mycmakeargs+=( -DGLM_TEST_ENABLE_SIMD_SSE2=ON ) + use cpu_flags_x86_sse3 && mycmakeargs+=( -DGLM_TEST_ENABLE_SIMD_SSE3=ON ) + use cpu_flags_x86_avx && mycmakeargs+=( -DGLM_TEST_ENABLE_SIMD_AVX=ON ) + use cpu_flags_x86_avx2 && mycmakeargs+=( -DGLM_TEST_ENABLE_SIMD_AVX2=ON ) + fi + + cmake-utils_src_configure +} |