aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Marz <main@lmarz.org>2021-09-02 11:47:35 +0200
committerLeon Marz <main@lmarz.org>2021-09-17 11:02:23 +0200
commit69d5f9bf5c43ee8903b1e6850166f2b620fab3f0 (patch)
tree978558c37b29c0b121174a1c82618b502874acb7
parent096649f89577d6ff118fbaf6eccafc59e0a0faf5 (diff)
downloadaports-69d5f9bf5c43ee8903b1e6850166f2b620fab3f0.tar.gz
aports-69d5f9bf5c43ee8903b1e6850166f2b620fab3f0.tar.bz2
aports-69d5f9bf5c43ee8903b1e6850166f2b620fab3f0.tar.xz
testing/opencolorio: take maintainership, upgrade to 2.1.0
-rw-r--r--testing/opencolorio/0001-build-type-none.patch32
-rw-r--r--testing/opencolorio/APKBUILD56
2 files changed, 63 insertions, 25 deletions
diff --git a/testing/opencolorio/0001-build-type-none.patch b/testing/opencolorio/0001-build-type-none.patch
new file mode 100644
index 0000000000..1e7e8afe84
--- /dev/null
+++ b/testing/opencolorio/0001-build-type-none.patch
@@ -0,0 +1,32 @@
+From 4c2c153f266df924620c98efd33d87769ec7cadb Mon Sep 17 00:00:00 2001
+From: Leon Marz <main@lmarz.org>
+Date: Fri, 17 Sep 2021 10:56:50 +0200
+Subject: [PATCH] build type none
+
+---
+ CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b0840ac..2dcdfa9 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -65,6 +65,7 @@ endif()
+ ###############################################################################
+ # Define compilation mode i.e. debug or release
+
++if(false)
+ if(NOT DEFINED CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "")
+ message(STATUS "Setting build type to 'Release' as none was specified.")
+ set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build." FORCE)
+@@ -86,6 +87,7 @@ if(NOT "${CMAKE_BUILD_TYPE}" IN_LIST CMAKE_CONFIGURATION_TYPES)
+ message(FATAL_ERROR
+ "CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} is unsupported. Supported values are: ${_CMAKE_CONFIGURATION_TYPES_STR}.")
+ endif()
++endif()
+
+ # Is that in debug mode?
+
+--
+2.33.0
+
diff --git a/testing/opencolorio/APKBUILD b/testing/opencolorio/APKBUILD
index 761b362c84..4420f3865e 100644
--- a/testing/opencolorio/APKBUILD
+++ b/testing/opencolorio/APKBUILD
@@ -1,19 +1,29 @@
# Contributor: Mark Riedesel <mark@klowner.com>
-# Maintainer: Mark Riedesel <mark@klowner.com>
+# Maintainer: Leon Marz <main@lmarz.org>
pkgname=opencolorio
-pkgver=2.0.1
-pkgrel=1
+pkgver=2.1.0
+pkgrel=0
pkgdesc="A color management framework for visual effects and animation"
url="https://opencolorio.org/"
-# fails to build with OpenEXR 3
-#arch="all !mips !mips64 !riscv64 !s390x" # blocked by openimageio
+arch="all !mips !mips64 !riscv64 !s390x" # blocked by openimageio
# tests in arches other than x86_64 fail but mostly to FP precision
options="!check"
license="BSD-3-Clause AND GPL-2.0-or-later"
-makedepends="cmake freeglut-dev glew-dev python3-dev lcms2-dev yaml-cpp-dev
- expat-dev py3-pybind11-dev openexr-dev openimageio-dev"
+makedepends="cmake
+ expat-dev
+ freeglut-dev
+ glew-dev
+ lcms2-dev
+ openexr-dev
+ openimageio-dev
+ py3-pybind11-dev
+ python3-dev
+ yaml-cpp-dev
+ "
subpackages="py3-$pkgname:py3 $pkgname-dev $pkgname-tools"
-source="$pkgname-$pkgver.tar.gz::https://github.com/imageworks/OpenColorIO/archive/v$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v$pkgver.tar.gz
+ 0001-build-type-none.patch
+ "
builddir="$srcdir/OpenColorIO-$pkgver"
prepare() {
@@ -23,8 +33,6 @@ prepare() {
build() {
local use_sse2
- # Just to be sure we're using Alpine packages.
- rm -f ext/lcms* ext/tinyxml* ext/yaml*
case "$CARCH" in
x86_64) use_sse2=TRUE ;;
@@ -32,41 +40,39 @@ build() {
esac
cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=/usr/lib \
- -DOCIO_BUILD_NUKE=OFF \
- -DOCIO_BUILD_SHARED=ON \
- -DOCIO_BUILD_STATIC=OFF \
- -DOCIO_BUILD_APPS=ON \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DOCIO_BUILD_TESTS=OFF \
-DOCIO_BUILD_GPU_TESTS=OFF \
- -DOCIO_USE_SSE="$use_sse2" \
- -DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-error=cast-function-type"
- make -C build
+ -DOCIO_USE_SSE="$use_sse2"
+
+ cmake --build build
}
check() {
- CTEST_OUTPUT_ON_FAILURE=1 make -C build test
+ cd build
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
- make DESTDIR="$pkgdir" -C build install
+ DESTDIR="$pkgdir" cmake --install build
}
tools() {
pkgdesc="OpenColorIO color management framework tools"
- mkdir -p "$subpkgdir"/usr/
- mv "$pkgdir"/usr/bin "$subpkgdir"/usr
+ amove usr/bin
}
py3() {
pkgdesc="Python3 bindings for OpenColorIO color management framework"
depends="python3"
- mkdir -p "$subpkgdir"/usr/lib
- mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib
+ amove usr/lib/python*
}
sha512sums="
-5787cc4cadb0a1832c925712ca0dfef6e843082b9461460e1798326c6fceaa97bee78e5298651e6a8a3662b348eab5ab9791e94c3efcac337da07229fb559338 opencolorio-2.0.1.tar.gz
+a0f4fb62c768b392ca1129e2046df96d670d785fc057d4103768440b7adb65d8faf5b7d39729060791794e83e6cd4e67821aed9b30f3f04b410c60809cd72267 opencolorio-2.1.0.tar.gz
+7c367571c78a980533cb7914eaa1f3b38641fb054b68c93eda603b5bd76ccf117ea314bffcffc6b82df274f635d70ce0d2717c8b7cb100edb6d71fcb7715fd46 0001-build-type-none.patch
"