patch-configure_ac 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. $OpenBSD: patch-configure_ac,v 1.6 2016/09/13 08:48:11 dcoppa Exp $
  2. --- configure.ac.orig Tue Mar 15 21:20:56 2016
  3. +++ configure.ac Mon Sep 5 08:53:07 2016
  4. @@ -83,6 +83,7 @@ AC_ARG_ENABLE(alsa, [AS_HELP_STRING([--disable-als
  5. AC_ARG_ENABLE(oss, [AS_HELP_STRING([--disable-oss ], [disable Open Sound System output plugin (default: enabled)])], [enable_oss=$enableval], [enable_oss=yes])
  6. AC_ARG_ENABLE(pulse, [AS_HELP_STRING([--disable-pulse ], [disable PulseAudio output plugin (default: enabled)])], [enable_pulse=$enableval], [enable_pulse=yes])
  7. AC_ARG_ENABLE(coreaudio,[AS_HELP_STRING([--disable-coreaudio], [disable CoreAudio output plugin (default: enabled)])], [enable_coreaudio=$enableval], [enable_coreaudio=yes])
  8. +AC_ARG_ENABLE(sndio, [AS_HELP_STRING([--disable-sndio ], [disable sndio output plugin (default: enabled)])], [enable_sndio=$enableval], [enable_sndio=yes])
  9. AC_ARG_ENABLE(gtk3, [AS_HELP_STRING([--disable-gtk3 ], [disable GTK3 version of gtkui plugin (default: enabled)])], [enable_gtk3=$enableval], [enable_gtk3=yes])
  10. AC_ARG_ENABLE(gtk2, [AS_HELP_STRING([--disable-gtk2 ], [disable GTK2 version of gtkui plugin (default: enabled)])], [enable_gtk2=$enableval], [enable_gtk2=yes])
  11. AC_ARG_ENABLE(vfs_curl, [AS_HELP_STRING([--disable-vfs-curl], [disable HTTP streaming vfs plugin (default: enabled)])], [enable_vfs_curl=$enableval], [enable_vfs_curl=yes])
  12. @@ -188,8 +189,8 @@ AS_IF([test "${enable_portable}" != "no" -a "${enable_
  13. PREFIXFLAGS=" -DLIBDIR=\\\"$libdir\\\" -DPREFIX=\\\"$prefix\\\" -DDOCDIR=\\\"$docdir\\\""
  14. ])
  15. -CXXFLAGS="$CXXFLAGS $INSANE_CXXFLAGS -D_GNU_SOURCE $PREFIXFLAGS -DDDB_WARN_DEPRECATED=1"
  16. -CFLAGS="$CFLAGS $INSANE_CFLAGS -D_GNU_SOURCE $PREFIXFLAGS -DDDB_WARN_DEPRECATED=1"
  17. +CXXFLAGS="$CXXFLAGS $INSANE_CXXFLAGS -D_GNU_SOURCE $PREFIXFLAGS"
  18. +CFLAGS="$CFLAGS $INSANE_CFLAGS -D_GNU_SOURCE $PREFIXFLAGS"
  19. AS_IF([test "${enable_staticlink}" != "no"], [
  20. HAVE_ZLIB=yes
  21. @@ -287,6 +288,17 @@ AS_IF([test "${enable_coreaudio}" != "no" -a "${found_
  22. AC_SUBST(COREAUDIO_LIBS)
  23. +AC_CHECK_HEADER([sndio.h], [found_sndio_h=yes], [found_sndio_h=no])
  24. +AC_CHECK_LIB([sndio], [main], [found_sndio_lib=yes], [found_sndio_lib=no])
  25. +AS_IF([test "${enable_sndio}" != "no" -a "${found_sndio_h}" != "no" -a "${found_sndio_lib}" != "no"], [
  26. + AC_DEFINE(HAVE_SNDIO, 1, [Build sndio support])
  27. + HAVE_SNDIO=yes
  28. + SNDIO_LIBS="-lsndio"
  29. +])
  30. +
  31. +AC_SUBST(SNDIO_LIBS)
  32. +
  33. +
  34. AS_IF([test "${enable_ffmpeg}" != "no"], [
  35. AS_IF([test "${enable_staticlink}" != "no"], [
  36. FFMPEG_DEPS_CFLAGS="-I../../$LIB/include"
  37. @@ -394,11 +406,11 @@ AS_IF([test "${enable_vorbis}" != "no"], [
  38. AC_SUBST(VORBIS_LIBS)
  39. AC_SUBST(VORBIS_CFLAGS)
  40. ], [
  41. - AC_CHECK_LIB([vorbis], [main], [HAVE_VORBIS=yes])
  42. - AC_CHECK_LIB([vorbisfile], [main], [HAVE_VORBISFILE=yes])
  43. + AC_CHECK_LIB([vorbis], [main], [HAVE_VORBIS=yes], [], [-logg -lm])
  44. + AC_CHECK_LIB([vorbisfile], [main], [HAVE_VORBISFILE=yes], [], [-lvorbis -logg -lm])
  45. AS_IF([test "$HAVE_VORBIS" = "yes" -a "${HAVE_VORBISFILE}" = "yes"], [
  46. HAVE_VORBISPLUGIN=yes
  47. - VORBIS_LIBS="-lvorbis -lvorbisfile"
  48. + VORBIS_LIBS="-lvorbis -lvorbisfile -logg -lm"
  49. AC_SUBST(VORBIS_LIBS)
  50. ])
  51. ])
  52. @@ -430,10 +442,10 @@ AS_IF([test "${enable_flac}" != "no"], [
  53. AC_SUBST(FLAC_CFLAGS)
  54. AC_SUBST(FLAC_LIBS)
  55. ], [
  56. - AC_CHECK_LIB([FLAC], [main], [HAVE_FLAC=yes])
  57. + AC_CHECK_LIB([FLAC], [main], [HAVE_FLAC=yes], [], [-logg -lm])
  58. AS_IF([test "${HAVE_FLAC}" = "yes"], [
  59. HAVE_FLACPLUGIN=yes
  60. - FLAC_LIBS="-lFLAC"
  61. + FLAC_LIBS="-lFLAC -logg -lm"
  62. AC_SUBST(FLAC_LIBS)
  63. ])
  64. ])
  65. @@ -739,7 +751,7 @@ AS_IF([test "${enable_aac}" != "no"], [
  66. ])
  67. AS_IF([test "${enable_mms}" != "no"], [
  68. - LIBMMS_LIBS=""
  69. + LIBMMS_LIBS="-lmms"
  70. AC_SUBST(LIBMMS_LIBS)
  71. HAVE_MMS=yes
  72. ])
  73. @@ -796,7 +808,7 @@ AS_IF([test "${enable_sc68}" != "no"], [
  74. HAVE_SC68=yes
  75. ])
  76. -PLUGINS_DIRS="plugins/liboggedit plugins/libmp4ff plugins/libparser plugins/lastfm plugins/mp3 plugins/vorbis plugins/flac plugins/wavpack plugins/sndfile plugins/vfs_curl plugins/cdda plugins/gtkui plugins/alsa plugins/ffmpeg plugins/hotkeys plugins/oss plugins/artwork plugins/adplug plugins/ffap plugins/sid plugins/nullout plugins/supereq plugins/vtx plugins/gme plugins/pulse plugins/notify plugins/musepack plugins/wildmidi plugins/tta plugins/dca plugins/aac plugins/mms plugins/shellexec plugins/shellexecui plugins/dsp_libsrc plugins/m3u plugins/vfs_zip plugins/converter plugins/dumb plugins/shn plugins/ao plugins/mono2stereo plugins/alac plugins/wma plugins/pltbrowser plugins/coreaudio plugins/sc68"
  77. +PLUGINS_DIRS="plugins/liboggedit plugins/libparser plugins/lastfm plugins/mp3 plugins/vorbis plugins/flac plugins/wavpack plugins/sndfile plugins/vfs_curl plugins/cdda plugins/gtkui plugins/alsa plugins/ffmpeg plugins/hotkeys plugins/oss plugins/artwork plugins/adplug plugins/ffap plugins/sid plugins/nullout plugins/supereq plugins/vtx plugins/gme plugins/pulse plugins/notify plugins/musepack plugins/wildmidi plugins/tta plugins/dca plugins/aac plugins/mms plugins/shellexec plugins/shellexecui plugins/dsp_libsrc plugins/m3u plugins/vfs_zip plugins/converter plugins/dumb plugins/shn plugins/ao plugins/mono2stereo plugins/alac plugins/wma plugins/pltbrowser plugins/coreaudio plugins/sc68 plugins/sndio"
  78. AM_CONDITIONAL(APE_USE_YASM, test "x$APE_USE_YASM" = "xyes")
  79. AM_CONDITIONAL(HAVE_VORBIS, test "x$HAVE_VORBISPLUGIN" = "xyes")
  80. @@ -811,6 +823,7 @@ AM_CONDITIONAL(HAVE_GTK2, test "x$HAVE_GTK2" = "xyes")
  81. AM_CONDITIONAL(HAVE_GTK3, test "x$HAVE_GTK3" = "xyes")
  82. AM_CONDITIONAL(HAVE_ALSA, test "x$HAVE_ALSAPLUGIN" = "xyes")
  83. AM_CONDITIONAL(HAVE_COREAUDIO, test "x$HAVE_COREAUDIO" = "xyes")
  84. +AM_CONDITIONAL(HAVE_SNDIO, test "x$HAVE_SNDIO" = "xyes")
  85. AM_CONDITIONAL(HAVE_FFMPEG, test "x$HAVE_FFMPEGPLUGIN" = "xyes")
  86. AM_CONDITIONAL(HAVE_PULSE, test "x$HAVE_PULSEPLUGIN" = "xyes")
  87. AM_CONDITIONAL(HAVE_ARTWORK, test "x$HAVE_ARTWORK" = "xyes")
  88. @@ -870,7 +883,6 @@ Makefile
  89. pixmaps/Makefile
  90. icons/Makefile
  91. plugins/liboggedit/Makefile
  92. -plugins/libmp4ff/Makefile
  93. plugins/libparser/Makefile
  94. plugins/gme/Makefile
  95. plugins/alsa/Makefile
  96. @@ -916,6 +928,7 @@ plugins/wma/Makefile
  97. plugins/pltbrowser/Makefile
  98. plugins/sc68/Makefile
  99. plugins/coreaudio/Makefile
  100. +plugins/sndio/Makefile
  101. intl/Makefile
  102. po/Makefile.in
  103. deadbeef.desktop
  104. @@ -952,6 +965,7 @@ PRINT_PLUGIN_INFO([alsa],[ALSA output],[test "x$HAVE_A
  105. PRINT_PLUGIN_INFO([oss],[oss output plugin],[test "x$HAVE_OSS" = "xyes"])
  106. PRINT_PLUGIN_INFO([pulse],[PulseAudio output plugin],[test "x$HAVE_PULSEPLUGIN" = "xyes"])
  107. PRINT_PLUGIN_INFO([coreaudio],[CoreAudio output plugin],[test "x$HAVE_COREAUDIO" = "xyes"])
  108. +PRINT_PLUGIN_INFO([sndio],[sndio output plugin],[test "x$HAVE_SNDIO" = "xyes"])
  109. PRINT_PLUGIN_INFO([sid],[SID player based on libsidplay2],[test "x$HAVE_SID" = "xyes"])
  110. PRINT_PLUGIN_INFO([ffap],[Monkey's audio (APE) decoder],[test "x$HAVE_FFAP" = "xyes"])
  111. PRINT_PLUGIN_INFO([lastfm],[last.fm scrobbler],[test "x$HAVE_LASTFM" = "xyes"])