/[gentoo-x86]/media-plugins/gimp-lensfun/gimp-lensfun-0.2.2-r2.ebuild
Gentoo

Contents of /media-plugins/gimp-lensfun/gimp-lensfun-0.2.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Oct 28 17:30:19 2012 UTC (2 years, 5 months ago) by hwoarang
Branch: MAIN
Add openmp support. Bug #437406. Thanks to Mario Kicherer <dev@kicherer.org>

(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key B4AFF2C2)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="4"
6
7 inherit eutils toolchain-funcs
8
9 MY_PN="gimplensfun"
10 MY_P="${MY_PN}-${PV}"
11
12 DESCRIPTION="Lensfun plugin for GIMP"
13 HOMEPAGE="http://lensfun.sebastiankraft.net/"
14 SRC_URI="http://lensfun.sebastiankraft.net/${MY_P}.tar.gz"
15
16 LICENSE="GPL-3"
17 SLOT="0"
18 KEYWORDS="~amd64"
19 IUSE="openmp"
20
21 RDEPEND="media-gfx/gimp
22 media-gfx/exiv2
23 media-libs/lensfun"
24 DEPEND="${RDEPEND}
25 virtual/pkgconfig"
26
27 S="${WORKDIR}/${MY_P}"
28
29 pkg_setup() {
30 if use openmp ; then
31 tc-has-openmp || die "Please switch to an openmp compatible compiler"
32 fi
33 }
34
35 src_prepare() {
36 epatch "${FILESDIR}"/${P}-build.patch
37
38 if ! use openmp; then
39 sed -i "s/-fopenmp//g" Makefile
40 fi
41
42 tc-export CXX
43 }
44
45 src_install() {
46 exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins
47 doexe ${MY_PN}
48 }

  ViewVC Help
Powered by ViewVC 1.1.20