1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit toolchain-funcs
9 DESCRIPTION="Gimp plug-in for converting images into RGB normal maps"
10 HOMEPAGE="http://code.google.com/p/gimp-normalmap/"
11 SRC_URI="http://gimp-normalmap.googlecode.com/files/${P}.tar.bz2"
15 KEYWORDS="~amd64 ~x86"
18 RDEPEND="media-gfx/gimp
25 sed -e 's:\(CFLAGS\)=-O3:\1+=:' \
26 -e 's:-L/usr/X11R6/lib::' \
27 -i Makefile.linux || die
32 emake CC="${cc}" LD="${cc}" LDFLAGS="${LDFLAGS}" || die "emake failed"
36 exeinto $(pkg-config --variable=gimplibdir gimp-2.0)/plug-ins
37 doexe normalmap || die "Installation failed"
42 elog "The GIMP normalmap plugin is accessible from the menu:"
43 elog "Filters -> Map -> Normalmap"