blob: 014af1d7bd8f1484fb154e745b7500935527b64a (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
inherit eutils toolchain-funcs
MY_PN="gimplensfun"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Lensfun plugin for GIMP"
HOMEPAGE="http://lensfun.sebastiankraft.net/"
SRC_URI="http://lensfun.sebastiankraft.net/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="openmp"
RDEPEND="media-gfx/gimp
media-gfx/exiv2
media-libs/lensfun"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
if use openmp ; then
tc-has-openmp || die "Please switch to an openmp compatible compiler"
fi
}
src_prepare() {
epatch "${FILESDIR}"/${P}-build.patch
if ! use openmp; then
sed -i "s/-fopenmp//g" Makefile
fi
tc-export CXX
}
src_install() {
exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins
doexe ${MY_PN}
}
|