blob: 08f829c5e3b2fe2383a123d6b25e307afff6818f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/luminance-hdr/luminance-hdr-2.2.1.ebuild,v 1.1 2012/03/13 07:58:17 radhermit Exp $
EAPI="4"
inherit cmake-utils toolchain-funcs eutils
DESCRIPTION="Luminance HDR is a graphical user interface that provides a workflow for HDR imaging."
HOMEPAGE="http://qtpfsgui.sourceforge.net"
SRC_URI="mirror://sourceforge/qtpfsgui/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
LANGS=" cs de es fr fi hu id it pl ro ru tr"
IUSE="${LANGS// / linguas_} openmp"
DEPEND="
>=media-gfx/exiv2-0.14
>=media-libs/libraw-0.13.4
>=media-libs/openexr-1.2.2-r2
>=media-libs/tiff-3.8.2-r2
sci-libs/fftw:3.0
sci-libs/gsl
virtual/jpeg
x11-libs/qt-core:4
x11-libs/qt-gui:4
x11-libs/qt-sql:4
x11-libs/qt-webkit:4"
RDEPEND="${DEPEND}"
DOCS=( AUTHORS BUGS Changelog README TODO )
pkg_setup() {
if use openmp ; then
tc-has-openmp || die "Please switch to an openmp compatible compiler"
fi
}
src_prepare() {
# Don't try to define the git version of the release
epatch "${FILESDIR}"/${P}-no-git.patch
# Don't install extra docs and fix install dir
epatch "${FILESDIR}"/${P}-docs.patch
# Fix openmp automagic support
epatch "${FILESDIR}"/${P}-openmp-automagic.patch
}
src_configure() {
mycmakeargs=(
$(cmake-utils_use_use openmp OPENMP)
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
for lang in ${LANGS} ; do
use linguas_${lang} || { rm "${D}"/usr/share/${PN}/i18n/lang_${lang}.qm || die ; }
done
}
|