summaryrefslogtreecommitdiff
path: root/repo/glm/glm.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/glm/glm.xibuild
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/glm/glm.xibuild')
-rw-r--r--repo/glm/glm.xibuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/repo/glm/glm.xibuild b/repo/glm/glm.xibuild
new file mode 100644
index 0000000..cd918c3
--- /dev/null
+++ b/repo/glm/glm.xibuild
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+NAME="glm"
+DESC="C++ mathematics library for graphics programming"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=0.9.9.8
+SOURCE="https://github.com/g-truc/glm/archive/refs/tags/$PKG_VER/glm-$PKG_VER.tar.gz"
+ADDITIONAL="
+fix-endian-test.patch
+glm.pc
+"
+
+build () {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+
+ mkdir -p $PKG_DEST/usr/include/
+ cp -r glm $PKG_DEST/usr/include/
+
+ mkdir -p $PKG_DEST/usr/share/doc/
+ cp -r doc $PKG_DEST/usr/share/doc/glm
+
+ mkdir -p $PKG_DEST/usr/lib/pkgconfig
+ cp glm.pc $PKG_DEST/usr/lib/pkgconfig/
+}