diff options
author | 2016-07-22 22:41:03 +0200 | |
---|---|---|
committer | 2016-07-22 22:41:38 +0200 | |
commit | 3aea916e9e7b022a1f0fa9de237d27fa938a98f8 (patch) | |
tree | e43fc28ac14dab2cd261e47f67ca27e467b51843 /media-libs/glm/glm-0.9.7.6.ebuild | |
parent | sci-physics/espresso: live ebuild update (diff) | |
download | gentoo-3aea916e9e7b022a1f0fa9de237d27fa938a98f8.tar.gz gentoo-3aea916e9e7b022a1f0fa9de237d27fa938a98f8.tar.bz2 gentoo-3aea916e9e7b022a1f0fa9de237d27fa938a98f8.zip |
media-libs/glm: Version bump to 0.9.7.6
Package-Manager: portage-2.2.28
Diffstat (limited to 'media-libs/glm/glm-0.9.7.6.ebuild')
-rw-r--r-- | media-libs/glm/glm-0.9.7.6.ebuild | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/media-libs/glm/glm-0.9.7.6.ebuild b/media-libs/glm/glm-0.9.7.6.ebuild new file mode 100644 index 000000000000..5af7bf4ff524 --- /dev/null +++ b/media-libs/glm/glm-0.9.7.6.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 +} |