From c443ec9ae05de0aa1808375e1892dc93f91acab8 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Sun, 2 Aug 2009 20:42:02 +0200 Subject: [PATCH] Add albumview plugin --- Makefile.am | 7 ++++--- autogen.sh | 1 + configure.ac | 27 +++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 22c5137..6fa8d41 100644 --- a/Makefile.am +++ b/Makefile.am @@ -79,8 +79,8 @@ endif #DYNAMICPLAYLIST_OPT_DIR= gmpc-dynamicplaylist #endif -if LYRICSPLUGIN_OPT -LYRICSPLUGIN_OPT_DIR= gmpc-lyricsplugin +if ALBUMVIEW_OPT +ALBUMVIEW_OPT_DIR= gmpc-albumview endif SUBDIRS =\ @@ -102,4 +102,5 @@ SUBDIRS =\ $(WIKIPEDIA_OPT_DIR)\ $(PLAYLISTSORT_OPT_DIR)\ $(DYNAMICPLAYLIST_OPT_DIR)\ - $(LYRICSPLUGIN_OPT_DIR) + $(LYRICSPLUGIN_OPT_DIR)\ + $(ALBUMVIEW_OPT_DIR) diff --git a/autogen.sh b/autogen.sh index 6afe1ec..67a8107 100755 --- a/autogen.sh +++ b/autogen.sh @@ -67,6 +67,7 @@ get_plugin gmpc-libnotify get_plugin gmpc-wikipedia get_plugin gmpc-playlistsort get_plugin gmpc-lyricsplugin +get_plugin gmpc-albumview # get_hg_cmake gmpc-dynamicplaylist http://bitbucket.org/misery/dynamic-playlist/ diff --git a/configure.ac b/configure.ac index c035884..9930b6f 100644 --- a/configure.ac +++ b/configure.ac @@ -360,6 +360,26 @@ if test x${enable_lyricsplugin} = xyes; then AC_CONFIG_SUBDIRS([gmpc-lyricsplugin]) fi +## +# albumview +## +AC_ARG_ENABLE(albumview, + [ --enable-albumview], + [ case "${enableval}" in + yes) enable_albumview=yes;; + no) enable_albumview=no;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-albumview]);; + esac], + [enable_albumview=yes]) + + +AM_CONDITIONAL([ALBUMVIEW_OPT], [test "$enable_albumview" = yes]) +if test x${enable_albumview} = xyes; then + AC_CONFIG_SUBDIRS([gmpc-albumview]) +fi + + + AC_CONFIG_FILES([Makefile]) AC_OUTPUT @@ -472,3 +492,10 @@ if test x${enable_lyricsplugin} = xyes; then else echo "Lyricsplugin disabled" fi + + +if test x${enable_albumview} = xyes; then + echo "Albumview enabled" +else + echo "Albumview disabled" +fi -- 2.11.4.GIT