From 739c65c54cb0e957df5e9b76f93fb02554e5cac3 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 4 May 2022 23:52:30 +0100 Subject: moved everything to new file formatting --- repo/system/glm/glm.xibuild | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 repo/system/glm/glm.xibuild (limited to 'repo/system/glm/glm.xibuild') diff --git a/repo/system/glm/glm.xibuild b/repo/system/glm/glm.xibuild new file mode 100644 index 0000000..cd918c3 --- /dev/null +++ b/repo/system/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/ +} -- cgit v1.2.1