On Tuesday 09 December 2003 08:24, Helgi �rn Helgason wrote:
> I've been trying to find out how to emerge a package with some configure
> options but no go. I want to emerge timidity++ and it should be compiled
> with the options --enable-audio=alsa --enable-server --enable-alsaseq.
> How do I do this?
bash-2.05b$ emerge -vp timidity++
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] media-sound/timidity++-2.12.0-r3 +oss -nas -esd +motif +X
-gtk +oggvorbis +tcltk -slang +alsa
Checking the ebuild (excerpt below) I find that this is equivalent to:
--localstatedir=/var/state/timidity++ \
--with-elf \
--enable-audio=oss,alsa,vorbis \
--enable-interface=dynamic,ncurses,emacs,vt100,motif,alsaseq \
--enable-server \
--enable-network \
--with-x \
--enable-spectrogram \
--enable-wrd \
--with-default-output=alsa
The closest to what you specified would be to emerge with USE="-* alsa" which
is equivalent to:
--localstatedir=/var/state/timidity++ \
--with-elf \
--enable-audio=alsa \
--enable-interface=dynamic,ncurses,emacs,vt100,alsaseq \
--enable-server \
--enable-network \
--with-default-output=alsa
On the other hand, if all you want is to ensure that your specified options
are included all you need to do is ensure you have "alsa" in your USE flags.
Here's the relevant part of timidity++-2.12.0-r3.ebuild:
interfaces="dynamic,ncurses,emacs,vt100"
if [ "`use oss`" ]; then \
audios="oss";
fi
use X \
&& myconf="${myconf} --with-x \
--enable-spectrogram --enable-wrd" \
&& interfaces="${interfaces},xskin,xaw" \
|| myconf="${myconf} --without-x "
use slang && interfaces="${interfaces},slang"
if [ "`use X`" ]; then \
use gtk && interfaces="${interfaces},gtk";
fi
if [ "`use X`" ]; then \
use motif && interfaces="${interfaces},motif";
fi
use alsa \
&& audios="${audios},alsa" \
&& interfaces="${interfaces},alsaseq" \
&& myconf="${myconf} --with-default-output=alsa"
use esd && audios="${audios},esd"
use oggvorbis && audios="${audios},vorbis"
use nas && audios="${audios},nas"
econf \
--localstatedir=/var/state/timidity++ \
--with-elf \
--enable-audio=${audios} \
--enable-interface=${interfaces} \
--enable-server \
--enable-network \
${myconf} || die
There's a bug here, btw. Did you pick it up? In the -vp run of emerge it lists
+tcltk and it is listed in the ebuild as a USE flag relevant to the build -
but it is actually never used! A small bug, but never the less...
Jason
--
[EMAIL PROTECTED] mailing list