forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upstream has updated to be compatible to Imath / OpenEXR-3, but no new version released yet, so we use the commit id to fetch the correct version. Bug: ampas/CTL#100 Closes: https://bugs.gentoo.org/878247 Signed-off-by: Bernd Waibel <[email protected]>
- Loading branch information
Showing
3 changed files
with
93 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST ctl-1.5.2.tar.gz 1411871 BLAKE2B 223740aa8b68630f449b65e17470c76b2825a77eead040724b65e9e69752a696f642ae6755116046e188305a7d043c4def7cb8a773ad08d51fba35e9273b3a71 SHA512 c92af23e897f30f96ecb27b4b865e2fe1a1e33c8616797fc18f68e7fcc89210ce8ae70a003169b2f449bfd5f90d192734f1e8038b1d3e03c5f48c81587c871c6 | ||
DIST ctl-1.5.2_p20221224.tar.gz 1418659 BLAKE2B 6798439b270b785974cfd45381f927f2005884b6a00878fa845cc1c36cd912eb6f3acb913f896389a67bff52103d3d52032e3f1f9f53e1a3d98b545428c1580b SHA512 9cc132100d3ea622d954e783fbab43c07cfa72e1930f4b9c55cb01709e88f09f956ac02e973a09bfc2842e769060e6f50f082d5491be03c1499a58e79b0f1ca3 |
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,39 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit cmake | ||
|
||
MY_COMMIT=3fc4ae7a8af35d380654e573d895216fd5ba407e | ||
|
||
DESCRIPTION="AMPAS' Color Transformation Language" | ||
HOMEPAGE="https://github.com/ampas/CTL" | ||
SRC_URI="https://github.com/ampas/CTL/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" | ||
S="${WORKDIR}/CTL-${MY_COMMIT}" | ||
|
||
LICENSE="AMPAS" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~ia64 ~ppc64 ~x86" | ||
IUSE="test" | ||
|
||
RESTRICT="!test? ( test )" | ||
|
||
RDEPEND=" | ||
dev-libs/imath:= | ||
>=media-libs/openexr-3:=[threads] | ||
media-libs/tiff:= | ||
!media-libs/openexr_ctl" | ||
DEPEND="${RDEPEND}" | ||
BDEPEND="virtual/pkgconfig" | ||
|
||
PATCHES=( "${FILESDIR}"/${PN}-1.5.2-fix-installation-directories.patch ) | ||
|
||
src_configure() { | ||
local mycmakeargs=( | ||
-DCMAKE_INSTALL_DOCDIR="share/doc/${PF}" | ||
-DCTL_BUILD_TESTS=$(usex test) | ||
-DCTL_BUILD_TOOLS=ON | ||
) | ||
cmake_src_configure | ||
} |
53 changes: 53 additions & 0 deletions
53
media-libs/ctl/files/ctl-1.5.2-fix-installation-directories.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,53 @@ | ||
From c23f126d06abd97e70010ad1e0df2f87ebf09c39 Mon Sep 17 00:00:00 2001 | ||
From: Bernd Waibel <[email protected]> | ||
Date: Sat, 31 Dec 2022 12:19:17 +0100 | ||
Subject: [PATCH] fix installation directories | ||
|
||
Signed-off-by: Bernd Waibel <[email protected]> | ||
--- a/OpenEXR_CTL/CtlModules/CMakeLists.txt | ||
+++ b/OpenEXR_CTL/CtlModules/CMakeLists.txt | ||
@@ -2,6 +2,6 @@ install( | ||
FILES | ||
utilities.ctl | ||
DESTINATION | ||
- ${INSTALL_LIB_DIR}/CTL | ||
+ ${CMAKE_INSTALL_DATADIR}/CTL | ||
) | ||
|
||
--- a/OpenEXR_CTL/exr_ctl_exr/CMakeLists.txt | ||
+++ b/OpenEXR_CTL/exr_ctl_exr/CMakeLists.txt | ||
@@ -39,4 +39,4 @@ target_link_libraries (exr_ctl_exr | ||
|
||
install( TARGETS exr_ctl_exr DESTINATION ${INSTALL_BIN_DIR} ) | ||
|
||
-install( FILES change_saturation.ctl DESTINATION ${INSTALL_LIB_DIR}/CTL ) | ||
+install( FILES change_saturation.ctl DESTINATION ${CMAKE_INSTALL_DATADIR}/CTL ) | ||
--- a/OpenEXR_CTL/exrdpx/CMakeLists.txt | ||
+++ b/OpenEXR_CTL/exrdpx/CMakeLists.txt | ||
@@ -39,6 +39,6 @@ target_link_libraries (exrdpx | ||
|
||
install( TARGETS exrdpx DESTINATION ${INSTALL_BIN_DIR} ) | ||
|
||
-install( FILES transform_DPX_EXR.ctl transform_EXR_DPX.ctl DESTINATION ${INSTALL_LIB_DIR}/CTL ) | ||
+install( FILES transform_DPX_EXR.ctl transform_EXR_DPX.ctl DESTINATION ${CMAKE_INSTALL_DATADIR}/CTL ) | ||
|
||
|
||
--- a/doc/CMakeLists.txt | ||
+++ b/doc/CMakeLists.txt | ||
@@ -1 +1 @@ | ||
-install( FILES CtlManual.pdf CtlManual.doc DESTINATION ${CMAKE_INSTALL_DOCDIR}/CTL ) | ||
+install( FILES CtlManual.pdf CtlManual.doc DESTINATION ${CMAKE_INSTALL_DOCDIR} ) | ||
--- a/lib/IlmImfCtl/CMakeLists.txt | ||
+++ b/lib/IlmImfCtl/CMakeLists.txt | ||
@@ -38,7 +38,7 @@ target_link_libraries (IlmImfCtl | ||
install(FILES | ||
ImfCtlApplyTransforms.h | ||
DESTINATION | ||
- ${CMAKE_INSTALL_LIBDIR}/OpenEXR | ||
+ ${CMAKE_INSTALL_INCLUDEDIR}/OpenEXR | ||
) | ||
|
||
install(TARGETS IlmImfCtl DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
-- | ||
2.39.0 | ||
|