graphics/povray37: make compatible with OpenEXR/Imath 3.0

This commit is contained in:
Matthias Andree 2021-04-11 23:51:11 +02:00
parent 02ac12ab43
commit 73ed226ab4
3 changed files with 25 additions and 3 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= povray
DISTVERSIONPREFIX= v
DISTVERSION= 3.7.0.8
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= graphics
PKGNAMESUFFIX= 37
@ -78,8 +78,8 @@ CONFIGURE_ARGS+=--without-libtiff
.if ${PORT_OPTIONS:MSTATIC}
BUILD_DEPENDS+= openexr>=1.6:graphics/openexr
.else
LIB_DEPENDS+= libIlmImf.so:graphics/openexr
CPPFLAGS+= -I${LOCALBASE}/include/OpenEXR
LIB_DEPENDS+= libOpenEXR.so:graphics/openexr libImath.so:math/Imath
CPPFLAGS+= -I${LOCALBASE}/include/OpenEXR -I${LOCALBASE}/include/Imath -DInt64=uint64_t
.endif
.else
CONFIGURE_ARGS+=--without-openexr

View File

@ -0,0 +1,11 @@
--- source/backend/povray.cpp.orig 2018-05-27 09:54:06 UTC
+++ source/backend/povray.cpp
@@ -68,7 +68,7 @@
extern "C" const char* TIFFGetVersion(void);
#endif
#ifndef OPENEXR_MISSING
- #include <IlmBaseConfig.h>
+ #include <ImathConfig.h>
#include <OpenEXRConfig.h>
// NOTE:
// Versions of OpenEXR and IlmImf prior to 1.7.1 do not seem to have a way to get the version number,

View File

@ -0,0 +1,11 @@
--- unix/config/ax_check_openexr.m4.orig 2018-05-27 09:54:06 UTC
+++ unix/config/ax_check_openexr.m4
@@ -56,7 +56,7 @@ AC_DEFUN([AX_CHECK_OPENEXR],
# check include file
AC_CHECK_HEADER(
[OpenEXR/ImfCRgbaFile.h],
- [AC_CHECK_LIB([IlmImf], [ImfInputReadPixels], [], [ax_check_openexr="not found"])],
+ [AC_CHECK_LIB([OpenEXR], [ImfInputReadPixels], [], [ax_check_openexr="not found"])],
[ax_check_openexr="no headers"]
)
fi