# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: inherit eutils IUSE="esd" DESCRIPTION="WindowMaker sound server" SRC_URI="http://largo.windowmaker.org/files/${P}.tar.gz" HOMEPAGE="http://largo.windowmaker.org/" DEPEND="virtual/x11 || ( >=x11-wm/windowmaker-0.62.0 x11-wm/windowmaker-cvs ) >=x11-libs/libPropList-0.9.1 esd? ( >=media-sound/esound )" RDEPEND="media-sound/wmsound-data" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" S=${WORKDIR}/${P} src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/wmsound-config.patch epatch ${FILESDIR}/wmsound-ComplexProgramTargetNoMan.patch epatch ${FILESDIR}/wmsound-esd.patch } src_compile() { export PATH="${PATH}:/usr/X11R6/bin" cd ${S} xmkmf -a emake || die "make failed" } src_install() { cd ${S} einstall PREFIX=${D}/usr USRLIBDIR=${D}/usr/X11R6/lib || die "make install failed" dodoc AUTHORS BUGS ChangeLog } pkg_postinst() { einfo "Wmsound currently supports 8 or 16 bit .wav files." }