# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/tse3/tse3-0.2.7.ebuild,v 1.13 2004/10/08 09:51:50 eradicator Exp $ IUSE="alsa oss arts" inherit eutils 64-bit DESCRIPTION="TSE3 Sequencer library" HOMEPAGE="http://TSE3.sourceforge.net/" SRC_URI="mirror://sourceforge/tse3/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc amd64 sparc" DEPEND="alsa? ( media-libs/alsa-lib ) arts? ( kde-base/arts )" src_unpack() { unpack ${A} cd ${S} # size_t patch for 64bit machines case "${ARCH}" in alpha|*64) epatch ${FILESDIR}/${P}-size_t-64bit.patch ;; esac # gcc-3.4 patch epatch ${FILESDIR}/${P}-gcc34.patch } src_compile() { local myconf="" use arts || myconf="${myconf} --without-arts" use alsa || myconf="${myconf} --without-alsa" use oss || myconf="${myconf} --without-oss" econf ${myconf} || die "./configure failed" emake -j1 || die } src_install() { make DESTDIR="${D}" install || die dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS TODO Version }