Skip to content
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

openexr/Imath: update to 3.1.5. #36361

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -1678,13 +1678,12 @@ libtcmalloc_minimal_debug.so.4 gperftools-2.1.90_1
libtcmalloc_debug.so.4 gperftools-2.1.90_1
libprofiler.so.0 gperftools-2.1.90_1
libtcmalloc_and_profiler.so.4 gperftools-2.1.90_1
libHalf-2_4.so.24 ilmbase-2.4.0_1
libIex-2_4.so.24 ilmbase-2.4.0_1
libIexMath-2_4.so.24 ilmbase-2.4.0_1
libImath-2_4.so.24 ilmbase-2.4.0_1
libIlmThread-2_4.so.24 ilmbase-2.4.0_1
libIlmImf-2_4.so.24 libopenexr-2.4.0_1
libIlmImfUtil-2_4.so.24 libopenexr-2.4.0_1
libImath-3_1.so.29 Imath-3.1.5_1
libOpenEXRUtil-3_1.so.30 libopenexr-3.1.5_1
libOpenEXRCore-3_1.so.30 libopenexr-3.1.5_1
libOpenEXR-3_1.so.30 libopenexr-3.1.5_1
libIlmThread-3_1.so.30 libopenexr-3.1.5_1
libIex-3_1.so.30 libopenexr-3.1.5_1
libGraphicsMagick.so.3 libgraphicsmagick-1.3.19_1
libGraphicsMagick++.so.12 libgraphicsmagick-1.3.22_1
libGraphicsMagickWand.so.2 libgraphicsmagick-1.3.19_1
Expand Down Expand Up @@ -2226,9 +2225,9 @@ libgom-1.0.so.0 gom-0.3.0_1
libetpan.so.20 libetpan-1.9.3_4
libxmp.so.4 libxmp-4.3.7_1
libKF5ThreadWeaver.so.5 threadweaver-5.26.0_1
libOpenImageIO_Util.so.2.2 openimageio-2.2.13.1_1
libOpenImageIO.so.2.2 openimageio-2.2.13.1_1
libOpenColorIO.so.1 opencolorio-1.0.8_1
libOpenImageIO_Util.so.2.3 openimageio-2.3.13.0_1
libOpenImageIO.so.2.3 openimageio-2.3.13.0_1
libOpenColorIO.so.2.1 opencolorio-2.1.1_1
libyaml-cpp.so.0.6 yaml-cpp-0.6.2_1
libpaper.so.1 libpaper-1.1.24_1
libhtsjava.so.2 httrack-3.49.2_7
Expand Down Expand Up @@ -3906,7 +3905,7 @@ libOpenImageDenoise.so.1 openimagedenoise-1.3.0_1
libcbang0.so cbang-1.6.0_3
libblosc.so.1 c-blosc-1.17.1_1
libopenvdb.so.9.0 openvdb-9.0.0_1
libAlembic.so.1.7 alembic-1.7.13_1
libAlembic.so.1.8 alembic-1.8.3_1
libmodsecurity.so.3 modsecurity-3.0.4_1
libraven.so.0 budgie-desktop-10.5.1_1
libbudgie-private.so.0 budgie-desktop-10.5.1_1
Expand Down
1 change: 0 additions & 1 deletion srcpkgs/Field3D-devel

This file was deleted.

25 changes: 0 additions & 25 deletions srcpkgs/Field3D/template

This file was deleted.

1 change: 1 addition & 0 deletions srcpkgs/Imath-devel
31 changes: 31 additions & 0 deletions srcpkgs/Imath/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Template file for 'Imath'
pkgname=Imath
version=3.1.5
revision=1
build_style=cmake
short_desc="Library of vector, matrix, and math operations for computer graphics"
maintainer="tibequadorian <[email protected]>"
license="BSD-3-Clause"
homepage="https://github.com/AcademySoftwareFoundation/Imath"
distfiles="https://github.com/AcademySoftwareFoundation/Imath/archive/refs/tags/v${version}.tar.gz"
checksum=1e9c7c94797cf7b7e61908aed1f80a331088cc7d8873318f70376e4aed5f25fb

if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
# https://github.com/AcademySoftwareFoundation/Imath/issues/151
make_check=no
fi

post_install() {
vlicense LICENSE.md
}

Imath-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
8 changes: 4 additions & 4 deletions srcpkgs/alembic/template
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Template file for 'alembic'
pkgname=alembic
version=1.7.16
version=1.8.3
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="zlib-devel ilmbase-devel"
makedepends="zlib-devel Imath-devel"
short_desc="Open framework for storing and sharing scene data"
maintainer="Orphaned <[email protected]>"
license="BSD-3-Clause, MIT"
homepage="https://alembic.io"
homepage="https://www.alembic.io"
distfiles="https://github.com/alembic/alembic/archive/${version}.tar.gz"
checksum=2529586c89459af34d27a36ab114ad1d43dafd44061e65cfcfc73b7457379e7c
checksum=b0bc74833bff118a869e81e6acb810a58797e77ef63143954b2f8e817c7f65cb

