mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
graphics/gdal: make compatible with OpenEXR/Imath 3.0
This commit is contained in:
parent
0eff9817a4
commit
9ab14902a1
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= gdal
|
||||
PORTVERSION= 3.2.1
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= graphics geography
|
||||
MASTER_SITES= https://download.osgeo.org/gdal/${PORTVERSION}/ \
|
||||
LOCAL/sunpoet
|
||||
@ -108,7 +108,8 @@ ECW_LIB_DEPENDS= libNCSEcw.so:graphics/libecwj2
|
||||
EXPAT_CONFIGURE_WITH= expat
|
||||
EXPAT_LIB_DEPENDS= libexpat.so:textproc/expat2
|
||||
EXR_CONFIGURE_ON= --with-exr
|
||||
EXR_LIB_DEPENDS= libIlmImf.so:graphics/openexr
|
||||
EXR_LIB_DEPENDS= libOpenEXR.so:graphics/openexr libImath.so:math/Imath
|
||||
EXR_CFLAGS= -DInt64=uint64_t
|
||||
FREEXL_CONFIGURE_WITH= freexl
|
||||
FREEXL_LIB_DEPENDS= libfreexl.so:textproc/freexl
|
||||
GEOS_CONFIGURE_OFF= --with-geos=no
|
||||
@ -163,7 +164,7 @@ ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/^#GDAL_SLIB_SONAME/ s|^#||' ${WRKSRC}/GDALmake.opt.in
|
||||
@${REINPLACE_CMD} -e 's|$$(INST_LIB)/pkgconfig|${PREFIX}/libdata/pkgconfig|; s| LICENSE.TXT||' ${WRKSRC}/GNUmakefile
|
||||
@${REINPLACE_CMD} -e 's|-lminizip|-lkmlminizip|' ${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|-lminizip|-lkmlminizip|' -e 's|IlmImf|OpenEXR|g' ${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|getCString()|c_str()|' ${WRKSRC}/frmts/pdf/pdfdataset.cpp ${WRKSRC}/frmts/pdf/pdfobject.cpp
|
||||
# Clean up bundled libraries
|
||||
@${RM} -r ${WRKSRC}/alg/internal_libqhull/
|
||||
|
10
graphics/gdal/files/patch-frmts_exr_openexr__headers.h
Normal file
10
graphics/gdal/files/patch-frmts_exr_openexr__headers.h
Normal file
@ -0,0 +1,10 @@
|
||||
--- frmts/exr/openexr_headers.h.orig 2020-12-29 12:18:28 UTC
|
||||
+++ frmts/exr/openexr_headers.h
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "ImfMatrixAttribute.h"
|
||||
#include "ImfMultiPartInputFile.h"
|
||||
#include "ImfMultiPartOutputFile.h"
|
||||
+#include "ImfOutputPart.h"
|
||||
#include "ImfPartType.h"
|
||||
#include "ImfPreviewImage.h"
|
||||
#include "ImfRgbaFile.h"
|
Loading…
Reference in New Issue
Block a user