# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="KToon - 2D animation toolkit" HOMEPAGE="http://ktoon.toonka.com" SRC_URI="http://download.berlios.de/${PN}/${P}-stable-sources.tar.gz" IUSE="gif gstreamer ming spell" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" # ktoon's configure test fails to detects # ffmpeg correctly # encode? ( ~media-video/ffmpeg-0.4.9 ) DEPEND=">=x11-libs/qt-4.1.4 gif? ( media-libs/giflib ) gstreamer? ( =media-libs/gstreamer-0.10* ) ming? ( >=media-libs/ming-0.3.0 ) spell? ( app-text/aspell )" src_compile() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-g++4fix.patch epatch "${FILESDIR}"/${P}-configure.patch # The following patch could be unnecessary epatch "${FILESDIR}"/${P}-plugindir.patch econf \ $(use_enable gif) \ $(use_with encode ffmpeg) \ $(use_with gstreamer) \ $(use_with ming) \ $(use_with spell aspell) || die "econf failed" qmake emake || die "emake failed" } src_install() { # This installs everything on /usr (don't use share/ and such) # so some fixes are needed here. emake INSTALL_ROOT="${D}/usr" install || die "emake install failed" }