From nobody Wed Nov 29 10:56:17 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SgGTY3j8jz52XDD; Wed, 29 Nov 2023 10:56:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SgGTY3KFKz3d9x; Wed, 29 Nov 2023 10:56:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701255377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=D7Rxcd8mU7uWt9IGrEneCDHhdTsXDRLR9t4N2E8ZoRM=; b=goACYbf+iFGD6a53Iq3SWFzUpXdBEj5mLYWf7H46RMPpTIVF5Y856CzG8kIA67GGqAJ5gn tJIIFWOMpD3f1m/i6Ehqze0K2LuOpi9aEPpWs68ITwfcBetFiUDJUCld5Lcf30/JKPaMps BcnHn/B4g1FVJBlZ/SOA+hOs9X7MtpZgVklXdnpalCenkEZgYy9NDPTAQjncH5Wq8TdKmF HecumlrH7Sy5iMnQkNmWPWfRuwTG2D/fCT6r/FmoiYfo0Q4KLwohXN/SY4ACMeaePQN9iB ZeAoA2RNj9wAL9kQ8eyBzgUJjYY7F3SUEN7SyeCgNY9Nzghsr4PESeH5xNKPHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701255377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=D7Rxcd8mU7uWt9IGrEneCDHhdTsXDRLR9t4N2E8ZoRM=; b=j4GwZU/w9a8shb94oScOy2onfB5ej/C7DuhTGzaRRU+w/lAxseS2HUHV4VlhcGLx51Olaa Zzxcr3noSbnELQBvBD07mtYZspUnAjz/VNGrefuaPXNdew9fJ5BfPsTXQkwGG5WFNEQfmz 7/t+ef7Zq94MTUqeEv7YEFFCI4zMK5qVOTYeauxHdr1ya3Ud+hm9QvnRras6PQgsfBdoxu ao5RaUexG/0eucvR70ZUoBRwxAvdd+/0221mtXqg+dsGNdsG/m5hjWIAHYYxiKb5yW8xIW 5LPF5girmsPcszYyeDLx/6Xy5U4ysvx+lZJNIoaMwV6oMHRWJTLejwEPhY3xFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701255377; a=rsa-sha256; cv=none; b=gWepUBWXYQFPgcrH/5cvOGoH6VesWYT18M5ttXVrgiF/0jCgNYMkmIwXu6rHwudnaoUob7 yTh8bHMM36HeoRBerWZyago8tyWwIvn5CMhf1yqbA78pOu8D5J66n4omSOREhyCCQzDvg/ QdsJD1HXLzlN8DebcFJPXKg1eUQkv4+fSqf9bj3Ifqy9xw0yumLGq5AgQnLUleaDwK+jB4 MDJ69CSS4eQm8f3rvMggIgM0L+eLs4/hQ3ToL7DZfb7jOtdY/dWPhv/nvXy57K1l1nczvY r+dZARDl2IXv21IsSRj7Pvyf4v9mCTPsIkKaj4tc3ZV1fpDq1nS7oGtEaoIJ9Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SgGTY2Lfcz13F9; Wed, 29 Nov 2023 10:56:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3ATAuHUT067023; Wed, 29 Nov 2023 10:56:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3ATAuHm0067020; Wed, 29 Nov 2023 10:56:17 GMT (envelope-from git) Date: Wed, 29 Nov 2023 10:56:17 GMT Message-Id: <202311291056.3ATAuHm0067020@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 7ac962e08a91 - main - graphics/opencoloriov1: the port had been resurrected^Wreadded. List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7ac962e08a912cfe40c9d43ddd44a9444718b488 Auto-Submitted: auto-generated The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=7ac962e08a912cfe40c9d43ddd44a9444718b488 commit 7ac962e08a912cfe40c9d43ddd44a9444718b488 Author: Alexey Dokuchaev AuthorDate: 2023-11-29 10:54:44 +0000 Commit: Alexey Dokuchaev CommitDate: 2023-11-29 10:54:44 +0000 graphics/opencoloriov1: the port had been resurrected^Wreadded. --- MOVED | 1 - graphics/Makefile | 1 + graphics/opencoloriov1/Makefile | 57 ++++++++++++++++++++++ graphics/opencoloriov1/distinfo | 3 ++ graphics/opencoloriov1/files/patch-CMakeLists.txt | 55 +++++++++++++++++++++ .../opencoloriov1/files/patch-docs_CMakeLists.txt | 17 +++++++ .../files/patch-export_pkgconfig_OpenColorIO.pc.in | 8 +++ .../files/patch-share_cmake_OCIOMacros.cmake | 39 +++++++++++++++ .../patch-src_apps_ociodisplay_CMakeLists.txt | 11 +++++ .../files/patch-src_core_CMakeLists.txt | 27 ++++++++++ .../opencoloriov1/files/patch-src_core_Config.cpp | 11 +++++ .../files/patch-src_core_OCIOYaml.cpp | 20 ++++++++ graphics/opencoloriov1/pkg-descr | 5 ++ graphics/opencoloriov1/pkg-plist | 11 +++++ 14 files changed, 265 insertions(+), 1 deletion(-) diff --git a/MOVED b/MOVED index 8da6138daff1..0177e774cd74 100644 --- a/MOVED +++ b/MOVED @@ -7190,7 +7190,6 @@ sysutils/cfengine-masterfiles317||2022-12-10|Has expired: Expire one year after net-mgmt/icingaweb2-module-ipl|net-mgmt/icinga-php-library|2022-12-13|Renamed by project x11/darkman|accessibility/darkman|2022-12-14|Moved to a better category net/samba412||2022-12-18|Has expired: Reached its EoL on September 20, 2021 -graphics/opencoloriov1|graphics/opencolorio|2022-12-20|Used by blender-lts28 which is EOL'd graphics/openimageio-ociov1|graphics/openimageio|2022-12-20|Used by blender-lts28 which is EOL'd textproc/retext|editors/retext|2022-12-21|Moved to a better category math/vtk6||2022-12-24|Has expired: Old version not used anywhere in the ports tree diff --git a/graphics/Makefile b/graphics/Makefile index 9b2fc7cb0fe3..e3ef342004ba 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -598,6 +598,7 @@ SUBDIR += opencollada SUBDIR += opencolorio SUBDIR += opencolorio-tools + SUBDIR += opencoloriov1 SUBDIR += opencsg SUBDIR += opencv SUBDIR += opendx diff --git a/graphics/opencoloriov1/Makefile b/graphics/opencoloriov1/Makefile new file mode 100644 index 000000000000..a3158ed40ee1 --- /dev/null +++ b/graphics/opencoloriov1/Makefile @@ -0,0 +1,57 @@ +PORTNAME= opencolorio +DISTVERSIONPREFIX= v +DISTVERSION= 1.1.1 +CATEGORIES= graphics multimedia +PKGNAMESUFFIX= v1 + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Complete color management solution v1 +WWW= https://opencolorio.org/ + +LICENSE= BSD3CLAUSE + +LIB_DEPENDS= libtinyxml.so:textproc/tinyxml \ + libyaml-cpp.so:devel/yaml-cpp + +USES= alias cmake compiler:c++11-lang localbase:ldflags pkgconfig \ + python:build shebangfix + +USE_GITHUB= yes +GH_ACCOUNT= AcademySoftwareFoundation +GH_PROJECT= OpenColorIO + +CMAKE_ON= USE_EXTERNAL_TINYXML USE_EXTERNAL_YAML OCIO_BUILD_SHARED +CMAKE_OFF= OCIO_BUILD_APPS OCIO_BUILD_JNIGLUE OCIO_BUILD_NUKE \ + OCIO_BUILD_PYGLUE OCIO_BUILD_STATIC OCIO_BUILD_DOCS +CMAKE_ARGS+= -DPYTHON:FILEPATH=${PYTHON_CMD} + +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_gcc= -Wno-unused-function -Wno-error +CXXFLAGS_clang= -Wno-deprecated-register +USE_LDCONFIG= yes + +SHEBANG_FILES= share/sphinx/ExtractRstFromSourceCPP.py \ + share/sphinx/ExtractRstFromSourceSimple.py \ + src/pyglue/createPyDocH.py + +PLIST_SUB= SHL3=${PORTVERSION} SHL1=${PORTVERSION:R:R} + +.if (defined(MACHINE_CPU) && ${MACHINE_CPU:Msse2}) +CMAKE_ON+= OCIO_USE_SSE +.else +CMAKE_OFF+= OCIO_USE_SSE +.endif + +post-install: + ${RM} -R ${STAGEDIR}/${PREFIX}/share/ocio + # add v1 suffix + ${REINPLACE_CMD} -e 's| diff --git a/graphics/opencoloriov1/distinfo b/graphics/opencoloriov1/distinfo new file mode 100644 index 000000000000..81d2002d3cb5 --- /dev/null +++ b/graphics/opencoloriov1/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1553749977 +SHA256 (AcademySoftwareFoundation-OpenColorIO-v1.1.1_GH0.tar.gz) = c9b5b9def907e1dafb29e37336b702fff22cc6306d445a13b1621b8a754c14c8 +SIZE (AcademySoftwareFoundation-OpenColorIO-v1.1.1_GH0.tar.gz) = 13828483 diff --git a/graphics/opencoloriov1/files/patch-CMakeLists.txt b/graphics/opencoloriov1/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..8f6a7aab459a --- /dev/null +++ b/graphics/opencoloriov1/files/patch-CMakeLists.txt @@ -0,0 +1,55 @@ +--- CMakeLists.txt.orig 2019-03-28 05:12:57 UTC ++++ CMakeLists.txt +@@ -271,7 +271,7 @@ if(USE_EXTERNAL_YAML) + mark_as_advanced(YAML_CPP_INCLUDE_DIR YAML_CPP_LIBRARY YAML-CPP_FOUND) + + if(YAML_CPP_FOUND) +- if(YAML_CPP_VERSION VERSION_GREATER "0.5.0") ++ if(FALSE AND YAML_CPP_VERSION VERSION_GREATER "0.5.0") + # Need to also get the boost headers here, as yaml-cpp 0.5.0+ requires them. + # Don't bother doing this step if we are already including the boost headers for shared_ptr + if(NOT OCIO_USE_BOOST_PTR) +@@ -531,8 +531,6 @@ endif() + configure_file(${CMAKE_SOURCE_DIR}/share/ocio/setup_ocio.sh.in + ${CMAKE_CURRENT_BINARY_DIR}/share/ocio/setup_ocio.sh @ONLY) + +-INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/share/ocio/setup_ocio.sh DESTINATION share/ocio/) +- + ############################################################################### + ### CPACK ### + +@@ -597,7 +595,7 @@ if(TARGET OpenColorIO_STATIC) + endif() + endif() + install(EXPORT OpenColorIO DESTINATION cmake) +-file(WRITE "${CMAKE_BINARY_DIR}/OpenColorIOConfig.cmake" ++file(WRITE "${CMAKE_BINARY_DIR}/OpenColorIOv1Config.cmake" + " + get_filename_component(OpenColorIO_DIR \"\${CMAKE_CURRENT_LIST_FILE}\" PATH) + +@@ -607,14 +605,14 @@ file(WRITE "${CMAKE_BINARY_DIR}/OpenColorIOConfig.cmak + message(STATUS OpenColorIO_INCLUDE_DIRS=\${OpenColorIO_INCLUDE_DIRS}) + + ## targets libraries + associated definitions +- if(NOT TARGET OpenColorIO) +- include(\"\${OpenColorIO_DIR}/cmake/OpenColorIO.cmake\") ## thanks to imported target +- if(TARGET OpenColorIO AND NOT OpenColorIO_USE_STATIC) ++ if(NOT TARGET OpenColorIOv1) ++ include(\"\${OpenColorIO_DIR}/cmake/OpenColorIOv1.cmake\") ## thanks to imported target ++ if(TARGET OpenColorIOv1 AND NOT OpenColorIO_USE_STATIC) + message(STATUS \"shared target OpenColorIO : see OpenColorIO_LIBRARY\") +- set(OpenColorIO_LIBRARY OpenColorIO) ++ set(OpenColorIO_LIBRARY OpenColorIOv1) + set(OCIO_COMPILE_DEFINITIONS ${OCIO_SHARED_COMPILE_DEFINITIONS}) + endif() +- if(NOT TARGET OpenColorIO AND TARGET OpenColorIO_STATIC) ++ if(NOT TARGET OpenColorIOv1 AND TARGET OpenColorIO_STATIC) + message(STATUS \"static target OpenColorIO_STATIC : see OpenColorIO_LIBRARY\") + set(OpenColorIO_LIBRARY OpenColorIO_STATIC) + set(OCIO_COMPILE_DEFINITIONS ${OCIO_STATIC_COMPILE_DEFINITIONS}) +@@ -646,4 +644,4 @@ file(WRITE "${CMAKE_BINARY_DIR}/OpenColorIOConfig.cmak + message(STATUS OPENCOLORIO_FOUND=\${OPENCOLORIO_FOUND}) + " + ) +-install(FILES "${CMAKE_BINARY_DIR}/OpenColorIOConfig.cmake" DESTINATION .) ++install(FILES "${CMAKE_BINARY_DIR}/OpenColorIOv1Config.cmake" DESTINATION .) diff --git a/graphics/opencoloriov1/files/patch-docs_CMakeLists.txt b/graphics/opencoloriov1/files/patch-docs_CMakeLists.txt new file mode 100644 index 000000000000..ec6849ef2dc6 --- /dev/null +++ b/graphics/opencoloriov1/files/patch-docs_CMakeLists.txt @@ -0,0 +1,17 @@ +--- docs/CMakeLists.txt.orig 2014-09-11 19:08:18 UTC ++++ docs/CMakeLists.txt +@@ -110,12 +115,11 @@ add_custom_target(doc ALL + add_dependencies(doc Sphinx) + + install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build-html/ +- DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/OpenColorIO/html ++ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/opencoloriov1 + PATTERN .* EXCLUDE + ) + +-find_package(LATEX) +-if(PDFLATEX_COMPILER) ++if(0) + + add_custom_target(latex + COMMAND PYTHONPATH=${PYTHONPATH} ${EXTDIST_BINPATH}/sphinx-build -b latex . ${CMAKE_CURRENT_BINARY_DIR}/build-latex diff --git a/graphics/opencoloriov1/files/patch-export_pkgconfig_OpenColorIO.pc.in b/graphics/opencoloriov1/files/patch-export_pkgconfig_OpenColorIO.pc.in new file mode 100644 index 000000000000..dfb38fb8e42e --- /dev/null +++ b/graphics/opencoloriov1/files/patch-export_pkgconfig_OpenColorIO.pc.in @@ -0,0 +1,8 @@ +--- export/pkgconfig/OpenColorIO.pc.in.orig 2021-12-06 23:53:07 UTC ++++ export/pkgconfig/OpenColorIO.pc.in +@@ -7,4 +7,4 @@ Name: OpenColorIO + Description: A color management framework for visual effects and animation + Version: @OCIO_VERSION@ + Cflags: -I${includedir} +-Libs: -L${libdir} -lOpenColorIO ++Libs: -L${libdir} -lOpenColorIOv1 diff --git a/graphics/opencoloriov1/files/patch-share_cmake_OCIOMacros.cmake b/graphics/opencoloriov1/files/patch-share_cmake_OCIOMacros.cmake new file mode 100644 index 000000000000..9edaa87e95ed --- /dev/null +++ b/graphics/opencoloriov1/files/patch-share_cmake_OCIOMacros.cmake @@ -0,0 +1,39 @@ +--- share/cmake/OCIOMacros.cmake.orig 2019-03-28 05:12:57 UTC ++++ share/cmake/OCIOMacros.cmake +@@ -96,27 +96,6 @@ MACRO(OCIOFindOpenImageIO) + set(OIIO_FOUND TRUE) + message(STATUS "Found OIIO library ${OIIO_LIBRARIES}") + message(STATUS "Found OIIO includes ${OIIO_INCLUDES}") +- +- # Unfortunately, OIIO hides a dependency to Ilmbase includes +- +- if(ILMBASE_PATH) +- message(STATUS "Ilmbase path explicitly specified: ${ILMBASE_PATH}") +- endif() +- +- FIND_PATH( ILMBASE_INCLUDES OpenEXR/half.h +- ${ILMBASE_PATH}/include/ +- /usr/include +- /usr/local/include +- /sw/include +- /opt/local/include +- DOC "The directory where OpenEXR/half.h resides") +- +- if(ILMBASE_INCLUDES) +- message(STATUS "Found Ilmbase includes ${ILMBASE_INCLUDES}") +- else() +- set(OIIO_FOUND FALSE) +- message(STATUS "Ilmbase not found. Specify ILMBASE_PATH to locate it") +- endif() + else() + set(OIIO_FOUND FALSE) + message(STATUS "OIIO not found. Specify OIIO_PATH to locate it") +@@ -222,7 +201,7 @@ MACRO(OCIOFindPython) + file(TO_CMAKE_PATH "${PYTHON_LIBRARY_DIRS_RAW}" PYTHON_LIBRARY_DIRS) + + FIND_LIBRARY(PYTHON_LIBRARY +- NAMES "python${PYTHON_VERSION}" ++ NAMES "${PYTHON_VERSION}${PYTHON_ABIVER}" + PATHS ${PYTHON_LIBRARY_DIRS} + NO_DEFAULT_PATH # Don't be "helpful" and randomly grab library from /usr/lib etc + ) diff --git a/graphics/opencoloriov1/files/patch-src_apps_ociodisplay_CMakeLists.txt b/graphics/opencoloriov1/files/patch-src_apps_ociodisplay_CMakeLists.txt new file mode 100644 index 000000000000..8fe811eb1290 --- /dev/null +++ b/graphics/opencoloriov1/files/patch-src_apps_ociodisplay_CMakeLists.txt @@ -0,0 +1,11 @@ +--- src/apps/ociodisplay/CMakeLists.txt.orig 2019-03-28 05:12:57 UTC ++++ src/apps/ociodisplay/CMakeLists.txt +@@ -13,7 +13,7 @@ if (OIIO_FOUND) + + # set_target_properties(ociodisplay PROPERTIES INSTALL_RPATH ${OIIO_LIBRARIES} ) + set_target_properties(ociodisplay PROPERTIES COMPILE_FLAGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}) +- target_link_libraries(ociodisplay ${GLEW_LIBRARIES} ${GLUT_LIBRARY} ${OPENGL_LIBRARY} ${OIIO_LIBRARIES}) ++ target_link_libraries(ociodisplay ${GLEW_LIBRARIES} ${GLUT_LIBRARY} ${GLUT_LIBRARIES} ${OPENGL_LIBRARY} ${OIIO_LIBRARIES}) + target_link_OCIO(ociodisplay) + + install(TARGETS ociodisplay EXPORT OpenColorIO DESTINATION ${CMAKE_INSTALL_EXEC_PREFIX}/bin) diff --git a/graphics/opencoloriov1/files/patch-src_core_CMakeLists.txt b/graphics/opencoloriov1/files/patch-src_core_CMakeLists.txt new file mode 100644 index 000000000000..34588903eba0 --- /dev/null +++ b/graphics/opencoloriov1/files/patch-src_core_CMakeLists.txt @@ -0,0 +1,27 @@ +--- src/core/CMakeLists.txt.orig 2021-12-07 20:11:03 UTC ++++ src/core/CMakeLists.txt +@@ -56,7 +56,7 @@ if(OCIO_BUILD_SHARED) + endif() + + set_target_properties(OpenColorIO PROPERTIES +- OUTPUT_NAME OpenColorIO ++ OUTPUT_NAME OpenColorIOv1 + COMPILE_FLAGS "${EXTERNAL_COMPILE_FLAGS}" + LINK_FLAGS "${EXTERNAL_LINK_FLAGS}") + +@@ -109,11 +109,11 @@ endmacro() + + # public interface + install(FILES ${core_export_headers} +- DESTINATION ${CMAKE_INSTALL_PREFIX}/include/OpenColorIO/) ++ DESTINATION ${CMAKE_INSTALL_PREFIX}/include/OpenColorIOv1/) + + # pkg-config +-message(STATUS "Create OpenColorIO.pc from OpenColorIO.pc.in") ++message(STATUS "Create OpenColorIOv1.pc from OpenColorIO.pc.in") + configure_file(${CMAKE_SOURCE_DIR}/export/pkgconfig/OpenColorIO.pc.in +- ${CMAKE_CURRENT_BINARY_DIR}/OpenColorIO.pc @ONLY) +-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/OpenColorIO.pc ++ ${CMAKE_CURRENT_BINARY_DIR}/OpenColorIOv1.pc @ONLY) ++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/OpenColorIOv1.pc + DESTINATION ${CMAKE_INSTALL_EXEC_PREFIX}/lib${LIB_SUFFIX}/pkgconfig/) diff --git a/graphics/opencoloriov1/files/patch-src_core_Config.cpp b/graphics/opencoloriov1/files/patch-src_core_Config.cpp new file mode 100644 index 000000000000..bc5f727a585f --- /dev/null +++ b/graphics/opencoloriov1/files/patch-src_core_Config.cpp @@ -0,0 +1,11 @@ +--- src/core/Config.cpp.orig 2018-09-04 18:15:21 UTC ++++ src/core/Config.cpp +@@ -324,7 +324,7 @@ OCIO_NAMESPACE_ENTER + sanitytext_ = rhs.sanitytext_; + + cacheids_ = rhs.cacheids_; +- cacheidnocontext_ = cacheidnocontext_; ++ cacheidnocontext_ = rhs.cacheidnocontext_; + } + return *this; + } diff --git a/graphics/opencoloriov1/files/patch-src_core_OCIOYaml.cpp b/graphics/opencoloriov1/files/patch-src_core_OCIOYaml.cpp new file mode 100644 index 000000000000..06dd2b01b23e --- /dev/null +++ b/graphics/opencoloriov1/files/patch-src_core_OCIOYaml.cpp @@ -0,0 +1,20 @@ +--- src/core/OCIOYaml.cpp.orig 2019-03-28 05:12:57 UTC ++++ src/core/OCIOYaml.cpp +@@ -30,7 +30,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY O + + #include + +-#ifndef WIN32 ++#ifdef OLDYAML + + // fwd declare yaml-cpp visibility + #pragma GCC visibility push(hidden) +@@ -1442,7 +1442,7 @@ OCIO_NAMESPACE_ENTER + #ifdef OLDYAML + if(node.FindValue("ocio_profile_version") == NULL) + #else +- if(node["ocio_profile_version"] == NULL) ++ if(!node["ocio_profile_version"].IsDefined()) + #endif + { + std::ostringstream os; diff --git a/graphics/opencoloriov1/pkg-descr b/graphics/opencoloriov1/pkg-descr new file mode 100644 index 000000000000..cbf0c19caa54 --- /dev/null +++ b/graphics/opencoloriov1/pkg-descr @@ -0,0 +1,5 @@ +OpenColorIO (OCIO) is a complete color management solution geared +towards motion picture production with an emphasis on visual effects +and computer animation. + +This port provides v1 for ports that don't support v2 yet. diff --git a/graphics/opencoloriov1/pkg-plist b/graphics/opencoloriov1/pkg-plist new file mode 100644 index 000000000000..619dacb61e1a --- /dev/null +++ b/graphics/opencoloriov1/pkg-plist @@ -0,0 +1,11 @@ +include/OpenColorIOv1/OpenColorABI.h +include/OpenColorIOv1/OpenColorIO.h +include/OpenColorIOv1/OpenColorTransforms.h +include/OpenColorIOv1/OpenColorTypes.h +lib/libOpenColorIOv1.so +lib/libOpenColorIOv1.so.%%SHL1%% +lib/libOpenColorIOv1.so.%%SHL3%% +libdata/pkgconfig/OpenColorIOv1.pc +lib/cmake/Modules/OpenColorIOv1Config.cmake +lib/cmake/Modules/OpenColorIOv1-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/Modules/OpenColorIOv1.cmake