Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2012 14:33:52 GMT
From:      Shane Ambler <FreeBSD@Shaneware.biz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/171667: New port graphics/opencolorio
Message-ID:  <201209151433.q8FEXq0X095960@red.freebsd.org>
Resent-Message-ID: <201209151440.q8FEe93c014056@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         171667
>Category:       ports
>Synopsis:       New port graphics/opencolorio
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 15 14:40:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Shane Ambler
>Release:        9.0-RELEASE-p1
>Organization:
>Environment:
FreeBSD leader.local 9.0-RELEASE-p1 FreeBSD 9.0-RELEASE-p1 #1: Tue May 15 12:34:33 CST 2012     shane@leader.local:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
This new port adds the opencolorio library by Sony imageworks - the main influence is to be used by future versions of graphics/blender.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	opencolorio
#	opencolorio/pkg-plist
#	opencolorio/files
#	opencolorio/files/patch-src_apps_ocioconvert_CMakeLists.txt
#	opencolorio/files/patch-src_core_Platform.h
#	opencolorio/files/patch-src_apps_ociolutimage_CMakeLists.txt
#	opencolorio/Makefile
#	opencolorio/distinfo
#	opencolorio/pkg-descr
#
echo c - opencolorio
mkdir -p opencolorio > /dev/null 2>&1
echo x - opencolorio/pkg-plist
sed 's/^X//' >opencolorio/pkg-plist << '660316c7e9f9fee623d719d31f7ce194'
X%%CLIAPPS%%bin/ociobakelut
X%%CLIAPPS%%bin/ociocheck
X%%CLIAPPS%%bin/ocioconvert
X%%CLIAPPS%%bin/ociodisplay
X%%CLIAPPS%%bin/ociolutimage
Xinclude/OpenColorIO/OpenColorTypes.h
Xinclude/OpenColorIO/OpenColorTransforms.h
Xinclude/OpenColorIO/OpenColorABI.h
Xinclude/OpenColorIO/OpenColorIO.h
Xlib/libOpenColorIO.a
Xlib/libOpenColorIO.so
Xlib/libOpenColorIO.so.1
Xlib/libOpenColorIO.so.1.0.7
Xlib/pkgconfig/OpenColorIO.pc
Xshare/ocio/setup_ocio.sh
X@dirrm include/OpenColorIO
X@dirrmtry lib/pkgconfig
X@dirrm share/ocio
X
660316c7e9f9fee623d719d31f7ce194
echo c - opencolorio/files
mkdir -p opencolorio/files > /dev/null 2>&1
echo x - opencolorio/files/patch-src_apps_ocioconvert_CMakeLists.txt
sed 's/^X//' >opencolorio/files/patch-src_apps_ocioconvert_CMakeLists.txt << '1968938835ced3bda5bd1816acda9918'
X--- src/apps/ocioconvert/CMakeLists.txt.orig	2012-06-21 20:37:46.118893014 +0930
X+++ src/apps/ocioconvert/CMakeLists.txt	2012-06-21 20:38:07.547827470 +0930
X@@ -10,7 +10,7 @@
X     
X     add_executable(ocioconvert ${share_src_files} main.cpp)
X     
X-    target_link_libraries(ocioconvert ${OIIO_LIBRARIES} OpenColorIO dl)
X+    target_link_libraries(ocioconvert ${OIIO_LIBRARIES} OpenColorIO)
X     
X     install(TARGETS ocioconvert DESTINATION ${CMAKE_INSTALL_EXEC_PREFIX}/bin)
X endif()
1968938835ced3bda5bd1816acda9918
echo x - opencolorio/files/patch-src_core_Platform.h
sed 's/^X//' >opencolorio/files/patch-src_core_Platform.h << '0d927ef0e6ca570f916f6660c46ecc6f'
X--- src/core/Platform.h.orig	2012-06-21 20:18:57.343827187 +0930
X+++ src/core/Platform.h	2012-06-21 20:20:38.915828064 +0930
X@@ -85,7 +85,9 @@
X 
X // linux/unix/posix
X #include <stdlib.h>
X+#if !defined(__FreeBSD__)
X #include <alloca.h>
X+#endif
X #include <string.h>
X #include <pthread.h>
X // OS for spinlock
0d927ef0e6ca570f916f6660c46ecc6f
echo x - opencolorio/files/patch-src_apps_ociolutimage_CMakeLists.txt
sed 's/^X//' >opencolorio/files/patch-src_apps_ociolutimage_CMakeLists.txt << '1d255f28ee55ad29334c6023def382dd'
X--- src/apps/ociolutimage/CMakeLists.txt.orig	2012-04-18 09:38:16.000000000 +0930
X+++ src/apps/ociolutimage/CMakeLists.txt	2012-06-21 20:40:39.147826612 +0930
X@@ -10,7 +10,7 @@
X     
X     add_executable(ociolutimage ${share_src_files} main.cpp)
X     
X-    target_link_libraries(ociolutimage ${OIIO_LIBRARIES} OpenColorIO dl)
X+    target_link_libraries(ociolutimage ${OIIO_LIBRARIES} OpenColorIO)
X     
X     install(TARGETS ociolutimage DESTINATION ${CMAKE_INSTALL_EXEC_PREFIX}/bin)
X endif()
1d255f28ee55ad29334c6023def382dd
echo x - opencolorio/Makefile
sed 's/^X//' >opencolorio/Makefile << 'ad8ed991e7ecfd79d2d4cf329a6e19db'
X# New ports collection makefile for:	OpenColorIO
X# Date created:				21 June 2012
X# Whom:					Shane Ambler
X#
X# $FreeBSD$
X#
X
XPORTNAME=	opencolorio
XPORTVERSION=	1.0.7
XCATEGORIES=	graphics multimedia
XMASTER_SITES=	https://github.com/imageworks/OpenColorIO/tarball/
XDISTNAME=	v${PORTVERSION}
XEXTRACT_SUFX=	# empty
XDIST_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	FreeBSD@Shaneware.biz
XCOMMENT=	OpenColorIO color management solution
X
XLICENSE=	BSD
X
XLIB_DEPENDS=	OpenImageIO:${PORTSDIR}/graphics/openimageio
X
XFETCH_ARGS=	-pRr
XUSE_CMAKE=	yes
XCMAKE_VERBOSE=	yes
XCMAKE_OUTSOURCE=	yes
XCMAKE_ARGS=	-DOCIO_BUILD_JNIGLUE:BOOL=OFF \
X		-DOCIO_BUILD_PYGLUE:BOOL=OFF
XUSE_LDCONFIG=	yes
XWRKSRC=		${WRKDIR}/imageworks-OpenColorIO-b3cb224
XMAKE_JOBS_SAFE=	yes
X
XOPTIONS_DEFINE=		CLIAPPS SSE
XOPTIONS_DEFAULT=	SSE
X
XCLIAPPS_DESC=	Build cli apps
XSSE_DESC=	Enable sse optimizations
X
X.include <bsd.port.options.mk>
X
X.if ${CC:T} != "clang"
XUSE_GCC=	4.6+
X.endif
X
X.if empty(PORT_OPTIONS:MDOCS)
XCMAKE_ARGS+=	-DOCIO_BUILD_DOCS:BOOL=OFF
X.else
X# docs currently broken
XCMAKE_ARGS+=	-DOCIO_BUILD_DOCS:BOOL=OFF
X.endif
X
X.if ${PORT_OPTIONS:MCLIAPPS}
X.if ${CC:T} != "clang"
XBROKEN= cli apps don't build with gcc
X.endif
XCMAKE_ARGS+=	-DOCIO_BUILD_APPS:BOOL=ON
XPLIST_SUB+=	CLIAPPS=""
X.else
XCMAKE_ARGS+=	-DOCIO_BUILD_APPS:BOOL=OFF
XPLIST_SUB+=	CLIAPPS="@comment "
X.endif
X
X.if ${ARCH} == "i386" || ${OSVERSION} < 803000
X# this is needed for linking with openimageio
XLDFLAGS+=	-L${LOCALBASE}/lib/gcc46 -rpath ${LOCALBASE}/lib/gcc46
X.endif
X
X.if ${CC:T} == "clang" && ${ARCH} == "i386"
X# workaround for pr/165968
X# may need to test osversion after fix is applied
XCFLAGS+= -march=pentium2
X.endif
X
X.if ${PORT_OPTIONS:MSSE}
XCMAKE_ARGS+=	-DOCIO_USE_SSE:BOOL=ON
X.else
XCMAKE_ARGS+=	-DOCIO_USE_SSE:BOOL=OFF
X.endif
X
X.include <bsd.port.mk>
ad8ed991e7ecfd79d2d4cf329a6e19db
echo x - opencolorio/distinfo
sed 's/^X//' >opencolorio/distinfo << '536abe66fd19b43a154518fba10b727d'
XSHA256 (opencolorio/v1.0.7) = 54c6516a89dc9287f1bcc47f27a91fb608477295a4ba6106b45f34e89506d7d5
XSIZE (opencolorio/v1.0.7) = 11844185
536abe66fd19b43a154518fba10b727d
echo x - opencolorio/pkg-descr
sed 's/^X//' >opencolorio/pkg-descr << '2339e7a6d83d0e1432321019c5fea475'
XOpenColorIO (OCIO) is a complete color management solution geared
Xtowards motion picture production with an emphasis on visual effects
Xand computer animation.
X
XWWW: http://www.opencolorio.org
2339e7a6d83d0e1432321019c5fea475
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209151433.q8FEXq0X095960>