glm: fix for gcc>=7.3

This commit is contained in:
Jürgen Buchmüller 2018-02-10 07:27:07 +01:00
parent 22dec142bc
commit 565a0ece5d
1 changed files with 11 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# Template file for 'glm'
pkgname=glm
version=0.9.8.5
revision=1
revision=2
noarch=yes
build_style=cmake
hostmakedepends="unzip"
hostmakedepends="dos2unix unzip"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
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
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() {
local f
for f in $(find ${DESTDIR}/usr/include -type f); do
dos2unix "$f"
done
vlicense copying.txt
}