diff options
author | 2015-08-14 03:22:28 +0200 | |
---|---|---|
committer | 2015-08-14 03:25:04 +0200 | |
commit | 13d95cfe56b912f73214117a4af28560370305a4 (patch) | |
tree | da1d4a47143039b28bad3c131c19c54b6fc5510a /media-gfx/enblend/enblend-4.1.3-r1.ebuild | |
parent | media-gfx/enblend-4.1.1-r1: Fix compilation with recent media-libs/vigra (diff) | |
download | gentoo-13d95cfe56b912f73214117a4af28560370305a4.tar.gz gentoo-13d95cfe56b912f73214117a4af28560370305a4.tar.bz2 gentoo-13d95cfe56b912f73214117a4af28560370305a4.zip |
media-gfx/enblend: Fix texinfo compilation (bug #479978)
Upstream patch (with version patching removed) from
https://bugs.launchpad.net/enblend/+bug/1181678/comments/16
http://hg.code.sf.net/p/enblend/code/rev/8387f0170f7b
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'media-gfx/enblend/enblend-4.1.3-r1.ebuild')
-rw-r--r-- | media-gfx/enblend/enblend-4.1.3-r1.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/media-gfx/enblend/enblend-4.1.3-r1.ebuild b/media-gfx/enblend/enblend-4.1.3-r1.ebuild new file mode 100644 index 000000000000..1984998ea3b9 --- /dev/null +++ b/media-gfx/enblend/enblend-4.1.3-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils cmake-utils + +MY_P="${PN}-enfuse-${PV/_rc/rc}" + +DESCRIPTION="Image Blending with Multiresolution Splines" +HOMEPAGE="http://enblend.sourceforge.net/" +SRC_URI="mirror://sourceforge/enblend/${MY_P}.tar.gz" + +LICENSE="GPL-2 VIGRA" +SLOT="0" +KEYWORDS="~amd64 ppc ~x86" +IUSE="debug doc gpu image-cache openmp" + +REQUIRED_USE="openmp? ( !image-cache )" + +RDEPEND=" + >=dev-libs/boost-1.31.0:= + media-libs/glew + >=media-libs/lcms-2.5:2 + >=media-libs/libpng-1.2.43:0= + >=media-libs/openexr-1.0:= + media-libs/plotutils[X] + media-libs/tiff:= + >=media-libs/vigra-1.8.0[openexr] + sci-libs/gsl + virtual/jpeg:0= + debug? ( dev-libs/dmalloc ) + gpu? ( media-libs/freeglut )" +DEPEND="${RDEPEND} + media-gfx/imagemagick + sys-apps/help2man + virtual/pkgconfig + doc? ( + media-gfx/transfig + sci-visualization/gnuplot[gd] + virtual/latex-base + )" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( "${FILESDIR}/${PN}-4.1.3-vigra_check.patch" ) + +src_prepare() { + sed -i -e "/CXX_FLAGS/s:-O3::g" CMakeLists.txt || die + sed -i -e "s:doc/enblend:share/doc/${PF}:" doc/CMakeLists.txt || die + cmake-utils_src_prepare + + epatch "${FILESDIR}"/${P}-texinfo-5-upstream.patch + epatch "${FILESDIR}"/${P}-texinfo-5-more.patch +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_CXX_FLAGS_RELEASE="" + $(cmake-utils_use_enable debug DMALLOC) + $(cmake-utils_use doc DOC) + $(cmake-utils_use_enable image-cache IMAGECACHE) + $(cmake-utils_use_enable openmp) + $(cmake-utils_use_enable gpu) + ) + CMAKE_BUILD_TYPE="Release" + cmake-utils_src_configure +} + +src_compile() { + # forcing -j1 as every parallel compilation process needs about 1 GB RAM. + cmake-utils_src_compile -j1 +} + +src_install() { + local DOCS=( AUTHORS ChangeLog NEWS README ) + cmake-utils_src_install +} |