From 7b4d34957404d786b052fa4a8f523cab15c75e38 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 2 Nov 2025 21:15:52 +0200 Subject: [PATCH] ports: Add glm port --- ports/glm/build.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 ports/glm/build.sh diff --git a/ports/glm/build.sh b/ports/glm/build.sh new file mode 100755 index 00000000..1fbc7e26 --- /dev/null +++ b/ports/glm/build.sh @@ -0,0 +1,23 @@ +#!/bin/bash ../install.sh + +NAME='glm' +VERSION='1.0.2' +DOWNLOAD_URL="https://github.com/g-truc/glm/archive/refs/tags/$VERSION.tar.gz#19edf2e860297efab1c74950e6076bf4dad9de483826bc95e2e0f2c758a43f65" + +configure() { + $BANAN_CMAKE \ + --toolchain="$BANAN_TOOLCHAIN_DIR/Toolchain.txt" \ + -B build -G Ninja --fresh . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DGLM_BUILD_TESTS=OFF \ + || exit 1 +} + +build() { + $BANAN_CMAKE --build build || exit 1 +} + +install() { + $BANAN_CMAKE --install build || exit 1 +}