diff --git a/srcpkgs/irrlicht/template b/srcpkgs/irrlicht/template index e6fffe0db80..89180f4e531 100644 --- a/srcpkgs/irrlicht/template +++ b/srcpkgs/irrlicht/template @@ -1,7 +1,7 @@ # Template file for 'irrlicht' pkgname=irrlicht version=1.8.3 -revision=2 +revision=3 hostmakedepends="unzip pkg-config" makedepends="libjpeg-turbo-devel libpng-devel libXcursor-devel libXext-devel MesaLib-devel" short_desc="Lightning fast realtime 3D engine" @@ -11,6 +11,12 @@ homepage="http://irrlicht.sourceforge.net" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.zip" checksum=9e7be44277bf2004d73580a8585e7bd3c9ce9a3c801691e4f4aed030ac68931c +_gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }') +if [ "${_gccver%%.*}" -gt 5 ]; then + CXXFLAGS="-Wno-error=narrowing" +fi + + pre_build() { cd source/Irrlicht for file in COpenGLExtensionHandler.h glext.h glxext.h wglext.h; do