2019-08-11 11:13:55 +02:00
|
|
|
# Description: C++ mathematics library for 3D software based on the OpenGL Shading Language (GLSL) specification
|
|
|
|
# URL: http://glm.g-truc.net
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2020-11-08 11:13:10 +00:00
|
|
|
# Depends on:
|
2019-08-11 11:13:55 +02:00
|
|
|
|
|
|
|
name=glm
|
2020-04-14 07:41:42 +00:00
|
|
|
version=0.9.9.8
|
2019-08-11 11:13:55 +02:00
|
|
|
release=1
|
2020-01-06 14:45:53 +01:00
|
|
|
source=(https://github.com/g-truc/glm/archive/$version/$name-$version.tar.gz
|
2020-11-08 11:13:10 +00:00
|
|
|
glm.pc.in glmConfig.cmake.in glmConfigVersion.cmake.in
|
2020-01-06 13:11:23 +01:00
|
|
|
glmTargets.cmake)
|
2019-08-11 11:13:55 +02:00
|
|
|
|
|
|
|
build() {
|
2020-01-06 14:45:53 +01:00
|
|
|
cd $name-$version
|
2020-01-06 13:11:23 +01:00
|
|
|
mkdir -p $PKG/usr/include/
|
|
|
|
cp -r glm $PKG/usr/include/
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/lib/pkgconfig/
|
2020-02-11 13:14:51 +01:00
|
|
|
sed "s/@VERSION@/$version/" $SRC/glm.pc.in > $PKG/usr/lib/pkgconfig/glm.pc
|
2020-01-06 13:11:23 +01:00
|
|
|
|
|
|
|
mkdir -p $PKG/usr/lib/cmake/glm/
|
2020-02-11 13:14:51 +01:00
|
|
|
sed "s/@VERSION@/$version/" $SRC/glmConfigVersion.cmake.in > $PKG/usr/lib/cmake/glm/glmConfigVersion.cmake
|
|
|
|
sed "s/@VERSION@/$version/" $SRC/glmConfig.cmake.in > $PKG/usr/lib/cmake/glm/glmConfig.cmake
|
2020-01-06 13:11:23 +01:00
|
|
|
install -Dm644 $SRC/glmTargets.cmake $PKG/usr/lib/cmake/glm/glmTargets.cmake
|
2019-08-11 11:13:55 +02:00
|
|
|
}
|