all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ng0 <ng0@infotropique.org>
To: Christopher Allan Webber <cwebber@dustycloud.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 001/303] gnu: Add opencolorio.
Date: Sat, 29 Jul 2017 16:48:26 +0000	[thread overview]
Message-ID: <20170729164826.tvouzdyeappobytm@abyayala> (raw)
In-Reply-To: <87lgn7z01r.fsf@dustycloud.org>

[-- Attachment #1: Type: text/plain, Size: 10544 bytes --]

Christopher Allan Webber transcribed 9.3K bytes:
> I have a friend who's a Blender user who said they'd like to see
> opencolorio support in the Blender package... this is an old patch,
> but maybe worth trying to get in again?

Was this directed specifically at myself, or just a bump for the thread?
I welcome any further work on this, but I'm not able to do this
currently or in a foreseeable future.

> ng0 writes:
> 
> > From: ng0 <ng0@we.make.ritual.n0.is>
> >
> > * gnu/packages/graphics (opencolorio): New variable.
> > * gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
> > ---
> >  gnu/local.mk                                       |  1 +
> >  gnu/packages/graphics.scm                          | 73 ++++++++++++++++++++++
> >  .../opencolorio-avoid-bundled-includes.patch       | 72 +++++++++++++++++++++
> >  3 files changed, 146 insertions(+)
> >  create mode 100644 gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
> >
> > diff --git a/gnu/local.mk b/gnu/local.mk
> > index a7006cb..bc52f1a 100644
> > --- a/gnu/local.mk
> > +++ b/gnu/local.mk
> > @@ -701,6 +701,7 @@ dist_patch_DATA =						\
> >    %D%/packages/patches/nvi-db4.patch				\
> >    %D%/packages/patches/ocaml-CVE-2015-8869.patch		\
> >    %D%/packages/patches/ocaml-findlib-make-install.patch	\
> > +  %D%/packages/patches/opencolorio-avoid-bundled-includes.patch \
> >    %D%/packages/patches/openexr-missing-samples.patch		\
> >    %D%/packages/patches/openjpeg-CVE-2015-6581.patch		\
> >    %D%/packages/patches/openjpeg-CVE-2016-5157.patch		\
> > diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
> > index d0df830..1f04da2 100644
> > --- a/gnu/packages/graphics.scm
> > +++ b/gnu/packages/graphics.scm
> > @@ -5,6 +5,7 @@
> >  ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
> >  ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
> >  ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
> > +;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
> >  ;;;
> >  ;;; This file is part of GNU Guix.
> >  ;;;
> > @@ -46,18 +47,21 @@
> >    #:use-module (gnu packages compression)
> >    #:use-module (gnu packages multiprecision)
> >    #:use-module (gnu packages boost)
> > +  #:use-module (gnu packages ghostscript)
> >    #:use-module (gnu packages gl)
> >    #:use-module (gnu packages glib)
> >    #:use-module (gnu packages graphviz)
> >    #:use-module (gnu packages gtk)
> >    #:use-module (gnu packages gnome)
> >    #:use-module (gnu packages image)
> > +  #:use-module (gnu packages java)
> >    #:use-module (gnu packages jemalloc)
> >    #:use-module (gnu packages photo)
> >    #:use-module (gnu packages python)
> >    #:use-module (gnu packages qt)
> >    #:use-module (gnu packages readline)
> >    #:use-module (gnu packages sdl)
> > +  #:use-module (gnu packages serialization)
> >    #:use-module (gnu packages video)
> >    #:use-module (gnu packages xml)
> >    #:use-module (gnu packages xorg))
> > @@ -510,3 +514,72 @@ and understanding different BRDFs (and other component functions).")
> >  It supports sub-pixel resolutions and anti-aliasing.  It is also library for
> >  rendering SVG graphics.")
> >      (license license:gpl2+)))
> > +
> > +(define-public opencolorio
> > +  (package
> > +    (name "opencolorio")
> > +    (version "1.0.9")
> > +    (source (origin
> > +              (method url-fetch)
> > +              (uri (string-append "https://github.com/imageworks/OpenColorIO/"
> > +                                  "archive/v" version ".tar.gz"))
> > +              (sha256
> > +               (base32
> > +                "0zzacmfs4k6lk4yd9v8f6p1616k7sm5wmhk0np93qx8m3ilixj17"))
> > +              (patches (search-patches
> > +                        "opencolorio-avoid-bundled-includes.patch"))
> > +              (file-name (string-append name "-" version ".tar.gz"))))
> > +    (build-system cmake-build-system)
> > +    (arguments
> > +     `(#:configure-flags
> > +       (list "-DOCIO_BUILD_JNIGLUE=OFF" "-DOCIO_BUILD_SHARED=ON"
> > +             "-DOCIO_BUILD_NUKE=OFF" ; Nuke is commerical software
> > +             "-DOCIO_BUILD_STATIC=OFF" "-DOCIO_STATIC_JNIGLUE=OFF"
> > +             "-DOCIO_BUILD_TRUELIGHT=OFF" ; Another external software
> > +             "-DUSE_EXTERNAL_LCMS=ON" "-DUSE_EXTERNAL_TINYXML=ON"
> > +             "-DUSE_EXTERNAL_YAML=ON" ;;"-DOCIO_BUILD_DOCS=ON"
> > +             "-DOCIO_BUILD_APPS=ON" ;;"-DOCIO_BUILD_PDF_DOCS=ON"
> > +             "-DOCIO_BUILD_PYGLUE=ON")
> > +       ;;"-DOCIO_BUILD_TESTS")))
> > +       #:phases
> > +       (modify-phases %standard-phases
> > +         (add-before 'configure 'fix-fixes
> > +           (lambda _
> > +             (substitute* "docs/CMakeLists.txt"
> > +               (("add_dependencies(doc Sphinx)") "")
> > +               (("add_dependencies(pdf latex)") "")))))))
> > +    (inputs
> > +     `(("lcms" ,lcms)
> > +       ("openimageio" ,openimageio)
> > +       ("glew" ,glew)
> > +       ("freeglut" ,freeglut)
> > +       ("python" ,python)
> > +       ("yaml-cpp" ,yaml-cpp)
> > +       ("yaml" ,yaml)
> > +       ("boost" ,boost)
> > +       ("tinyxml" ,tinyxml)
> > +       ("python-sphinx" ,python-sphinx)
> > +       ("mesa" ,mesa)
> > +       ("libxi" ,libxi)
> > +       ("libxmu" ,libxmu)
> > +       ("pkg-config" ,pkg-config)
> > +       ("python" ,python)
> > +       ;; https://github.com/imageworks/OpenColorIO/tree/master/ext:
> > +       ;; ("python-setuptools" ,python-setuptools) python3.
> > +       ("python-jinja2" ,python-jinja2)
> > +       ("python-pygments" ,python-pygments)
> > +       ("python-docutils" ,python-docutils)
> > +       ("java-junit" ,java-junit)))
> > +    (home-page "http://opencolorio.org/")
> > +    (synopsis "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.
> > +OpenColorIO is natively supported in commercial applications like Katana, Mari,
> > +Silhouette FX, and others coming soon.")
> > +    (license license:bsd-3)))
> > diff --git a/gnu/packages/patches/opencolorio-avoid-bundled-includes.patch b/gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
> > new file mode 100644
> > index 0000000..e77f733
> > --- /dev/null
> > +++ b/gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
> > @@ -0,0 +1,72 @@
> > +Do not use bundled applications from the source of OpenColorIO.
> > +
> > +--- OpenColorIO-1.0.9/docs/CMakeLists.txt.orig	2016-09-15 09:40:03.932004575 +0000
> > ++++ OpenColorIO-1.0.9/docs/CMakeLists.txt	2016-09-15 09:41:04.420845978 +0000
> > +@@ -1,67 +1,3 @@
> > +-
> > +-###############################################################################
> > +-### External Doc Apps ###
> > +-
> > +-# setuptools
> > +-# https://pypi.python.org/pypi/setuptools
> > +-set(SETUPTOOLS_VERSION 1.1.6)
> > +-ExternalProject_Add(setuptools
> > +-    URL ${CMAKE_SOURCE_DIR}/ext/setuptools-${SETUPTOOLS_VERSION}.tar.gz
> > +-    BUILD_IN_SOURCE 1
> > +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> > +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> > +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
> > +-)
> > +-
> > +-# docutils
> > +-# https://pypi.python.org/pypi/docutils
> > +-set(DOCUTILS_VERSION 0.11)
> > +-ExternalProject_Add(docutils
> > +-    DEPENDS setuptools
> > +-    URL ${CMAKE_SOURCE_DIR}/ext/docutils-${DOCUTILS_VERSION}.tar.gz
> > +-    BUILD_IN_SOURCE 1
> > +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> > +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> > +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
> > +-)
> > +-
> > +-# jinja2
> > +-# https://pypi.python.org/pypi/Jinja2
> > +-set(JINJA2_VERSION 2.7.1)
> > +-ExternalProject_Add(Jinja2
> > +-    DEPENDS setuptools
> > +-    URL ${CMAKE_SOURCE_DIR}/ext/Jinja2-${JINJA2_VERSION}.tar.gz
> > +-    BUILD_IN_SOURCE 1
> > +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> > +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> > +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
> > +-)
> > +-
> > +-# Pygments
> > +-# https://pypi.python.org/pypi/Pygments
> > +-set(PYGMENTS_VERSION 1.6)
> > +-ExternalProject_Add(Pygments
> > +-    DEPENDS setuptools
> > +-    URL ${CMAKE_SOURCE_DIR}/ext/Pygments-${PYGMENTS_VERSION}.tar.gz
> > +-    BUILD_IN_SOURCE 1
> > +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> > +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> > +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
> > +-)
> > +-
> > +-# sphinx
> > +-# https://pypi.python.org/pypi/Sphinx
> > +-set(SPHINX_VERSION 1.2b3)
> > +-ExternalProject_Add(Sphinx
> > +-    DEPENDS setuptools docutils Jinja2 Pygments
> > +-    URL ${CMAKE_SOURCE_DIR}/ext/Sphinx-${SPHINX_VERSION}.tar.gz
> > +-    PATCH_COMMAND patch -p1 < ${CMAKE_SOURCE_DIR}/ext/Sphinx-${SPHINX_VERSION}.patch
> > +-    BUILD_IN_SOURCE 1
> > +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> > +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> > +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT} --install-scripts=${EXTDIST_ROOT}/bin
> > +-)
> > +-
> > + ###############################################################################
> > + ### Create Doc Targets ###
> > + 
> 
> 

-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2017-07-29 16:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-03 12:16 opencolorio with unbundle patch, for lfam ng0
2016-10-03 12:16 ` [PATCH 001/303] gnu: Add opencolorio ng0
2017-07-29 16:21   ` Christopher Allan Webber
2017-07-29 16:48     ` ng0 [this message]
2017-08-04 16:02       ` Christopher Allan Webber
2017-08-04 17:18         ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170729164826.tvouzdyeappobytm@abyayala \
    --to=ng0@infotropique.org \
    --cc=cwebber@dustycloud.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.