blob: c13d05e92c5460d3747e87dc0221b46fe30f81eb (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-gmic/gimp-gmic-1.6.0.4.ebuild,v 1.1 2015/02/07 21:35:43 radhermit Exp $
EAPI=5
inherit eutils toolchain-funcs flag-o-matic
DESCRIPTION="G'MIC GIMP plugin"
HOMEPAGE="http://gmic.sourceforge.net/gimp.shtml"
SRC_URI="mirror://sourceforge/gmic/gmic_${PV}.tar.gz"
LICENSE="CeCILL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="openmp"
RDEPEND="
>=media-gfx/gimp-2.4.0
media-libs/libpng:0=
sci-libs/fftw:3.0[threads]
sys-libs/zlib
"
DEPEND="${RDEPEND}"
S=${WORKDIR}/gmic-${PV}/src
pkg_pretend() {
if use openmp ; then
tc-has-openmp || die "Please switch to an openmp compatible compiler"
fi
if ! test-flag-CXX -std=c++11 ; then
die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags"
fi
}
src_prepare() {
cp "${FILESDIR}"/gmic-1.6.0.2-makefile.patch "${WORKDIR}" || die
edos2unix "${WORKDIR}"/gmic-1.6.0.2-makefile.patch
epatch "${WORKDIR}"/gmic-1.6.0.2-makefile.patch
if ! use openmp ; then
sed -i -r "s/^(OPENMP_(CFLAGS|LIBS) =).*/\1/" Makefile || die
fi
}
src_compile() {
emake CC="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" OPT_CFLAGS= DEBUG_CFLAGS= gimp
}
src_install() {
emake DESTDIR="${D}" install-gimp
dodoc ../README
}
pkg_postinst() {
elog "The G'MIC plugin is accessible from the menu:"
elog "Filters -> G'MIC"
}
|