case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
Expand Down
6 changes: 3 additions & 3 deletions srcpkgs/blender/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'blender'
pkgname=blender
version=3.0.0
revision=4
version=3.1.2
revision=1
archs="x86_64* ppc64*"
build_style="cmake"
pycompile_dirs="/usr/share/blender/${version%.*}/scripts"
Expand All @@ -26,7 +26,7 @@ maintainer="Enno Boland <[email protected]>"
license="GPL-3.0-or-later"
homepage="https://www.blender.org"
distfiles="https://download.blender.org/source/blender-${version}.tar.xz"
checksum=50f0f32bcdf8825a12ba5c8d853b6e6c6b2da65ef01e858ea5900a06cccbf1cb
checksum=f36c42d3e9ac42e3290842ca96e825bcb3a26f90822ba159c417ca070e6c2b15
python_version=3
CXXFLAGS="-DNDEBUG"
CFLAGS="$CXXFLAGS"
Expand Down
93 changes: 93 additions & 0 deletions srcpkgs/calligra/patches/openexr3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
From eab11436712f92afc6e7b14b25d1f6df217d79d7 Mon Sep 17 00:00:00 2001
From: Antonio Rojas <[email protected]>
Date: Sat, 24 Apr 2021 11:19:52 +0200
Subject: [PATCH] Support building with OpenEXR 3

Try to find OpenEXR 3 first using the upstream cmake config, and fall back to using our FindOpenEXR
---
CMakeLists.txt | 9 +++++++--
libs/pigment/CMakeLists.txt | 2 +-
plugins/colorengines/lcms2/CMakeLists.txt | 6 +++---
plugins/colorengines/lcms2/tests/CMakeLists.txt | 2 +-
4 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8955357ff97..ea56c84bb11 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -363,8 +363,13 @@ endif ()
## Check for OpenEXR
##

-macro_optional_find_package(OpenEXR)
-macro_bool_to_01(OPENEXR_FOUND HAVE_OPENEXR)
+macro_optional_find_package(OpenEXR 3.0 CONFIG QUIET)
+if(TARGET OpenEXR::OpenEXR)
+ set(OPENEXR_LIBRARIES OpenEXR::OpenEXR)
+else()
+ macro_optional_find_package(OpenEXR)
+endif()
+macro_bool_to_01(OpenEXR_FOUND HAVE_OPENEXR)

##
## Test for GNU Scientific Library
diff --git a/libs/pigment/CMakeLists.txt b/libs/pigment/CMakeLists.txt
index a039251e2ad..6eb6a8e70b6 100644
--- a/libs/pigment/CMakeLists.txt
+++ b/libs/pigment/CMakeLists.txt
@@ -12,7 +12,7 @@ include_directories( ${PIGMENT_INCLUDES} ${Boost_INCLUDE_DIR})

set(FILE_OPENEXR_SOURCES)
set(LINK_OPENEXR_LIB)
-if(OPENEXR_FOUND)
+if(OpenEXR_FOUND)
include_directories(${OPENEXR_INCLUDE_DIR})
set(LINK_OPENEXR_LIB ${OPENEXR_LIBRARIES})
add_definitions(${OPENEXR_DEFINITIONS})
diff --git a/plugins/colorengines/lcms2/CMakeLists.txt b/plugins/colorengines/lcms2/CMakeLists.txt
index 77807ff9702..920adbeaf87 100644
--- a/plugins/colorengines/lcms2/CMakeLists.txt
+++ b/plugins/colorengines/lcms2/CMakeLists.txt
@@ -31,7 +31,7 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/colorprofiles
)

-if (HAVE_LCMS24 AND OPENEXR_FOUND)
+if (HAVE_LCMS24 AND OpenEXR_FOUND)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/colorspaces/gray_f16
${CMAKE_CURRENT_SOURCE_DIR}/colorspaces/rgb_f16
@@ -41,7 +41,7 @@ endif ()

set(FILE_OPENEXR_SOURCES)
set(LINK_OPENEXR_LIB)
-if(OPENEXR_FOUND)
+if(OpenEXR_FOUND)
include_directories(${OPENEXR_INCLUDE_DIR})
set(LINK_OPENEXR_LIB ${OPENEXR_LIBRARIES})
add_definitions(${OPENEXR_DEFINITIONS})
@@ -80,7 +80,7 @@ set ( lcmsengine_SRCS
LcmsEnginePlugin.cpp
)

