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@
This commit is contained in:
pascal 2014-03-25 10:33:33 +00:00
parent 95f872828e
commit 73b5f877db
6 changed files with 92 additions and 0 deletions

View File

@ -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 <Pascal.Stumpf@cubes.de>
# 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 <bsd.port.mk>

View File

@ -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

View File

@ -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")))

View File

@ -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 <stdlib.h>
-#if !defined(__FreeBSD__)
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
#include <alloca.h>
#endif
#include <string.h>

View File

@ -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.

View File

@ -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