diff options
author | 2009-05-30 19:22:46 +0000 | |
---|---|---|
committer | 2009-05-30 19:22:46 +0000 | |
commit | 5aaf5590834fab81ccd027b24a8855f5033e4fc8 (patch) | |
tree | dd1b477be7f1191f845a11908e62747017d2af8c /media-sound | |
parent | ppc stable #271793 (diff) | |
download | gentoo-2-5aaf5590834fab81ccd027b24a8855f5033e4fc8.tar.gz gentoo-2-5aaf5590834fab81ccd027b24a8855f5033e4fc8.tar.bz2 gentoo-2-5aaf5590834fab81ccd027b24a8855f5033e4fc8.zip |
Experimental sfxload init.d and conf.d files wrt #88159.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/awesfx/ChangeLog | 8 | ||||
-rw-r--r-- | media-sound/awesfx/awesfx-0.5.1c-r1.ebuild | 42 | ||||
-rw-r--r-- | media-sound/awesfx/files/sfxload.confd | 4 | ||||
-rw-r--r-- | media-sound/awesfx/files/sfxload.initd | 20 |
4 files changed, 73 insertions, 1 deletions
diff --git a/media-sound/awesfx/ChangeLog b/media-sound/awesfx/ChangeLog index 74b3cc507e97..8bae4869bb3d 100644 --- a/media-sound/awesfx/ChangeLog +++ b/media-sound/awesfx/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/awesfx # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/awesfx/ChangeLog,v 1.28 2009/05/25 21:05:23 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/awesfx/ChangeLog,v 1.29 2009/05/30 19:22:45 ssuominen Exp $ + +*awesfx-0.5.1c-r1 (30 May 2009) + + 30 May 2009; Samuli Suominen <ssuominen@gentoo.org> + +awesfx-0.5.1c-r1.ebuild, +files/sfxload.confd, +files/sfxload.initd: + Experimental sfxload init.d and conf.d files wrt #88159. 25 May 2009; Markus Meier <maekke@gentoo.org> awesfx-0.5.1c.ebuild: x86 stable, bug #270569 diff --git a/media-sound/awesfx/awesfx-0.5.1c-r1.ebuild b/media-sound/awesfx/awesfx-0.5.1c-r1.ebuild new file mode 100644 index 000000000000..4fc935f4e8b0 --- /dev/null +++ b/media-sound/awesfx/awesfx-0.5.1c-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/awesfx/awesfx-0.5.1c-r1.ebuild,v 1.1 2009/05/30 19:22:45 ssuominen Exp $ + +EAPI=2 +inherit eutils + +DESCRIPTION="AWE32 Sound Driver Utility Programs" +HOMEPAGE="http://ftp.suse.com/pub/people/tiwai/awesfx" +SRC_URI="http://ftp.suse.com/pub/people/tiwai/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND="media-libs/alsa-lib" +DEPEND="${RDEPEND}" + +BANK_LOC="/usr/share/sounds/sf2" + +src_prepare() { + epatch "${FILESDIR}"/${P}-getline.patch +} + +src_configure() { + econf \ + --with-sfpath=${BANK_LOC} +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog README SBKtoSF2.txt samples/README-bank + rm -f "${D}"/usr/share/sounds/sf2/README-bank + newinitd "${FILESDIR}"/sfxload.initd sfxload + newconfd "${FILESDIR}"/sfxload.confd sfxload +} + +pkg_postinst() { + elog "Copy your SoundFont files from the original CDROM" + elog "shipped with your soundcard to ${BANK_LOC}." +} diff --git a/media-sound/awesfx/files/sfxload.confd b/media-sound/awesfx/files/sfxload.confd new file mode 100644 index 000000000000..2ab604f80ac7 --- /dev/null +++ b/media-sound/awesfx/files/sfxload.confd @@ -0,0 +1,4 @@ +# /etc/conf.d/sfxload + +# Example location of sound bank for sfxload init script +sfxbank="/usr/share/sounds/sf2/foobar.bin" diff --git a/media-sound/awesfx/files/sfxload.initd b/media-sound/awesfx/files/sfxload.initd new file mode 100644 index 000000000000..6c71ce40807a --- /dev/null +++ b/media-sound/awesfx/files/sfxload.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/awesfx/files/sfxload.initd,v 1.1 2009/05/30 19:22:46 ssuominen Exp $ + +depend() { + need alsasound +} + +start() { + ebegin "Loading sound font bank" + /usr/bin/sfxload -q ${sfxbank} + eend $? "Error at loading sound font bank ${sfxbank}" +} + +stop() { + ebegin "Unloading sound font bank" + /usr/bin/sfxload -i -q + eend $? "Error at unloading sound font bank" +} |