# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils nsplugins DESCRIPTION="Tiff Plugin is mozilla/netscape compatible plugin for viewing tiff images." HOMEPAGE="http://tiff-plugin.sourceforge.net/" SRC_URI="mirror://sourceforge/tiff-plugin/${P}-1.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="nsplugin" DEPEND="dev-libs/nspr dev-util/pkgconfig media-libs/tiff www-client/mozilla-firefox" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/${P}.gentoo.patch" } src_compile() { emake || die "emake failed" if use nsplugin ; then emake plugin || die "emake plugin failed" fi } src_install() { # install the viewer exeinto /usr/bin doexe mozilla-tiff-viewer # install the plugin if use nsplugin ; then exeinto /usr/$(get_libdir)/${PLUGINS_DIR} doexe mozilla-tiff-plugin.so fi dodoc AUTHORS README }