You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/opencolorio/opencolorio-1.0.8.ebuild

86 lines
2.2 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/opencolorio/opencolorio-1.0.8.ebuild,v 1.8 2013/09/24 11:01:50 pinkbyte Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit cmake-utils python-single-r1 vcs-snapshot
DESCRIPTION="A color management framework for visual effects and animation"
HOMEPAGE="http://opencolorio.org/"
SRC_URI="https://github.com/imageworks/OpenColorIO/tarball/v${PV} \
-> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc opengl pdf python sse2 test"
RDEPEND="opengl? (
media-libs/lcms:2
>=media-libs/openimageio-1.1.0
media-libs/glew
media-libs/freeglut
virtual/opengl
)
python? ( ${PYTHON_DEPS} )
=dev-cpp/yaml-cpp-0.3*
dev-libs/tinyxml
"
DEPEND="${RDEPEND}
doc? (
pdf? ( dev-python/sphinx[latex,${PYTHON_USEDEP}] )
!pdf? ( dev-python/sphinx[${PYTHON_USEDEP}] )
)
"
# Documentation building requires Python bindings building
REQUIRED_USE="doc? ( python )"
# Restricting tests, bugs #439790 and #447908
RESTRICT="test"
PATCHES=(
"${FILESDIR}/${P}-documentation-gen.patch"
"${FILESDIR}/${P}-remove-external-doc-utilities.patch"
)
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
cmake-utils_src_prepare
use python && python_fix_shebang .
}
src_configure() {
# Missing features:
# - Truelight and Nuke are not in portage for now, so their support are disabled
# - Java bindings was not tested, so disabled
# Notes:
# - OpenImageIO is required for building ociodisplay and ocioconvert (USE opengl)
# - OpenGL, GLUT and GLEW is required for building ociodisplay (USE opengl)
local mycmakeargs=(
-DOCIO_BUILD_JNIGLUE=OFF
-DOCIO_BUILD_NUKE=OFF
-DOCIO_BUILD_SHARED=ON
-DOCIO_BUILD_STATIC=OFF
-DOCIO_STATIC_JNIGLUE=OFF
-DOCIO_BUILD_TRUELIGHT=OFF
-DUSE_EXTERNAL_LCMS=ON
-DUSE_EXTERNAL_TINYXML=ON
-DUSE_EXTERNAL_YAML=ON
$(cmake-utils_use doc OCIO_BUILD_DOCS)
$(cmake-utils_use opengl OCIO_BUILD_APPS)
$(cmake-utils_use pdf OCIO_BUILD_PDF_DOCS)
$(cmake-utils_use python OCIO_BUILD_PYGLUE)
$(cmake-utils_use sse2 OCIO_USE_SSE)
$(cmake-utils_use test OCIO_BUILD_TESTS)
)
cmake-utils_src_configure
}