changeset 110:6855fee890ff trunk

[svn] - autoconf support for wavpack plugin
author nenolod
date Tue, 24 Oct 2006 19:13:48 -0700
parents 38ce41606f10
children 5745352e0c88
files ChangeLog configure.ac mk/rules.mk.in
diffstat 3 files changed, 38 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Oct 24 19:03:53 2006 -0700
+++ b/ChangeLog	Tue Oct 24 19:13:48 2006 -0700
@@ -1,3 +1,15 @@
+2006-10-25 02:03:53 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [218]
+  - wavpack input plugin -- under construction
+  
+  trunk/src/wavpack/Makefile       |   16 +
+  trunk/src/wavpack/libwavpack.cxx |  411 ++++++++++++++++++++++++++++
+  trunk/src/wavpack/tags.cxx       |  537 ++++++++++++++++++++++++++++++++++++
+  trunk/src/wavpack/tags.h         |   63 ++++
+  trunk/src/wavpack/ui.cxx         |  568 +++++++++++++++++++++++++++++++++++++++
+  5 files changed, 1595 insertions(+)
+
+
 2006-10-25 01:15:53 +0000  William Pitcock <nenolod@nenolod.net>
   revision [216]
   - move prefswin_page_destroy(cfgdlg) to before the plugin logs out of last.fm;
--- a/configure.ac	Tue Oct 24 19:03:53 2006 -0700
+++ b/configure.ac	Tue Oct 24 19:13:48 2006 -0700
@@ -410,6 +410,29 @@
 	INPUT_PLUGINS="$INPUT_PLUGINS vorbis"
 fi
 
+dnl *** WavPack 4.31 support
+
+AC_ARG_ENABLE(wavpack,
+    [  --disable-wavpack       disable WavPack input plugin (default=enabled)],
+    [enable_wavpack=$enableval],
+    [enable_wavpack="yes"]
+)
+
+if test "$enable_wavpack" = "yes"; then
+    PKG_CHECK_MODULES(WAVPACK, [wavpack >= 4.31],
+        [have_wavpack=yes],
+        [AC_MSG_WARN([*** Cannot find WavPack 4.31+, WavPack support will not be built ***])
+         have_wavpack=no]
+    )
+else
+    AC_MSG_RESULT([*** WavPack plugin disabled per user request ***])
+    have_wavpack=no
+fi
+
+if test "$have_wavpack" = "yes"; then
+	INPUT_PLUGINS="$INPUT_PLUGINS wavpack"
+fi
+
 dnl *** AAC
 
 AC_ARG_ENABLE(aac,
@@ -1085,6 +1108,7 @@
 echo "  PlayStation audio (sexypsf):            yes"
 echo "  AdLib synthesizer (adplug):             $have_adplug"
 echo "  Apple Lossless Audio Codec (alac):      yes"
+echo "  WavPack 4.31+ (wavpack):                $have_wavpack"
 echo
 echo "  General"
 echo "  -------"
--- a/mk/rules.mk.in	Tue Oct 24 19:03:53 2006 -0700
+++ b/mk/rules.mk.in	Tue Oct 24 19:13:48 2006 -0700
@@ -331,3 +331,5 @@
 PICLDFLAGS ?= @PICLDFLAGS@
 LIBLDFLAGS ?= @LIBLDFLAGS@
 AUDLDFLAGS ?= @AUDLDFLAGS@
+WAVPACK_CFLAGS ?= @WAVPACK_CFLAGS@
+WAVPACK_LIBS ?= @WAVPACK_LIBS@