graphics/povray37: make compatible with OpenEXR/Imath 3.0
This commit is contained in:
parent
02ac12ab43
commit
73ed226ab4
@ -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
|
||||
|
11
graphics/povray37/files/patch-source_backend_povray.cpp
Normal file
11
graphics/povray37/files/patch-source_backend_povray.cpp
Normal 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,
|
@ -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
|
Loading…
Reference in New Issue
Block a user