-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Openexr 3.2 #931
Closed
360highdynamicrangehdr
wants to merge
16
commits into
NatronGitHub:RB-2.5
from
360highdynamicrangehdr:patch-2
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2abb851
MINGWUpdate OpenEXR
360highdynamicrangehdr 1f0417d
update
360highdynamicrangehdr 4e5dd8a
Update 0007-export-TypedAttribute-value.patch
360highdynamicrangehdr 287097c
Update 0007-export-TypedAttribute-value.patch
360highdynamicrangehdr 580e8b2
Delete tools/MINGW-packages/mingw-w64-openexr/mingw-w64-openexr direc…
360highdynamicrangehdr f988941
Update
360highdynamicrangehdr 0aebfc7
Update
360highdynamicrangehdr e087d97
Update
360highdynamicrangehdr f8a0caa
Fix
360highdynamicrangehdr 0bee2a7
add libdeflate
360highdynamicrangehdr a8a9ebf
add mingw libdeflate
360highdynamicrangehdr 9efbe1b
build
360highdynamicrangehdr f8f07c3
Update build
360highdynamicrangehdr 2cc0643
Update
360highdynamicrangehdr 5d3ff35
mingw openexr off
360highdynamicrangehdr 1a25edc
Remove mingw
360highdynamicrangehdr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tools/MINGW-packages/mingw-w64-libdeflate/002-pkg-config.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- libdeflate-1.15/libdeflate.pc.in.orig 2022-12-05 05:40:10.000000000 +0100 | ||
+++ libdeflate-1.15/libdeflate.pc.in 2022-12-05 20:32:35.832915600 +0100 | ||
@@ -7,12 +7,5 @@ | ||
Description: Fast implementation of DEFLATE, zlib, and gzip | ||
Version: @PROJECT_VERSION@ | ||
Libs: -L${libdir} -ldeflate | ||
-Cflags: -I${includedir} | ||
- | ||
-# Note: this library's public header allows LIBDEFLATE_DLL to be defined when | ||
-# linking to the DLL on Windows, to make __declspec(dllimport) be used. | ||
-# However, the only way to define a shared-library-only flag in a pkgconfig file | ||
-# is to use the weird workaround of unconditionally defining it in Cflags, then | ||
-# undefining it in Cflags.private. Just don't bother with this, since | ||
-# __declspec(dllimport) is optional anyway. It is a very minor performance | ||
-# optimization that is irrelevant for most use cases of libdeflate. | ||
+Cflags: -I${includedir} -DLIBDEFLATE_DLL | ||
+Cflags.private: -ULIBDEFLATE_DLL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
_realname=libdeflate | ||
pkgbase=mingw-w64-${_realname} | ||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" | ||
pkgver=1.19 | ||
pkgrel=99.1 | ||
pkgdesc="Heavily optimized library for DEFLATE/zlib/gzip compression and decompression (mingw-w64)" | ||
arch=('any') | ||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') | ||
url='https://github.com/ebiggers/libdeflate' | ||
license=('spdx:MIT') | ||
makedepends=( | ||
"${MINGW_PACKAGE_PREFIX}-cc" | ||
"${MINGW_PACKAGE_PREFIX}-cmake" | ||
"${MINGW_PACKAGE_PREFIX}-ninja" | ||
) | ||
source=(${_realname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz" | ||
"002-pkg-config.patch") | ||
sha256sums=('27bf62d71cd64728ff43a9feb92f2ac2f2bf748986d856133cc1e51992428c25' | ||
'7feb96b6466375824af54a829dfe0d5cbd641970d64ef9fe0f9f4ab5e18040dd') | ||
|
||
prepare() { | ||
cd "${srcdir}"/${_realname}-${pkgver} | ||
|
||
patch -p1 -i "${srcdir}"/002-pkg-config.patch | ||
} | ||
|
||
build() { | ||
cd "${srcdir}/${_realname}-${pkgver}" | ||
mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}" | ||
|
||
declare -a extra_config | ||
if check_option "debug" "n"; then | ||
extra_config+=("-DCMAKE_BUILD_TYPE=Release") | ||
else | ||
extra_config+=("-DCMAKE_BUILD_TYPE=Debug") | ||
fi | ||
|
||
MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \ | ||
"${MINGW_PREFIX}"/bin/cmake.exe \ | ||
-GNinja \ | ||
-DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \ | ||
"${extra_config[@]}" \ | ||
../${_realname}-${pkgver} | ||
|
||
"${MINGW_PREFIX}"/bin/cmake.exe --build . | ||
} | ||
|
||
package() { | ||
cd "${srcdir}/build-${MSYSTEM}" | ||
|
||
DESTDIR="${pkgdir}" "${MINGW_PREFIX}"/bin/cmake.exe --install . | ||
|
||
install -Dm644 "${srcdir}"/${_realname}-${pkgver}/COPYING "${pkgdir}"${MINGW_PREFIX}/share/licenses/${_realname}/COPYING | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tools/MINGW-packages/mingw-w64-openexr/0007-export-TypedAttribute-value.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- a/src/lib/OpenEXR/ImfAttribute.h | ||
+++ b/src/lib/OpenEXR/ImfAttribute.h | ||
@@ -215,14 +215,14 @@ | ||
} | ||
|
||
template <class T> | ||
-inline T& | ||
+T& | ||
TypedAttribute<T>::value () | ||
{ | ||
return _value; | ||
} | ||
|
||
template <class T> | ||
-inline const T& | ||
+const T& | ||
TypedAttribute<T>::value () const | ||
{ | ||
return _value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this and the OPENEXR_BUILD_TOOLS=OFF logic above being removed? Are then no longer needed/defined in the new version of OPENEXR?