embree: don't ignore CXXFLAGS, fix build with ispc 1.13+

This commit is contained in:
Đoàn Trần Công Danh 2021-03-17 07:04:48 +07:00
parent d5a40c3615
commit d626b78877
2 changed files with 14 additions and 4 deletions

View file

@ -0,0 +1,12 @@
Index: embree-2.17.7/tutorials/common/common.isph
===================================================================
--- embree-2.17.7.orig/tutorials/common/common.isph
+++ embree-2.17.7/tutorials/common/common.isph
@@ -16,7 +16,3 @@
#pragma once
-typedef unsigned int64 uint64;
-typedef unsigned int32 uint32;
-typedef unsigned int16 uint16;
-typedef unsigned int8 uint8;

View file

@ -4,6 +4,7 @@ version=2.17.7
revision=2
archs="x86_64"
build_style=cmake
configure_args="-DTBB_ROOT=/usr -DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF"
hostmakedepends="ispc"
makedepends="libfreeglut-devel libXmu-devel tbb-devel MesaLib-devel libpng-devel
libopenexr-devel libjpeg-turbo-devel libmagick-devel"
@ -13,10 +14,7 @@ license="Apache-2.0"
homepage="https://embree.github.io/"
distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
checksum=c0694f287fa1fbb382aba3a895702e248d92f7e89c0e5f64aefee965482ec04c
nopie=y
configure_args="-DTBB_ROOT=/usr -DENABLE_TUTORIALS=OFF"
patch_args=-Np1
embree-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"