-if (HAVE_LCMS24 AND OPENEXR_FOUND)
+if (HAVE_LCMS24 AND OpenEXR_FOUND)
set ( lcmsengine_SRCS
${lcmsengine_SRCS}
colorspaces/gray_f16/GrayF16ColorSpace.cpp
diff --git a/plugins/colorengines/lcms2/tests/CMakeLists.txt b/plugins/colorengines/lcms2/tests/CMakeLists.txt
index 2540acc834c..77bd0b3fe4a 100644
--- a/plugins/colorengines/lcms2/tests/CMakeLists.txt
+++ b/plugins/colorengines/lcms2/tests/CMakeLists.txt
@@ -12,7 +12,7 @@ include_directories( ../colorspaces/cmyk_u16
../colorprofiles
..
)
-if(OPENEXR_FOUND)
+if(OpenEXR_FOUND)
include_directories(${OPENEXR_INCLUDE_DIR})
endif()
include_directories( ${PIGMENT_INCLUDES} ${LCMS2_INCLUDE_DIR} )
--
GitLab

2 changes: 1 addition & 1 deletion srcpkgs/calligra/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'calligra'
pkgname=calligra
version=3.2.1
revision=6
revision=7
build_style=cmake
configure_args="-Wno-dev -DCALLIGRA_SHOULD_BUILD_UNMAINTAINED=ON
-DBUILD_TESTING=OFF"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/darktable/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'darktable'
pkgname=darktable
version=3.8.0
revision=3
revision=4
# upstream only supports these archs:
archs="x86_64* aarch64* ppc64le*"
build_style=cmake
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/embree/template
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Template file for 'embree'
pkgname=embree
version=3.13.2
revision=2
revision=3
archs="x86_64*"
build_style=cmake
configure_args="-DTBB_ROOT=/usr -DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF"
hostmakedepends="ispc"
makedepends="libfreeglut-devel libXmu-devel tbb-devel MesaLib-devel libpng-devel
libopenexr-devel libjpeg-turbo-devel libmagick-devel glfw-devel"
libjpeg-turbo-devel libmagick-devel glfw-devel"
short_desc="High Performance Ray Tracing Kernels"
maintainer="Andrea Brancaleoni <[email protected]>"
license="Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/gimp/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'gimp'
pkgname=gimp
version=2.10.30
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-check-update --datadir=/usr/share"
hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
Expand All @@ -27,7 +27,7 @@ no_generic_pkgconfig_link=yes
pre_configure() {
NOCONFIGURE=1 autoreconf -fi
if [ "$CROSS_BUILD" ]; then
vsed -i 's:^py_prefix=`:py_prefix='"$XBPS_CROSS_BASE"'`:' configure
vsed -i 's:^py_prefix=:py_prefix='"$XBPS_CROSS_BASE"':' configure
fi
# don't allow configure to set DATADIRNAME=lib
vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
Expand Down
13 changes: 13 additions & 0 deletions srcpkgs/gmic/patches/openexr3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- a/src/Makefile
+++ b/src/Makefile
@@ -308,8 +308,8 @@ MAGICK_LIBS = $(shell pkg-config --libs GraphicsMagick++ || echo -lGraphicsMagic

# Enable native support of EXR image files, using the OpenEXR library.
# (http://www.openexr.com/)
-OPENEXR_CFLAGS = -Dcimg_use_openexr -I$(USR)/$(INCLUDE)/OpenEXR
-OPENEXR_LIBS = -lIlmImf -lHalf
+OPENEXR_CFLAGS = -Dcimg_use_openexr -I$(USR)/$(INCLUDE)/OpenEXR -I$(USR)/$(INCLUDE)/Imath
+OPENEXR_LIBS = -lOpenEXR -lImath

# Enable Fast Fourier Transforms, using the FFTW3 library.
# (http://www.fftw.org/)
4 changes: 2 additions & 2 deletions srcpkgs/gmic/template
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Template file for 'gmic'
pkgname=gmic
version=2.9.9
revision=1
revision=2
_zart_hash=939cf381c5871e506aabd066037acf2b55143c1d
build_wrksrc="src"
build_style=gnu-makefile
build_helper=qmake
hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
makedepends="fftw-devel ilmbase-devel libopenexr-devel MesaLib-devel libopencv-devel
makedepends="fftw-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
gtk+-devel gimp-devel qt5-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/hugin/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'hugin'
pkgname=hugin
version=2021.0.0
revision=1
revision=2
wrksrc="${pkgname}-${version}"
build_style=cmake
build_helper=cmake-wxWidgets-gtk3
Expand Down
1 change: 0 additions & 1 deletion srcpkgs/ilmbase-devel

This file was deleted.

21 changes: 0 additions & 21 deletions srcpkgs/ilmbase/patches/musl-_fpstate.patch

This file was deleted.

15 changes: 0 additions & 15 deletions srcpkgs/ilmbase/patches/pkgconfig-prefix.patch

This file was deleted.

Loading