--- /usr/portage/media-libs/libsamplerate/libsamplerate-0.1.0.ebuild 2004-07-04 08:37:18.000000000 +0200 +++ libsamplerate-0.1.0.ebuild 2004-07-16 19:00:40.000000000 +0200 @@ -9,13 +9,20 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc sparc ~alpha ~ia64 amd64" -IUSE="sndfile" +IUSE="sndfile static pic" -DEPEND=">=dev-libs/fftw-2.0.0 +DEPEND=">=dev-libs/fftw-3.0.1 sndfile? ( >=media-libs/libsndfile-1.0.2 ) >=dev-util/pkgconfig-0.14.0" +src_compile() { + myconf="$(use_with pic) $(use_enable static)" + econf $myconf || die "./configure failed" + emake || die "emake failed" +} + src_install() { make DESTDIR="${D}" install || die - dodoc AUTHORS ChangeLog || die "dodoc failed" + dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README + dohtml doc/*.html doc/*.css doc/*.png }