graphics/hugin: make compatible with OpenEXR/Imath 3.0

This commit is contained in:
Matthias Andree 2021-04-11 20:45:06 +02:00
parent 447c9c7b2d
commit f99057b3c2
2 changed files with 38 additions and 5 deletions

View file

@ -2,15 +2,15 @@
PORTNAME= hugin
PORTVERSION= 2019.2.0
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
MAINTAINER= grog@FreeBSD.org
COMMENT= GUI for Panorama Tools, to stitch panoramic images
LIB_DEPENDS= libIlmImf.so:graphics/openexr \
libImath.so:graphics/ilmbase \
LIB_DEPENDS= libOpenEXR.so:graphics/openexr \
libImath.so:math/Imath \
libboost_thread.so:devel/boost-libs \
liblcms2.so:graphics/lcms2 \
libexiv2.so:graphics/exiv2 \
@ -26,13 +26,17 @@ RUN_DEPENDS= enblend>=4.1.4:graphics/enblend \
LICENSE= GPLv2
CFLAGS+= -I${LOCALBASE}/include/Imath
BROKEN_i386= Fails to build: ld: error: src/hugin_base/libhuginbase.so.0.0: undefined reference to __atomic_load
USES= cmake compiler:c++11-lib desktop-file-utils gettext gl gnome \
jpeg pkgconfig shared-mime-info shebangfix sqlite tar:bzip2
jpeg pkgconfig shared-mime-info shebangfix sqlite tar:bzip2 xorg
CMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE=${WX_CONFIG}
USE_GL= gl glew glu glut
USE_WX= 3.0+
USE_GL= glew glut
USE_XORG= x11
INSTALLS_ICONS= yes
SHEBANG_FILES= src/hugin_script_interface/hpi.py \

View file

@ -0,0 +1,29 @@
--- CMakeModules/FindOpenEXR.cmake.orig 2019-12-07 08:35:27 UTC
+++ CMakeModules/FindOpenEXR.cmake
@@ -35,7 +35,7 @@ ENDIF (NOT WIN32 OR MINGW)
include(FindLibraryWithDebug)
find_library_with_debug(OPENEXR_HALF_LIBRARY
WIN32_DEBUG_POSTFIX d
- NAMES Half-2_3 Half
+ NAMES Imath
PATHS
${_OPENEXRLinkDir}
${SYSTEM_LIB_DIRS}
@@ -45,7 +45,7 @@ ENDIF (NOT WIN32 OR MINGW)
find_library_with_debug(OPENEXR_IEX_LIBRARY
WIN32_DEBUG_POSTFIX d
- NAMES Iex-2_3 Iex-2_2 Iex
+ NAMES Iex
PATHS
${_OPENEXRLinkDir}
${SYSTEM_LIB_DIRS}
@@ -76,7 +76,7 @@ ENDIF (NOT WIN32 OR MINGW)
find_library_with_debug(OPENEXR_ILMIMF_LIBRARY
WIN32_DEBUG_POSTFIX d
- NAMES IlmImf-2_3 IlmImf-2_2 IlmImf
+ NAMES OpenEXR
PATHS
${_OPENEXRLinkDir}
${SYSTEM_LIB_DIRS}