From: Philipp Zabel <p.zabel@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Subject: [ptxdist] [PATCH 2/3] glm: new package
Date: Tue, 28 Jan 2025 13:40:57 +0100 [thread overview]
Message-ID: <20250128124058.1620435-2-p.zabel@pengutronix.de> (raw)
In-Reply-To: <20250128124058.1620435-1-p.zabel@pengutronix.de>
The OpenGL Mathematics library is a dependency of vkmark.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
rules/glm.in | 9 ++++++++
rules/glm.make | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+)
create mode 100644 rules/glm.in
create mode 100644 rules/glm.make
diff --git a/rules/glm.in b/rules/glm.in
new file mode 100644
index 000000000000..7b49d56a3c17
--- /dev/null
+++ b/rules/glm.in
@@ -0,0 +1,9 @@
+## SECTION=multimedia_libs
+
+config GLM
+ tristate
+ prompt "glm"
+ select HOST_CMAKE
+ help
+ OpenGL Mathematics (GLM) C++ library for graphics software based on
+ the OpenGL Shading Language (GLSL) specifications.
diff --git a/rules/glm.make b/rules/glm.make
new file mode 100644
index 000000000000..068e7448aad0
--- /dev/null
+++ b/rules/glm.make
@@ -0,0 +1,56 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_GLM) += glm
+
+#
+# Paths and names
+#
+GLM_VERSION := 1.0.1
+GLM_MD5 := f824ac50e16310a95279032f82cbd341
+GLM := glm-$(GLM_VERSION)
+GLM_SUFFIX := tar.gz
+GLM_URL := https://github.com/g-truc/glm/archive/refs/tags/$(GLM_VERSION).$(GLM_SUFFIX)
+GLM_SOURCE := $(SRCDIR)/$(GLM).$(GLM_SUFFIX)
+GLM_DIR := $(BUILDDIR)/$(GLM)
+GLM_LICENSE := MIT
+GLM_LICENSE_FILES := file://copying.txt;md5=462e4b97f73ef12f8171c3c546ce4e8d
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+GLM_CONF_TOOL := cmake
+
+GLM_CONF_OPT := \
+ $(CROSS_CMAKE_USR) \
+ -DGLM_BUILD_INSTALL=ON \
+ -DGLM_BUILD_LIBRARY=ON \
+ -DGLM_BUILD_TESTS=OFF \
+ -DGLM_DISABLE_AUTO_DETECTION=ON \
+ -DGLM_ENABLE_CXX_11=OFF \
+ -DGLM_ENABLE_CXX_14=OFF \
+ -DGLM_ENABLE_CXX_17=OFF \
+ -DGLM_ENABLE_CXX_20=ON \
+ -DGLM_ENABLE_CXX_98=OFF \
+ -DGLM_ENABLE_FAST_MATH=OFF \
+ -DGLM_ENABLE_LANG_EXTENSIONS=OFF \
+ -DGLM_ENABLE_SIMD_AVX=OFF \
+ -DGLM_ENABLE_SIMD_AVX2=$(call ptx/onoff,PTXCONF_ARCH_X86_64) \
+ -DGLM_ENABLE_SIMD_NEON=$(call ptx/onoff,PTXCONF_ARCH_ARM_NEON) \
+ -DGLM_ENABLE_SIMD_SSE2=OFF \
+ -DGLM_ENABLE_SIMD_SSE3=OFF \
+ -DGLM_ENABLE_SIMD_SSE4_1=OFF \
+ -DGLM_ENABLE_SIMD_SSE4_2=OFF \
+ -DGLM_ENABLE_SIMD_SSSE3=OFF \
+ -DGLM_FORCE_PURE=OFF
+
+# vim: syntax=make
--
2.39.5
next prev parent reply other threads:[~2025-01-28 12:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-28 12:40 [ptxdist] [PATCH 1/3] assimp: " Philipp Zabel
2025-01-28 12:40 ` Philipp Zabel [this message]
2025-02-14 9:02 ` [ptxdist] [APPLIED] glm: " Michael Olbrich
2025-01-28 12:40 ` [ptxdist] [PATCH 3/3] vkmark: " Philipp Zabel
2025-02-03 8:21 ` [ptxdist] [PATCH 1/3] assimp: " Philipp Zabel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250128124058.1620435-2-p.zabel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox