This is a ebuild for awesfx utils, used by me to load midi soundfont files to my soundblaster live. To load an soundfont just copy the soundfont file to /usr/share/sfbank (Soundfonts are shipped with your soundcard *.SF2) sfxload XXX.SF2 You need a running sound system: ( sample for SBLive ) modprobe snd-synth-emu10k1 modprobe snd-card-emu10k1 modprobe snd-seq-oss
filename: awesfx-0.4.4.ebuild # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Silvio Boehme <Silvio.Boehme@gmx.net> # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.3 2002/02/04 15:46:51 gbevin Exp DESCRIPTION="AWE Utilities - sfxload" HOMEPAGE="http://mitglied.lycos.de/iwai/awedrv.html" S=${WORKDIR}/${P} SRC_URI="http://mitglied.lycos.de/iwai/${P}.tar.bz2" DEPEND="virtual/glibc" src_unpack() { unpack ${A} ; cd ${S} # use shared build, not static rm Makefile sed -e "s/CFLAGS = \$(CDEBUGFLAGS) \$(CINCS) \$(CDEFS)/CFLAGS = \$(CINCS) ${CFLAGS}/" \ Makefile-shared > Makefile cd awelib rm Makefile sed -e "s/CFLAGS = \$(CDEBUGFLAGS) \$(CINCS) \$(CDEFS)/CFLAGS = \$(CINCS) ${CFLAGS}/" \ Makefile-shared > Makefile mv config.h config.h.orig sed -e 's/\/usr\/local\/lib\/sfbank:\/dos\/sb32\/sfbank/\/usr\/share\/sfbank/' \ config.h.orig > config.h } src_compile() { export CC=gcc make \ INSTDIR=${D}/usr \ BINDIR=${D}/usr/bin \ INCDIR=${D}/usr/include/awe \ LIBDIR=${D}/usr/lib \ MANDIR=${D}/usr/share/man \ BANKDIR=${D}/usr/share/sfbank \ all || die "compile problem" } src_install() { make \ INSTDIR=${D}/usr \ BINDIR=${D}/usr/bin \ INCDIR=${D}/usr/include/awe \ LIBDIR=${D}/usr/lib \ MANDIR=${D}/usr/share/man \ BANKDIR=${D}/usr/share/sfbank \ install || die "install problem" } pkg_postinst() { echo echo "*****************************************************************" echo "* Please copy your SoundFont files from the original CD-ROM *" echo "* shipped with your soundcard to *" echo "* /usr/share/sfbank *" echo "*****************************************************************" echo }
looks ok
Added into portage. I tweaked your sed statements a little to make them more readable and terse. Thanks for your submission.