From 73b5f877dbb032a9e3d5abc5110cfbdd2d476131 Mon Sep 17 00:00:00 2001 From: pascal Date: Tue, 25 Mar 2014 10:33:33 +0000 Subject: [PATCH] Import OpenColorIO. 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. ok landry@ --- graphics/opencolorio/Makefile | 45 +++++++++++++++++++ graphics/opencolorio/distinfo | 2 + ...patch-export_OpenColorIO_OpenColorABI_h_in | 12 +++++ .../patches/patch-src_core_Platform_h | 12 +++++ graphics/opencolorio/pkg/DESCR | 8 ++++ graphics/opencolorio/pkg/PLIST | 13 ++++++ 6 files changed, 92 insertions(+) create mode 100644 graphics/opencolorio/Makefile create mode 100644 graphics/opencolorio/distinfo create mode 100644 graphics/opencolorio/patches/patch-export_OpenColorIO_OpenColorABI_h_in create mode 100644 graphics/opencolorio/patches/patch-src_core_Platform_h create mode 100644 graphics/opencolorio/pkg/DESCR create mode 100644 graphics/opencolorio/pkg/PLIST diff --git a/graphics/opencolorio/Makefile b/graphics/opencolorio/Makefile new file mode 100644 index 00000000000..c9f67c8ae38 --- /dev/null +++ b/graphics/opencolorio/Makefile @@ -0,0 +1,45 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2014/03/25 10:33:33 pascal Exp $ + +COMMENT = color management library + +V = 1.0.9 +REV = 2b12063 +DISTNAME = imageworks-OpenColorIO-v$V-0-g${REV} +PKGNAME = opencolorio-$V + +SHARED_LIBS += OpenColorIO 0.0 # 1.0 + +CATEGORIES = graphics + +HOMEPAGE = http://opencolorio.org/index.html + +MAINTAINER = Pascal Stumpf + +# several BSD-like +PERMIT_PACKAGE_CDROM = Yes + +WANTLIB += m pthread stdc++ tinyxml yaml-cpp + +MASTER_SITES = http://www.linklevel.net/distfiles/ + +MODULES = devel/cmake \ + lang/python +LIB_DEPENDS = textproc/tinyxml \ + devel/yaml-cpp + +CONFIGURE_ARGS += -DPYTHON="${MODPY_BIN}" \ + -DUSE_EXTERNAL_TINYXML=ON \ + -DUSE_EXTERNAL_YAML=ON \ + -DOCIO_USE_SSE=OFF \ + -DOCIO_BUILD_STATIC=OFF \ + -DOCIO_BUILD_APPS=OFF \ + -DCMAKE_SHARED_LINKER_FLAGS="-L${LOCALBASE}/lib" \ + -DCMAKE_EXE_LINKER_FLAGS="-L${LOCALBASE}/lib" \ + -DCMAKE_MODULE_LINKER_FLAGS="-L${LOCALBASE}/lib" + +NO_TEST = Yes + +CFLAGS = -pthread +WRKDIST = ${WRKDIR}/imageworks-OpenColorIO-${REV} + +.include diff --git a/graphics/opencolorio/distinfo b/graphics/opencolorio/distinfo new file mode 100644 index 00000000000..18bc551b0c6 --- /dev/null +++ b/graphics/opencolorio/distinfo @@ -0,0 +1,2 @@ +SHA256 (imageworks-OpenColorIO-v1.0.9-0-g2b12063.tar.gz) = +39Vd3yE+JKGvfo3xdRCnGLNQ2WR1UUDmvm/7AlMG40= +SIZE (imageworks-OpenColorIO-v1.0.9-0-g2b12063.tar.gz) = 13622319 diff --git a/graphics/opencolorio/patches/patch-export_OpenColorIO_OpenColorABI_h_in b/graphics/opencolorio/patches/patch-export_OpenColorIO_OpenColorABI_h_in new file mode 100644 index 00000000000..c3851a8024c --- /dev/null +++ b/graphics/opencolorio/patches/patch-export_OpenColorIO_OpenColorABI_h_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-export_OpenColorIO_OpenColorABI_h_in,v 1.1.1.1 2014/03/25 10:33:33 pascal Exp $ +--- export/OpenColorIO/OpenColorABI.h.in.orig Wed Oct 9 00:59:34 2013 ++++ export/OpenColorIO/OpenColorABI.h.in Mon Mar 24 22:57:22 2014 +@@ -65,7 +65,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY O + + // If supported, define OCIOEXPORT, OCIOHIDDEN + // (used to choose which symbols to export from OpenColorIO) +-#if defined __linux__ || __APPLE__ || __FreeBSD__ ++#if defined __linux__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ + #if __GNUC__ >= 4 + #define OCIOEXPORT __attribute__ ((visibility("default"))) + #define OCIOHIDDEN __attribute__ ((visibility("hidden"))) diff --git a/graphics/opencolorio/patches/patch-src_core_Platform_h b/graphics/opencolorio/patches/patch-src_core_Platform_h new file mode 100644 index 00000000000..0adb871cba7 --- /dev/null +++ b/graphics/opencolorio/patches/patch-src_core_Platform_h @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_core_Platform_h,v 1.1.1.1 2014/03/25 10:33:33 pascal Exp $ +--- src/core/Platform.h.orig Wed Oct 9 00:59:34 2013 ++++ src/core/Platform.h Mon Mar 24 22:58:05 2014 +@@ -85,7 +85,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY O + + // linux/unix/posix + #include +-#if !defined(__FreeBSD__) ++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) + #include + #endif + #include diff --git a/graphics/opencolorio/pkg/DESCR b/graphics/opencolorio/pkg/DESCR new file mode 100644 index 00000000000..5e8eede843e --- /dev/null +++ b/graphics/opencolorio/pkg/DESCR @@ -0,0 +1,8 @@ +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. diff --git a/graphics/opencolorio/pkg/PLIST b/graphics/opencolorio/pkg/PLIST new file mode 100644 index 00000000000..36d18a92202 --- /dev/null +++ b/graphics/opencolorio/pkg/PLIST @@ -0,0 +1,13 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2014/03/25 10:33:33 pascal Exp $ +include/OpenColorIO/ +include/OpenColorIO/OpenColorABI.h +include/OpenColorIO/OpenColorIO.h +include/OpenColorIO/OpenColorTransforms.h +include/OpenColorIO/OpenColorTypes.h +include/PyOpenColorIO/ +include/PyOpenColorIO/PyOpenColorIO.h +@lib lib/libOpenColorIO.so.${LIBOpenColorIO_VERSION} +lib/pkgconfig/OpenColorIO.pc +lib/python${MODPY_VERSION}/site-packages/PyOpenColorIO.so +share/ocio/ +share/ocio/setup_ocio.sh