diff --git a/media-libs/opencolorio/opencolorio-1.0.9.recipe b/media-libs/opencolorio/opencolorio-1.0.9.recipe new file mode 100644 index 000000000..822d1be1f --- /dev/null +++ b/media-libs/opencolorio/opencolorio-1.0.9.recipe @@ -0,0 +1,95 @@ +SUMMARY="A color management framework for visual effects and animation" +DESCRIPTION=" +OpenColorIO (OCIO) is a complete color management solution geared towards \ +motion picture production with an emphasis on visual effects and computer \ +animation. OCIO provides a straightforward and consistent user experience \ +across all supporting applications while allowing for sophisticated back-end \ +configuration options suitable for high-end production usage. OCIO is \ +compatible with the Academy Color Encoding Specification (ACES) and is \ +LUT-format agnostic, supporting many popular formats." +HOMEPAGE="http://opencoloio.org/" +COPYRIGHT=" + 2003-2010 Sony Pictures Imageworks Inc., et al. + " +LICENSE="BSD (3-clause)" +SRC_URI="https://github.com/imageworks/OpenColorIO/archive/v$portVersion.tar.gz" +SRC_FILENAME="opencolorio-$portVersion.tar.gz" +CHECKSUM_SHA256="27c81e691c15753cd2b560c2ca4bd5679a60c2350eedd43c99d44ca25d65ea7f" +REVISION="1" +ARCHITECTURES="x86 x86_64" +SECONDARY_ARCHITECTURES="x86" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +fi + +PATCHES="opencolorio-$portVersion.patchset" + +PROVIDES=" + opencolorio$secondaryArchSuffix = $portVersion compat >= 1 + cmd:ociobakelut + cmd:ociocheck + lib:libopencolorio$secondaryArchSuffix = 1.0.9 compat >= 1 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:liblcms2$secondaryArchSuffix + lib:libtinyxml$secondaryArchSuffix + lib:libstdc++$secondaryArchSuffix + lib:libgcc_s$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + boost${secondaryArchSuffix}_devel + devel:liblcms2$secondaryArchSuffix + devel:libtinyxml$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:cmake + cmd:pkg_config$secondaryArchSuffix + cmd:patch + " + +SOURCE_DIR="OpenColorIO-$portVersion" + +BUILD() +{ + cmake . \ + -DOCIO_BUILD_NUKE=OFF \ + -DOCIO_BUILD_STATIC=OFF \ + -DOCIO_BUILD_SHARED=ON \ + -DUSE_EXTERNAL_LCMS=ON \ + -DUSE_EXTERNAL_TINYXML=ON \ + -DCMAKE_INSTALL_PREFIX:PATH=$prefix + make $jobArgs +} + +INSTALL() +{ + make install + + mkdir -p $developDir $dataDir + mv $prefix/include $includeDir + mv $prefix/share/* $dataDir + + prepareInstalledDevelLibs libOpenColorIO + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + opencolorio${secondaryArchSuffix}_devel = $portVersion compat >= 1 + devel:libopencolorio$secondaryArchSuffix = 1.0.9 compat >= 1 + " +REQUIRES_devel=" + opencolorio$secondaryArchSuffix == $portVersion base + " diff --git a/media-libs/opencolorio/patches/opencolorio-1.0.9.patchset b/media-libs/opencolorio/patches/opencolorio-1.0.9.patchset new file mode 100644 index 000000000..81c9d9d94 --- /dev/null +++ b/media-libs/opencolorio/patches/opencolorio-1.0.9.patchset @@ -0,0 +1,22 @@ +From 69b86d964400423fdffb4fb181f78f4ca2ad4799 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Mon, 8 Jun 2015 18:48:52 +0000 +Subject: Haiku patch + + +diff --git a/export/OpenColorIO/OpenColorABI.h.in b/export/OpenColorIO/OpenColorABI.h.in +index 28e8006..5f10e50 100644 +--- a/export/OpenColorIO/OpenColorABI.h.in ++++ b/export/OpenColorIO/OpenColorABI.h.in +@@ -65,7 +65,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + // If supported, define OCIOEXPORT, OCIOHIDDEN + // (used to choose which symbols to export from OpenColorIO) +-#if defined __linux__ || __APPLE__ || __FreeBSD__ ++#if defined __linux__ || __APPLE__ || __FreeBSD__ || __HAIKU__ + #if __GNUC__ >= 4 + #define OCIOEXPORT __attribute__ ((visibility("default"))) + #define OCIOHIDDEN __attribute__ ((visibility("hidden"))) +-- +1.8.3.4 +