glm, bump version (#5011)

* clean up

* glm, bump version

Co-authored-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Schrijvers Luc
2020-05-24 15:38:03 +02:00
committed by GitHub
parent 61a17aa47f
commit 29dd4f38e6
2 changed files with 32 additions and 49 deletions

View File

@@ -1,49 +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="2"
SOURCE_URI="http://downloads.sourceforge.net/project/ogl-math/glm-$portVersion/glm-${portVersion}.zip"
CHECKSUM_SHA256="1a8a0c84dee47b0493aa8d45ccd38dc02b917d9f14da835c5b06fb0b93bb33e8"
SOURCE_DIR="glm"
ARCHITECTURES="x86 x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
glm$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
"
PROVIDES_devel="
glm${secondaryArchSuffix}_devel = $portVersion
"
REQUIRES_devel="
glm$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libgl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
"
BUILD()
{
true
}
INSTALL()
{
mkdir -p $includeDir/glm
cp -R glm/*.hpp glm/detail glm/gtc glm/gtx $includeDir/glm/
rm $includeDir/glm/detail/*.cpp
packageEntries devel $developDir
}

View File

@@ -0,0 +1,32 @@
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
}