pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/hugin hugin: build with openexr3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/297d2678e452
branches:  trunk
changeset: 455690:297d2678e452
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Jul 08 21:27:07 2021 +0000

description:
hugin: build with openexr3

diffstat:

 graphics/hugin/Makefile                                     |  10 ++++-
 graphics/hugin/distinfo                                     |   4 +-
 graphics/hugin/patches/patch-CMakeModules_FindOpenEXR.cmake |  20 +++++++++++++
 graphics/hugin/patches/patch-CMakeModules_FindVIGRA.cmake   |  15 +++++++++
 4 files changed, 45 insertions(+), 4 deletions(-)

diffs (92 lines):

diff -r d2fb2ea6f698 -r 297d2678e452 graphics/hugin/Makefile
--- a/graphics/hugin/Makefile   Thu Jul 08 21:26:12 2021 +0000
+++ b/graphics/hugin/Makefile   Thu Jul 08 21:27:07 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.112 2021/04/21 13:24:47 adam Exp $
+# $NetBSD: Makefile,v 1.113 2021/07/08 21:27:07 markd Exp $
 
 DISTNAME=      hugin-2020.0.0
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=hugin/}
 EXTRACT_SUFX=  .tar.bz2
@@ -42,12 +42,16 @@
 post-extract:
        ${MKDIR} ${WRKDIR}/build
 
+# Doesn't define the ZLIB::ZLIB target needed by OpenEXR 3
+post-patch:
+       rm ${WRKSRC}/CMakeModules/FindZLIB.cmake
+
 .include "../../mk/bsd.prefs.mk"
 
 .include "../../databases/sqlite3/buildlink3.mk"
 .include "../../devel/boost-headers/buildlink3.mk"
 .include "../../devel/boost-libs/buildlink3.mk"
-.include "../../devel/swig2/buildlink3.mk"
+.include "../../devel/swig3/buildlink3.mk"
 .include "../../devel/tclap/buildlink3.mk"
 .include "../../graphics/exiv2/buildlink3.mk"
 .include "../../graphics/glew/buildlink3.mk"
diff -r d2fb2ea6f698 -r 297d2678e452 graphics/hugin/distinfo
--- a/graphics/hugin/distinfo   Thu Jul 08 21:26:12 2021 +0000
+++ b/graphics/hugin/distinfo   Thu Jul 08 21:27:07 2021 +0000
@@ -1,11 +1,13 @@
-$NetBSD: distinfo,v 1.24 2021/01/09 21:17:37 adam Exp $
+$NetBSD: distinfo,v 1.25 2021/07/08 21:27:07 markd Exp $
 
 SHA1 (hugin-2020.0.0.tar.bz2) = 20e39ab82e1d8208a7eee2f216ab1271c95f583f
 RMD160 (hugin-2020.0.0.tar.bz2) = 499c24bf2dd0eb0b1e223183004dd00f9ced61c2
 SHA512 (hugin-2020.0.0.tar.bz2) = 4c55767c630ea03faf359bda606e5e9e7709a47ab41e821772da8c6da0cf658b1d31d7d8e96ea1c41ec61bdeb2da8c86c92b5d6964a9301732a13137178ec04e
 Size (hugin-2020.0.0.tar.bz2) = 10371301 bytes
 SHA1 (patch-CMakeLists.txt) = 94e087f3eeab899a6dad701cc4d8a95414a980df
+SHA1 (patch-CMakeModules_FindOpenEXR.cmake) = 74be9d83d98c50ea0cce05b8c2cafbb2ea2dc601
 SHA1 (patch-CMakeModules_FindPNG.cmake) = 811fd3cf6f819b31129e1560cd8acd1f7ee6defc
+SHA1 (patch-CMakeModules_FindVIGRA.cmake) = 12faefe589ef9e237473243e88398d2c90f2ae93
 SHA1 (patch-doc_deghosting_mask.pod) = fe5462b10966420b0cf3fab004854d9dab3bfb4f
 SHA1 (patch-src_hugin1_base__wx_wxPanoCommand.cpp) = d5bf8f747ae86338e728c472d3dc04bf4c84f182
 SHA1 (patch-src_hugin1_calibrate__lens_LensCalFrame.cpp) = 9b815a681317cb19880e7bb6ef170bc14d01b28b
diff -r d2fb2ea6f698 -r 297d2678e452 graphics/hugin/patches/patch-CMakeModules_FindOpenEXR.cmake
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/hugin/patches/patch-CMakeModules_FindOpenEXR.cmake       Thu Jul 08 21:27:07 2021 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-CMakeModules_FindOpenEXR.cmake,v 1.1 2021/07/08 21:27:07 markd Exp $
+
+openexr3 patch
+
+--- CMakeModules/FindOpenEXR.cmake.orig        2020-08-21 18:08:05.000000000 +0000
++++ CMakeModules/FindOpenEXR.cmake
+@@ -11,6 +11,13 @@
+ # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+ 
+ 
++FIND_PACKAGE(OpenEXR CONFIG REQUIRED)
++IF (TARGET OpenEXR::OpenEXR)
++    SET(OPENEXR_FOUND TRUE)
++    SET(OPENEXR_INCLUDE_DIR OpenEXR::OpenEXR)
++    SET(OPENEXR_LIBRARIES OpenEXR::OpenEXR)
++ENDIF()
++
+ if (OPENEXR_INCLUDE_DIR AND OPENEXR_LIBRARIES)
+   # in cache already
+   SET(OPENEXR_FOUND TRUE)
diff -r d2fb2ea6f698 -r 297d2678e452 graphics/hugin/patches/patch-CMakeModules_FindVIGRA.cmake
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/hugin/patches/patch-CMakeModules_FindVIGRA.cmake Thu Jul 08 21:27:07 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-CMakeModules_FindVIGRA.cmake,v 1.1 2021/07/08 21:27:07 markd Exp $
+
+openexr3 patch
+
+--- CMakeModules/FindVIGRA.cmake.orig  2018-07-23 17:20:45.000000000 +0000
++++ CMakeModules/FindVIGRA.cmake
+@@ -74,7 +74,7 @@ IF (VIGRA_FOUND)
+         OUTPUT_STRIP_TRAILING_WHITESPACE
+       )
+       STRING(TOLOWER "${OUTPUT_LDD_VIGRA}" OUTPUT_LDD_VIGRA_LOWER)
+-      IF(NOT "${OUTPUT_LDD_VIGRA_LOWER}" MATCHES "libilmimf")
++      IF(NOT "${OUTPUT_LDD_VIGRA_LOWER}" MATCHES "libopenexr")
+         MESSAGE(FATAL_ERROR "Libvigraimpex found. But vigraimpex seems to compiled without OpenEXR support. OpenEXR support is required for Hugin.")
+       ENDIF()
+     ELSE()



Home | Main Index | Thread Index | Old Index