diff options
Diffstat (limited to 'media-libs/opengtl/opengtl-0.9.18.ebuild')
-rw-r--r-- | media-libs/opengtl/opengtl-0.9.18.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/media-libs/opengtl/opengtl-0.9.18.ebuild b/media-libs/opengtl/opengtl-0.9.18.ebuild new file mode 100644 index 000000000000..b10fa83f098b --- /dev/null +++ b/media-libs/opengtl/opengtl-0.9.18.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +MY_P="OpenGTL-${PV}" + +inherit cmake-utils + +DESCRIPTION="Collection of libraries for graphics transformation algorithms" +HOMEPAGE="http://opengtl.org/" +SRC_URI="http://download.opengtl.org/${MY_P}.tar.bz2 http://dev.gentoo.org/~creffett/distfiles/${PN}-0.9.18-llvm-3.3.patch" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="debug test" + +RDEPEND=" + media-libs/libpng:0= + ( + <sys-devel/llvm-3.4 + >=sys-devel/llvm-3.1 + ) +" +DEPEND="${RDEPEND} + test? ( dev-util/lcov ) +" + +RESTRICT="test" + +S=${WORKDIR}/${MY_P} + +PATCHES=( + "${FILESDIR}/${PN}-0.9.18-memcpy.patch" + "${FILESDIR}/${PN}-0.9.18-underlinking.patch" +) + +src_prepare() { + if has_version ">=sys-devel/llvm-3.3"; then + epatch "${DISTDIR}/${PN}-0.9.18-llvm-3.3.patch" + fi + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE + $(cmake-utils_use debug OPENGTL_ENABLE_DEBUG_OUTPUT) + $(cmake-utils_use test OPENGTL_BUILD_TESTS) + $(cmake-utils_use test OPENGTL_CODE_COVERAGE) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newdoc OpenShiva/doc/reference/region.pdf OpenShiva.pdf +} |