Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Apr 2021 00:34:24 GMT
From:      Matthias Andree <mandree@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 04b92cf74665 - main - graphics/kf5-kimageformats: make compatible with OpenEXR/Imath 3.0
Message-ID:  <202104120034.13C0YOCH092336@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mandree:

URL: https://cgit.FreeBSD.org/ports/commit/?id=04b92cf74665f7660ea58aa11e80e9d1fb49d49e

commit 04b92cf74665f7660ea58aa11e80e9d1fb49d49e
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2021-04-11 01:49:40 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2021-04-12 00:33:41 +0000

    graphics/kf5-kimageformats: make compatible with OpenEXR/Imath 3.0
---
 graphics/kf5-kimageformats/Makefile | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/graphics/kf5-kimageformats/Makefile b/graphics/kf5-kimageformats/Makefile
index b47210e93f3e..5994bc70853e 100644
--- a/graphics/kf5-kimageformats/Makefile
+++ b/graphics/kf5-kimageformats/Makefile
@@ -1,17 +1,20 @@
 PORTNAME=	kimageformats
 DISTVERSION=	${KDE_FRAMEWORKS_VERSION}
+PORTREVISION=	1
 CATEGORIES=	graphics kde kde-frameworks
 
 MAINTAINER=	kde@FreeBSD.org
 COMMENT=	KF5 library providing support for additional image formats
 
-LIB_DEPENDS=	libHalf.so:graphics/ilmbase
+LIB_DEPENDS=	libImath.so:math/Imath
 
 USES=		cmake compiler:c++11-lib kde:5 pkgconfig qt:5 tar:xz
 USE_KDE=	archive ecm
 USE_QT=		core gui printsupport widgets \
 		buildtools_build qmake_build
 
+CFLAGS+=	-I${LOCALBASE}/include/Imath
+
 OPTIONS_DEFINE=	AVIF OPENEXR
 OPTIONS_DEFAULT=	AVIF OPENEXR
 OPTIONS_SUB=	yes
@@ -20,7 +23,11 @@ AVIF_DESC=		AV1 Image File Format via libavif
 AVIF_LIB_DEPENDS=	libavif.so:graphics/libavif
 AVIF_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_libavif
 
-OPENEXR_LIB_DEPENDS=	libIlmImf.so:graphics/openexr
+OPENEXR_LIB_DEPENDS=	libOpenEXR.so:graphics/openexr
 OPENEXR_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_OpenEXR
 
+post-patch:
+		${REINPLACE_CMD} s,Imf::Int64,uint64_t, \
+			${WRKSRC}/src/imageformats/exr.cpp
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104120034.13C0YOCH092336>