glm: fix for gcc>=7.3
This commit is contained in:
parent
22dec142bc
commit
565a0ece5d
1 changed files with 11 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'glm'
|
# Template file for 'glm'
|
||||||
pkgname=glm
|
pkgname=glm
|
||||||
version=0.9.8.5
|
version=0.9.8.5
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
hostmakedepends="unzip"
|
hostmakedepends="dos2unix unzip"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
short_desc="A C++ mathematics library for graphics programming"
|
short_desc="A C++ mathematics library for graphics programming"
|
||||||
|
@ -13,6 +13,15 @@ distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${vers
|
||||||
checksum=9f9f520ec7fb8c20c69d6b398ed928a2448c6a3245cbedb8631a56a987c38660
|
checksum=9f9f520ec7fb8c20c69d6b398ed928a2448c6a3245cbedb8631a56a987c38660
|
||||||
wrksrc=${pkgname}
|
wrksrc=${pkgname}
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
# Fix compiler version detection: GCC >= 7.2
|
||||||
|
sed -i glm/simd/platform.h -e "/(__GNUC__ == 7)/s/ == 2/>= 2/"
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
local f
|
||||||
|
for f in $(find ${DESTDIR}/usr/include -type f); do
|
||||||
|
dos2unix "$f"
|
||||||
|
done
|
||||||
vlicense copying.txt
|
vlicense copying.txt
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue