# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: inherit eutils MY_P=${P/wsoundserver/WSoundServer} S=${WORKDIR}/${MY_P} IUSE="esd" DESCRIPTION="WindowMaker sound server" SRC_URI="http://largo.windowmaker.org/files/${MY_P}.tar.gz" HOMEPAGE="http://largo.windowmaker.org/" DEPEND="virtual/x11 || ( >=x11-wm/windowmaker-0.62.0 x11-wm/windowmaker-cvs ) x11-libs/libdockapp >=x11-libs/libPropList-0.9.1 >=media-libs/audiofile-0.1.9 esd? ( media-sound/esound )" RDEPEND="media-sound/wmsound-data" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/WSoundServer-WINGs.patch epatch ${FILESDIR}/WSoundServer-rm_unknown_audiofile_compression.patch } src_compile() { cd ${S} local myconf="--prefix=/usr --with-x --sysconfdir=/etc/X11" myconf="${myconf} `use_enable esd`" econf || die "configure failed" emake || die "make failed" } src_install() { cd ${S} einstall sysconfdir=/etc/X11 || die "make install failed" dodoc AUTHORS ChangeLog README insinto /etc/X11/WindowMaker newins ${FILESDIR}/WSoundServer-config WSoundServer insinto /usr/share/WindowMaker/Pixmaps doins ${FILESDIR}/WSoundServer.xpm } pkg_postinst() { einfo "WSoundServer currently supports 8 or 16 bit .wav files." }