[Slackbuilds-users] slackbuild for audacity 1.3.12 on -current/13.1

Jules Villard jvillard at eecs.qmul.ac.uk
Mon Jan 3 12:24:29 UTC 2011


Hi slackbuilds users,

I tried using the slackbuild published here
  http://slackbuilds.org/repository/13.1/audio/audacity/
to compile audacity for -current, but I ran into this problem:
  http://bugzilla.audacityteam.org/show_bug.cgi?id=221

I've contacted the maintainer listed on the slackbuild's page, who told
me that he's in fact not maintaining it anymore, and asked me to post
here instead.

Hence I submit to you the attached patch for the audacity slackbuild,
which backports the upstream patch.  The slackbuild runs fine on
-current with this patch, and I don't think the patch affects the build
on 13.1.

Cheers,
Jules

diff -Nru audacity/audacity-src-1.3.12-beta-configure-portmixer.patch /home/villard/softs/audacity/audacity-src-1.3.12-beta-configure-portmixer.patch
--- audacity/audacity-src-1.3.12-beta-configure-portmixer.patch	1970-01-01 01:00:00.000000000 +0100
+++ /home/villard/softs/audacity/audacity-src-1.3.12-beta-configure-portmixer.patch	2011-01-02 20:21:06.000000000 +0100
@@ -0,0 +1,94 @@
+diff --git a/lib-src/portmixer/configure.ac b/lib-src/portmixer/configure.ac
+index eeda1fb..974ed3b 100644
+--- a/lib-src/portmixer/configure.ac
++++ b/lib-src/portmixer/configure.ac
+@@ -49,34 +49,57 @@ if [[ with_portaudio != "" ]] ; then
+ fi
+ 
+ #
++# Check which APIs are available
++#
++
++have_oss=no
++AC_CHECK_HEADERS([sys/soundcard.h linux/soundcard.h machine/soundcard.h], have_oss=yes)
++
++AC_CHECK_HEADER(alsa/asoundlib.h, have_alsa=yes, have_alsa=no)
++AC_CHECK_HEADER(CoreAudio/CoreAudio.h, have_coreaudio=yes, have_coreaudio=no)
++AC_CHECK_HEADER(windows.h, have_windows=yes, have_windows=no)
++
++#
+ # Make sure the support is there
+ #
+ have_support=yes
+-AC_EGREP_HEADER([PaWinDS_GetStreamInputGUID], [pa_win_ds.h], , [have_support=no])
+-if [[ $have_support = "no" ]] ; then
+-		AC_MSG_WARN("Missing support in pa_win_ds.h");
+-fi
+-AC_EGREP_HEADER([PaAlsa_GetStreamInputCard], [pa_linux_alsa.h], , [have_support=no])
+-if [[ $have_support = "no" ]] ; then
++
++if [[ $have_alsa = "yes" ]] ; then
++	AC_EGREP_HEADER([PaAlsa_GetStreamInputCard], [pa_linux_alsa.h], , [have_support=no])
++	if [[ $have_support = "no" ]] ; then
+ 		AC_MSG_WARN("Missing support in pa_linux_alsa.h");
++	fi
+ fi
+-AC_EGREP_HEADER([PaWinMME_GetStreamInputHandle], [pa_win_wmme.h], , [have_support=no])
+-if [[ $have_support = "no" ]] ; then
+-		AC_MSG_WARN("Missing support in pa_win_wmme.h");
+-fi
+-AC_EGREP_HEADER([PaMacCore_GetStreamInputDevice], [pa_mac_core.h], , [have_support=no])
+-if [[ $have_support = "no" ]] ; then
++
++if [[ $have_coreaudio = "yes" ]] ; then
++	AC_EGREP_HEADER([PaMacCore_GetStreamInputDevice], [pa_mac_core.h], , [have_support=no])
++	if [[ $have_support = "no" ]] ; then
+ 		AC_MSG_WARN("Missing support in pa_mac_core.h");
++	fi
+ fi
+-AC_EGREP_HEADER([PaOSS_GetStreamInputDevice], [pa_unix_oss.h], , [have_support=no])
+-if [[ $have_support = "no" ]] ; then
++
++if [[ $have_oss = "yes" ]] ; then
++	AC_EGREP_HEADER([PaOSS_GetStreamInputDevice], [pa_unix_oss.h], , [have_support=no])
++	if [[ $have_support = "no" ]] ; then
+ 		AC_MSG_WARN("Missing support in pa_unix_oss.h");
++	fi
++fi
++
++if [[ $have_windows = "yes" ]] ; then
++	AC_EGREP_HEADER([PaWinDS_GetStreamInputGUID], [pa_win_ds.h], , [have_support=no])
++	if [[ $have_support = "no" ]] ; then
++		AC_MSG_WARN("Missing support in pa_win_ds.h");
++	fi
++	AC_EGREP_HEADER([PaWinMME_GetStreamInputHandle], [pa_win_wmme.h], , [have_support=no])
++	if [[ $have_support = "no" ]] ; then
++		AC_MSG_WARN("Missing support in pa_win_wmme.h");
++	fi
+ fi
++
+ AC_EGREP_HEADER([Pa_GetStreamHostApiType], [portaudio.h], , [have_support=no])
+ if [[ $have_support = "no" ]] ; then
+ 		AC_MSG_WARN("Missing support in portaudio.h");
+ fi
+-
+ if [[ $have_support = "no" ]] ; then
+    AC_MSG_ERROR("Your version of portaudio does not include required functions"); 
+ fi
+@@ -88,16 +111,6 @@ AC_SUBST( include, [-Iinclude] )
+ AC_SUBST( objects, [px_mixer.o] )
+ 
+ #
+-# Check which APIs are available
+-#
+-
+-have_oss=no
+-AC_CHECK_HEADERS([sys/soundcard.h linux/soundcard.h machine/soundcard.h], have_oss=yes)
+-
+-AC_CHECK_HEADER(alsa/asoundlib.h,  have_alsa=yes, have_alsa=no)
+-AC_CHECK_HEADER(CoreAudio/CoreAudio.h, have_coreaudio=yes, have_coreaudio=no)
+-
+-#
+ # Set up to use the identified ones
+ #
+ AC_MSG_NOTICE(---------------------------------------);
diff -Nru audacity/audacity.SlackBuild /home/villard/softs/audacity/audacity.SlackBuild
--- audacity/audacity.SlackBuild	2010-11-23 21:00:26.000000000 +0100
+++ /home/villard/softs/audacity/audacity.SlackBuild	2011-01-02 20:33:19.000000000 +0100
@@ -90,6 +90,12 @@
 # Fix ffmpeg support for version 0.6
 patch -p1 -i $CWD/audacity-src-1.3.12-beta-avformat-api-change.patch
 
+# Fix configure in lib-src/portmixer/
+patch -p1 -i $CWD/audacity-src-1.3.12-beta-configure-portmixer.patch
+cd lib-src/portmixer
+autoreconf
+cd ../..
+
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \



More information about the SlackBuilds-users mailing list