diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2020-02-18 12:21:46 +0100 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2020-02-18 12:22:38 +0100 |
commit | cace804f673d1d78a94e7244d66986853859ca22 (patch) | |
tree | e72515beba1fdbb4206cc686d86b54e391928fee /media-libs/glm/glm-0.9.9.5.ebuild | |
parent | kde-apps/kross-interpreters: support for new ruby (diff) | |
download | gentoo-cace804f673d1d78a94e7244d66986853859ca22.tar.gz gentoo-cace804f673d1d78a94e7244d66986853859ca22.tar.bz2 gentoo-cace804f673d1d78a94e7244d66986853859ca22.zip |
media-libs/glm: restore arm64 stable version
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'media-libs/glm/glm-0.9.9.5.ebuild')
-rw-r--r-- | media-libs/glm/glm-0.9.9.5.ebuild | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/media-libs/glm/glm-0.9.9.5.ebuild b/media-libs/glm/glm-0.9.9.5.ebuild new file mode 100644 index 000000000000..b439b0bf903d --- /dev/null +++ b/media-libs/glm/glm-0.9.9.5.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 arm64 ~ppc64 ~x86" +IUSE="test cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_avx cpu_flags_x86_avx2" +RESTRICT="!test? ( test )" + +RDEPEND="virtual/opengl" + +src_configure() { + if use test; then + local mycmakeargs=( + -DGLM_TEST_ENABLE=ON + -DGLM_TEST_ENABLE_SIMD_SSE2="$(usex cpu_flags_x86_sse2 ON OFF)" + -DGLM_TEST_ENABLE_SIMD_SSE3="$(usex cpu_flags_x86_sse3 ON OFF)" + -DGLM_TEST_ENABLE_SIMD_AVX="$(usex cpu_flags_x86_avx ON OFF)" + -DGLM_TEST_ENABLE_SIMD_AVX2="$(usex cpu_flags_x86_avx2 ON OFF)" + ) + fi + + cmake-utils_src_configure +} |