1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit toolchain-funcs
9 DESCRIPTION="DirectDraw Surface (DDS) format plugin for Gimp 2"
10 HOMEPAGE="http://code.google.com/p/gimp-dds/"
11 SRC_URI="http://gimp-dds.googlecode.com/files/${P}.tar.bz2"
15 KEYWORDS="~amd64 ~x86"
18 RDEPEND=">=media-gfx/gimp-2.6"
23 sed -e 's:CFLAGS=.*\$(:CFLAGS+=\$(:' \
24 -e 's:LDFLAGS=:LDFLAGS+=:' \
25 -i Makefile.linux || die
27 # Fixing incorrect $(LD) usage
28 # http://code.google.com/p/gimp-normalmap/issues/detail?id=1
29 sed -e 's:\t$(LD) :\t$(CC) :' \
30 -i Makefile.linux || die
34 emake CC="$(tc-getCC)" || die "emake failed"
38 exeinto "$(pkg-config --variable=gimplibdir gimp-2.0)/plug-ins"
39 doexe dds || die "Installation failed"
41 # No need to install the gimp-dds.odt or the images, as they have the same
42 # content as the gimp-dds.pdf
43 dodoc README TODO doc/gimp-dds.pdf || die