mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
glm, bump to version 1.0.3 (#13666)
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
SUMMARY="OpenGL Mathematics library"
|
||||
DESCRIPTION="GLM is a header only library, there is nothing to build, just \
|
||||
include it."
|
||||
HOMEPAGE="http://glm.g-truc.net"
|
||||
COPYRIGHT="2005-2014 G-Truc Creation"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/g-truc/glm/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="7d508ab72cb5d43227a3711420f06ff99b0a0cb63ee2f93631b162bfe1fe9592"
|
||||
SOURCE_FILENAME="glm-$portVersion.tar.gz"
|
||||
SOURCE_DIR="glm-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
glm = $portVersion
|
||||
devel:glm
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $includeDir/glm
|
||||
cp -R glm/*.hpp glm/detail glm/ext glm/gtc glm/gtx glm/simd $includeDir/glm/
|
||||
rm $includeDir/glm/detail/*.cpp
|
||||
}
|
||||
86
media-libs/glm/glm-1.0.3.recipe
Normal file
86
media-libs/glm/glm-1.0.3.recipe
Normal file
@@ -0,0 +1,86 @@
|
||||
SUMMARY="OpenGL Mathematics library"
|
||||
DESCRIPTION="GLM is a C++ mathematics library for 3D software based on the OpenGL Shading \
|
||||
Language (GLSL) specification
|
||||
|
||||
GLM provides classes and functions designed and implemented with the same naming conventions and \
|
||||
functionality than GLSL so that anyone who knows GLSL, can use GLM as well in C++.
|
||||
|
||||
This project isn't limited to GLSL features. An extension system, based on the GLSL extension \
|
||||
conventions, provides extended capabilities: matrix transformations, quaternions, data packing, \
|
||||
random numbers, noise, etc...
|
||||
|
||||
This library works perfectly with OpenGL but it also ensures interoperability with other third \
|
||||
party libraries and SDK. It is a good candidate for software rendering (raytracing / \
|
||||
rasterisation), image processing, physics simulations and any development context that requires a \
|
||||
simple and convenient mathematics library."
|
||||
HOMEPAGE="http://glm.g-truc.net"
|
||||
COPYRIGHT="2005-2014 G-Truc Creation"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/g-truc/glm/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="6775e47231a446fd086d660ecc18bcd076531cfedd912fbd66e576b118607001"
|
||||
SOURCE_FILENAME="glm-$portVersion.tar.gz"
|
||||
SOURCE_DIR="glm-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
portVersionCompat="$portVersion compat >= ${portVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
glm$secondaryArchSuffix = $portVersion
|
||||
lib:libglm$secondaryArchSuffix = $portVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
glm${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libglm$secondaryArchSuffix = $portVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
glm$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
ARCHITECTURES_doc="any"
|
||||
PROVIDES_doc="
|
||||
glm_doc
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_INSTALL_DATAROOTDIR=$libDir/cmake \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
|
||||
mkdir -p $documentationDir/packages/glm
|
||||
cp -r doc/api/* $documentationDir/packages/glm
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libglm
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
|
||||
packageEntries doc \
|
||||
$documentationDir
|
||||
}
|
||||
Reference in New Issue
Block a user