diff options
author | Tim Harder <radhermit@gentoo.org> | 2016-08-08 00:14:41 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2016-08-08 00:15:10 -0400 |
commit | 2bc13a02731fbeb9eb2b19fa353dae13dd6604ef (patch) | |
tree | 716dff3c06241111f92f9f77821cfc229cde6307 /media-libs/rtaudio/files | |
parent | sci-visualization/paraview: Fix dependency on dev-qt:qtx11extras:5 (diff) | |
download | gentoo-2bc13a02731fbeb9eb2b19fa353dae13dd6604ef.tar.gz gentoo-2bc13a02731fbeb9eb2b19fa353dae13dd6604ef.tar.bz2 gentoo-2bc13a02731fbeb9eb2b19fa353dae13dd6604ef.zip |
media-libs/rtaudio: version bump to 4.1.2
Diffstat (limited to 'media-libs/rtaudio/files')
-rw-r--r-- | media-libs/rtaudio/files/rtaudio-4.1.2-cflags.patch | 12 | ||||
-rw-r--r-- | media-libs/rtaudio/files/rtaudio-4.1.2-configure.patch | 68 |
2 files changed, 80 insertions, 0 deletions
diff --git a/media-libs/rtaudio/files/rtaudio-4.1.2-cflags.patch b/media-libs/rtaudio/files/rtaudio-4.1.2-cflags.patch new file mode 100644 index 000000000000..49978458c682 --- /dev/null +++ b/media-libs/rtaudio/files/rtaudio-4.1.2-cflags.patch @@ -0,0 +1,12 @@ +--- rtaudio-4.1.2/configure.ac ++++ rtaudio-4.1.2/configure.ac +@@ -62,8 +62,7 @@ + AC_MSG_CHECKING(whether to compile debug version) + AC_ARG_ENABLE(debug, + [AS_HELP_STRING([--enable-debug],[enable various debug output])], +- [: ${CXXFLAGS="-g -O0"};] [AC_DEFINE([__RTAUDIO_DEBUG__])], +- [: ${CXXFLAGS="-O3"}]) ++ [AC_DEFINE([__RTAUDIO_DEBUG__])], ) + + # Checks for programs. + AC_PROG_CXX(g++ CC c++ cxx) diff --git a/media-libs/rtaudio/files/rtaudio-4.1.2-configure.patch b/media-libs/rtaudio/files/rtaudio-4.1.2-configure.patch new file mode 100644 index 000000000000..fa33fb21fee2 --- /dev/null +++ b/media-libs/rtaudio/files/rtaudio-4.1.2-configure.patch @@ -0,0 +1,68 @@ +--- rtaudio-4.1.2/configure.ac ++++ rtaudio-4.1.2/configure.ac +@@ -69,9 +69,9 @@ + AC_PROG_CXX(g++ CC c++ cxx) + AM_PROG_AR + AC_PATH_PROG(AR, ar, no) +-if [[ $AR = "no" ]] ; then +- AC_MSG_ERROR("Could not find ar - needed to create a library"); +-fi ++AS_IF([test "x$AR" == "x" ], [ ++ AC_MSG_ERROR("Could not find ar - needed to create a library") ++]) + + # Initialize libtool + LT_INIT([win32-dll]) +@@ -131,38 +130,41 @@ + ;; + + *-*-linux*) +- AC_ARG_WITH(jack, [ --with-jack = choose JACK server support (mac and linux only)], [ ++ AC_ARG_WITH([jack], AS_HELP_STRING([--with-jack], [choose JACK server support (mac and linux only)])) ++ AS_IF([test "x$with_jack" != "xno"], [ + api="$api -D__UNIX_JACK__" + AC_MSG_RESULT(using JACK) + AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!)) +- AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(Jack support also requires the asound library!))], ) ++ AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(Jack support also requires the asound library!))]) + + # Look for ALSA flag +- AC_ARG_WITH(alsa, [ --with-alsa = choose native ALSA API support (linux only)], [ ++ AC_ARG_WITH([alsa], AS_HELP_STRING([--with-alsa], [choose native ALSA API support (linux only)])) ++ AS_IF([test "x$with_alsa" != "xno"], [ + api="$api -D__LINUX_ALSA__" + req="$req alsa" + AC_MSG_RESULT(using ALSA) +- AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!))], ) ++ AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!))]) + + # Look for PULSE flag +- AC_ARG_WITH(pulse, [ --with-pulse = choose PulseAudio API support (linux only)], [ ++ AC_ARG_WITH([pulse], AS_HELP_STRING([--with-pulse], [choose PulseAudio API support (linux only)])) ++ AS_IF([test "x$with_pulse" != "xno"], [ + api="$api -D__LINUX_PULSE__" + req="$req libpulse-simple" + AC_MSG_RESULT(using PulseAudio) +- AC_CHECK_LIB(pulse-simple, pa_simple_flush, , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!))], ) ++ AC_CHECK_LIB(pulse-simple, pa_simple_flush, , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!))]) + + # Look for OSS flag +- AC_ARG_WITH(oss, [ --with-oss = choose OSS API support (linux only)], [ ++ AC_ARG_WITH([oss], AS_HELP_STRING([--with-oss], [choose OSS API support (linux only)])) ++ AS_IF([test "x$with_oss" != "xno"], [ + api="$api -D__LINUX_OSS__" +- AC_MSG_RESULT(using OSS)], ) ++ AC_MSG_RESULT(using OSS)]) + + # If no audio api flags specified, use ALSA +- if [test "$api" == "";] then ++ AS_IF([test "x$api" == "x"], [ + AC_MSG_RESULT(using ALSA) + AC_SUBST( api, [-D__LINUX_ALSA__] ) + req="$req alsa" +- AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!)) +- fi ++ AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!))]) + + AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!)) + ;; |