# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="examples" DESCRIPTION="libifp is a general-purpose library-driver for iRiver's iFP (flash-based) portable audio players" HOMEPAGE="http://ifp-driver.sourceforge.net/libifp/" SRC_URI="mirror://sourceforge/ifp-driver/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" DEPEND=">=dev-libs/libusb-0.1.0 >=app-doc/doxygen-1.3.7" RDEPEND=">=dev-libs/libusb-0.1.0" src_compile() { econf \ $(use_enable examples) \ || die "configure failed" emake CFLAGS="${CFLAGS} -Wall -W" || die "emake failed" } src_install() { einstall || die "make install failed" # clean /usr/bin after installation # by moving examples to proper dir if use examples; then insinto /usr/share/${PN}/examples doins ${S}/examples/simple.c ${S}/examples/ifpline.c mv ${D}/usr/bin/{simple,ifpline} ${D}/usr/share/${PN}/examples else rm -f ${D}/usr/bin/{simple,ifpline} fi; dodoc README ChangeLog TODO # man pages aren't gziped prepallman }