I wrote an ebuild to add alsa native support to audacity-1.2.4b (actually stable) and possibly to future 1.3.x ebuild. Actually the ebuild DOESN'T work and I need some helt with it :) The problem is in the portaudio library, audacity uses a "local" copy and I don't knows how I can compile it using a system wide one (>=media-libs/portaudio-19 actually it isn't in portage) [...] configure: configuring in lib-src/portaudio-v19 configure: running /bin/sh './configure' --prefix=/usr '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--with-libmad=system' '--with-vorbis=system' '--with-id3tag=system' '--with-libsndfile=system' '--with-portaudio=v19' '--without-portmixer' '--build=i686-pc-linux-gnu' 'CFLAGS=-march=pentium-m -O2 -fforce-addr -ftracer -fomit-frame-pointer -pipe' 'CXXFLAGS=-march=pentium-m -O2 -fforce-addr -ftracer -fomit-frame-pointer -pipe -fvisibility-inlines-hidden' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' --cache-file=/dev/null --srcdir=. configure: warning: CFLAGS=-march=pentium-m -O2 -fforce-addr -ftracer -fomit-frame-pointer -pipe: invalid host type configure: warning: CXXFLAGS=-march=pentium-m -O2 -fforce-addr -ftracer -fomit-frame-pointer -pipe -fvisibility-inlines-hidden: invalid host type configure: error: can only configure for one host and one target at a time configure: error: /bin/sh './configure' failed for lib-src/portaudio-v19 On audacity wiki I found: * If configure fails, with errors like: $ configure: warning: CC=gcc: invalid host type $ configure: error: can only configure for one host and one target at a time $ configure: error: /bin/sh './configure' failed for lib-src/portaudio-v19 then put "env -i" in front of the command to supress the CC and CXX environment variables. $ env -i ./configure --with-portaudio=v19 --without-portmixer So I tryed a manual configure in ebuild workdir without --build option and all seems to work well: ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-libmad=system --with-vorbis=system --with-id3tag=system --with-libsndfile=system --with-portaudio=v19 --without-portmixer Any suggestions?
Created attachment 91109 [details] media-sound/audacity-1.2.4b-r2.ebuild
Created attachment 91117 [details] media-sound/audacity-1.2.4b-r2.ebuild Ok I've solved the problem with portaudio-v19 configuration using its last snapshot. Now there is some "include" problems :) [...] In file included from AStatus.cpp:18: AudioIO.h:16:23: portaudio.h: No such file or directory In file included from AStatus.cpp:18: AudioIO.h:171: error: ISO C++ forbids declaration of `PaStream' with no type AudioIO.h:171: error: expected `;' before '*' token AudioIO.h:190: error: `PaError' does not name a type AudioIO.h:218: error: expected `,' or `...' before '*' token AudioIO.h:219: error: ISO C++ forbids declaration of `PaStreamCallbackTimeInfo' with no type But I think it's a step forward :)
I've actually struggled quite a bit myself trying to get 1.3.0b working with alsa. I gave up, and the reason for that is the audacity devs are talking about a 1.3.2 release possibly within the next two weeks, which should include native alsa support. http://audacityteam.org/forum/thread/1301 IMO, you should just wait for 1.3.2 to come out and if there's issues with that, then try to get alsa to work in that. Although according to the dev there alsa should be fine in 1.3.2.
1.3.2 in cvs now.