Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 856 - new ebuild for awe-utils
Summary: new ebuild for awe-utils
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-26 02:08 UTC by Silvio Boehme
Modified: 2002-05-22 06:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Silvio Boehme 2002-02-26 02:08:26 UTC
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
Comment 1 Silvio Boehme 2002-02-26 02:12:50 UTC
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
}

Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-03-15 01:04:41 UTC
looks ok
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-22 06:47:46 UTC
Added into portage.  I tweaked your sed statements a little to make them more
readable and terse.


Thanks for your submission.