http://blog.blackdown.de/2007/05/19/lastfm-for-rhythmbox-new-style

v3i: * Update for real 0.11.6 (v3h was for a later version from SVN)
v3h: * Update for rhythmbox 0.11.6
v3g: * Update for rhythmbox 0.11.5
v3f: * Update for rhythmbox 0.11.4
v3e: * Update for rhythmbox 0.11.3
v3d: * Update for rhythmbox 0.11.2
v3c: * Update for rhythmbox 0.11.1
v3b: * Update for rhythmbox 0.11.0
v3a: * Update for Ubuntu rhythmbox 0.10.90
v3:  * Start client in system tray
     * Try last.fm (beta client) before lastm
     * Reduce bogus RESUME/PAUSE commands
     * Misc small bug fixes
v2:  * Autostart lastfm
     * Bugfixes
     * Ignore tracks shorter than 30s
v1:  * Basic functionality, no autostart of lastfm yet

Signed-off-by: Juergen Kreileder <jk@blackdown.de>

diff -urNp rhythmbox-0.11.6.orig/configure rhythmbox-0.11.6/configure
--- rhythmbox-0.11.6.orig/configure	2008-07-08 11:08:56.000000000 +0200
+++ rhythmbox-0.11.6/configure	2008-10-20 23:15:44.000000000 +0200
@@ -21731,7 +21731,7 @@ fi
 
 
 
-ac_config_files="$ac_config_files Makefile macros/Makefile lib/Makefile metadata/Makefile rhythmdb/Makefile widgets/Makefile widgets/libsexy/Makefile podcast/Makefile shell/Makefile data/Makefile data/rhythmbox.desktop.in data/ui/Makefile data/glade/Makefile data/icons/Makefile data/icons/hicolor/Makefile data/icons/hicolor/16x16/Makefile data/icons/hicolor/16x16/actions/Makefile data/icons/hicolor/16x16/apps/Makefile data/icons/hicolor/16x16/places/Makefile data/icons/hicolor/16x16/status/Makefile data/icons/hicolor/22x22/Makefile data/icons/hicolor/22x22/actions/Makefile data/icons/hicolor/22x22/apps/Makefile data/icons/hicolor/22x22/places/Makefile data/icons/hicolor/22x22/status/Makefile data/icons/hicolor/32x32/Makefile data/icons/hicolor/32x32/actions/Makefile data/icons/hicolor/32x32/apps/Makefile data/icons/hicolor/32x32/places/Makefile data/icons/hicolor/32x32/status/Makefile data/icons/hicolor/48x48/Makefile data/icons/hicolor/48x48/apps/Makefile data/icons/hicolor/scalable/Makefile data/icons/hicolor/scalable/actions/Makefile data/icons/hicolor/scalable/apps/Makefile data/icons/hicolor/scalable/places/Makefile data/icons/hicolor/scalable/status/Makefile sources/Makefile corelib/Makefile plugins/Makefile plugins/sample/Makefile plugins/audiocd/Makefile plugins/coherence/Makefile plugins/coherence/upnp_coherence/Makefile plugins/audioscrobbler/Makefile plugins/cd-recorder/Makefile plugins/daap/Makefile plugins/fmradio/Makefile plugins/ipod/Makefile plugins/mtpdevice/Makefile plugins/iradio/Makefile plugins/lirc/Makefile plugins/lyrics/Makefile plugins/lyrics/lyrics/Makefile plugins/sample-python/Makefile plugins/sample-vala/Makefile plugins/pythonconsole/Makefile plugins/artdisplay/Makefile plugins/artdisplay/artdisplay/Makefile plugins/dontreallyclose/Makefile plugins/magnatune/Makefile plugins/magnatune/magnatune/Makefile plugins/jamendo/Makefile plugins/jamendo/jamendo/Makefile plugins/generic-player/Makefile plugins/rb/Makefile plugins/power-manager/Makefile plugins/visualizer/Makefile plugins/mmkeys/Makefile bindings/Makefile bindings/python/Makefile bindings/vala/Makefile help/Makefile po/Makefile.in tests/Makefile doc/Makefile doc/reference/Makefile backends/Makefile backends/gstreamer/Makefile remote/Makefile remote/dbus/Makefile"
+ac_config_files="$ac_config_files Makefile macros/Makefile lib/Makefile metadata/Makefile rhythmdb/Makefile widgets/Makefile widgets/libsexy/Makefile podcast/Makefile shell/Makefile data/Makefile data/rhythmbox.desktop.in data/ui/Makefile data/glade/Makefile data/icons/Makefile data/icons/hicolor/Makefile data/icons/hicolor/16x16/Makefile data/icons/hicolor/16x16/actions/Makefile data/icons/hicolor/16x16/apps/Makefile data/icons/hicolor/16x16/places/Makefile data/icons/hicolor/16x16/status/Makefile data/icons/hicolor/22x22/Makefile data/icons/hicolor/22x22/actions/Makefile data/icons/hicolor/22x22/apps/Makefile data/icons/hicolor/22x22/places/Makefile data/icons/hicolor/22x22/status/Makefile data/icons/hicolor/32x32/Makefile data/icons/hicolor/32x32/actions/Makefile data/icons/hicolor/32x32/apps/Makefile data/icons/hicolor/32x32/places/Makefile data/icons/hicolor/32x32/status/Makefile data/icons/hicolor/48x48/Makefile data/icons/hicolor/48x48/apps/Makefile data/icons/hicolor/scalable/Makefile data/icons/hicolor/scalable/actions/Makefile data/icons/hicolor/scalable/apps/Makefile data/icons/hicolor/scalable/places/Makefile data/icons/hicolor/scalable/status/Makefile sources/Makefile corelib/Makefile plugins/Makefile plugins/sample/Makefile plugins/audiocd/Makefile plugins/coherence/Makefile plugins/coherence/upnp_coherence/Makefile plugins/audioscrobbler/Makefile plugins/scrobbler/Makefile plugins/cd-recorder/Makefile plugins/daap/Makefile plugins/fmradio/Makefile plugins/ipod/Makefile plugins/mtpdevice/Makefile plugins/iradio/Makefile plugins/lirc/Makefile plugins/lyrics/Makefile plugins/lyrics/lyrics/Makefile plugins/sample-python/Makefile plugins/sample-vala/Makefile plugins/pythonconsole/Makefile plugins/artdisplay/Makefile plugins/artdisplay/artdisplay/Makefile plugins/dontreallyclose/Makefile plugins/magnatune/Makefile plugins/magnatune/magnatune/Makefile plugins/jamendo/Makefile plugins/jamendo/jamendo/Makefile plugins/generic-player/Makefile plugins/rb/Makefile plugins/power-manager/Makefile plugins/visualizer/Makefile plugins/mmkeys/Makefile bindings/Makefile bindings/python/Makefile bindings/vala/Makefile help/Makefile po/Makefile.in tests/Makefile doc/Makefile doc/reference/Makefile backends/Makefile backends/gstreamer/Makefile remote/Makefile remote/dbus/Makefile"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -22608,6 +22608,7 @@ do
     "plugins/coherence/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/coherence/Makefile" ;;
     "plugins/coherence/upnp_coherence/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/coherence/upnp_coherence/Makefile" ;;
     "plugins/audioscrobbler/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/audioscrobbler/Makefile" ;;
+    "plugins/scrobbler/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/scrobbler/Makefile" ;;
     "plugins/cd-recorder/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cd-recorder/Makefile" ;;
     "plugins/daap/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/daap/Makefile" ;;
     "plugins/fmradio/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fmradio/Makefile" ;;
diff -urNp rhythmbox-0.11.6.orig/configure.ac rhythmbox-0.11.6/configure.ac
--- rhythmbox-0.11.6.orig/configure.ac	2008-07-08 11:08:38.000000000 +0200
+++ rhythmbox-0.11.6/configure.ac	2008-10-20 23:12:42.000000000 +0200
@@ -1053,6 +1053,7 @@ plugins/audiocd/Makefile
 plugins/coherence/Makefile
 plugins/coherence/upnp_coherence/Makefile
 plugins/audioscrobbler/Makefile
+plugins/scrobbler/Makefile
 plugins/cd-recorder/Makefile
 plugins/daap/Makefile
 plugins/fmradio/Makefile
diff -urNp rhythmbox-0.11.6.orig/plugins/Makefile.am rhythmbox-0.11.6/plugins/Makefile.am
--- rhythmbox-0.11.6.orig/plugins/Makefile.am	2008-07-02 12:47:14.000000000 +0200
+++ rhythmbox-0.11.6/plugins/Makefile.am	2008-10-20 23:12:42.000000000 +0200
@@ -9,7 +9,9 @@ SUBDIRS = 						\
 	visualizer
 
 if WITH_AUDIOSCROBBLER
-SUBDIRS += audioscrobbler
+SUBDIRS +=						\
+	audioscrobbler					\
+	scrobbler
 endif
 
 if WITH_LIRC
diff -urNp rhythmbox-0.11.6.orig/plugins/Makefile.in rhythmbox-0.11.6/plugins/Makefile.in
--- rhythmbox-0.11.6.orig/plugins/Makefile.in	2008-07-08 11:09:03.000000000 +0200
+++ rhythmbox-0.11.6/plugins/Makefile.in	2008-10-20 23:16:25.000000000 +0200
@@ -32,7 +32,7 @@ PRE_UNINSTALL = :
 POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
-@WITH_AUDIOSCROBBLER_TRUE@am__append_1 = audioscrobbler
+@WITH_AUDIOSCROBBLER_TRUE@am__append_1 = audioscrobbler scrobbler
 @WITH_LIRC_TRUE@am__append_2 = lirc
 @ENABLE_PYTHON_TRUE@am__append_3 = \
 @ENABLE_PYTHON_TRUE@	pythonconsole					\
@@ -118,7 +118,7 @@ RECURSIVE_CLEAN_TARGETS = mostlyclean-re
 ETAGS = etags
 CTAGS = ctags
 DIST_SUBDIRS = generic-player iradio mmkeys power-manager sample \
-	visualizer audioscrobbler lirc pythonconsole sample-python \
+	visualizer audioscrobbler scrobbler lirc pythonconsole sample-python \
 	artdisplay lyrics magnatune jamendo coherence dontreallyclose \
 	rb sample-vala ipod audiocd cd-recorder daap mtpdevice fmradio
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
diff -urNp rhythmbox-0.11.6.orig/plugins/scrobbler/Makefile.am rhythmbox-0.11.6/plugins/scrobbler/Makefile.am
--- rhythmbox-0.11.6.orig/plugins/scrobbler/Makefile.am	1970-01-01 01:00:00.000000000 +0100
+++ rhythmbox-0.11.6/plugins/scrobbler/Makefile.am	2008-10-20 23:12:42.000000000 +0200
@@ -0,0 +1,39 @@
+plugindir = $(PLUGINDIR)/scrobbler
+noinst_LTLIBRARIES = libscrobbler.la
+
+libscrobbler_la_SOURCES = \
+	rb-scrobbler-plugin.c
+
+libscrobbler_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
+
+INCLUDES = 						\
+        -DGNOMELOCALEDIR=\""$(datadir)/locale"\"        \
+	-DG_LOG_DOMAIN=\"Rhythmbox\"		 	\
+	-I$(top_srcdir) 				\
+	-I$(top_srcdir)/lib                        	\
+	-I$(top_srcdir)/metadata                       	\
+	-I$(top_srcdir)/player                       	\
+	-I$(top_srcdir)/rhythmdb                       	\
+	-I$(top_srcdir)/widgets                    	\
+	-I$(top_srcdir)/sources                    	\
+	-I$(top_srcdir)/iradio                    	\
+	-I$(top_srcdir)/podcast                    	\
+	-I$(top_srcdir)/plugins				\
+	-I$(top_srcdir)/shell				\
+	-DPIXMAP_DIR=\""$(datadir)/pixmaps"\"		\
+	-DSHARE_DIR=\"$(pkgdatadir)\"                   \
+	-DDATADIR=\""$(datadir)"\"			\
+	$(RHYTHMBOX_CFLAGS)				\
+	$(WARN_CFLAGS)					\
+	-D_XOPEN_SOURCE -D_BSD_SOURCE
+
+plugin_in_files = scrobbler.rb-plugin.desktop.in
+
+%.rb-plugin: %.rb-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
+
+plugin_DATA = $(plugin_in_files:.rb-plugin.desktop.in=.rb-plugin)
+
+EXTRA_DIST = $(plugin_in_files)
+
+CLEANFILES = $(plugin_DATA)
+DISTCLEANFILES = $(plugin_DATA)
diff -urNp rhythmbox-0.11.6.orig/plugins/scrobbler/Makefile.in rhythmbox-0.11.6/plugins/scrobbler/Makefile.in
--- rhythmbox-0.11.6.orig/plugins/scrobbler/Makefile.in	1970-01-01 01:00:00.000000000 +0100
+++ rhythmbox-0.11.6/plugins/scrobbler/Makefile.in	2008-10-20 23:12:42.000000000 +0200
@@ -0,0 +1,673 @@
+# Makefile.in generated by automake 1.7.9 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ../..
+
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_triplet = @host@
+ACLOCAL = @ACLOCAL@
+ALL_LINGUAS = @ALL_LINGUAS@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AVAHI_CFLAGS = @AVAHI_CFLAGS@
+AVAHI_LIBS = @AVAHI_LIBS@
+AWK = @AWK@
+CATALOGS = @CATALOGS@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHECK_CFLAGS = @CHECK_CFLAGS@
+CHECK_LIBS = @CHECK_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DATADIRNAME = @DATADIRNAME@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_GLIB_BIN = @DBUS_GLIB_BIN@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DOC_USER_FORMATS = @DOC_USER_FORMATS@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+ENABLE_GTK_DOC_FALSE = @ENABLE_GTK_DOC_FALSE@
+ENABLE_GTK_DOC_TRUE = @ENABLE_GTK_DOC_TRUE@
+ENABLE_PYTHON_FALSE = @ENABLE_PYTHON_FALSE@
+ENABLE_PYTHON_TRUE = @ENABLE_PYTHON_TRUE@
+ENABLE_SK_FALSE = @ENABLE_SK_FALSE@
+ENABLE_SK_TRUE = @ENABLE_SK_TRUE@
+ENABLE_TRACK_TRANSFER_FALSE = @ENABLE_TRACK_TRANSFER_FALSE@
+ENABLE_TRACK_TRANSFER_TRUE = @ENABLE_TRACK_TRANSFER_TRUE@
+EXEEXT = @EXEEXT@
+GCONFTOOL = @GCONFTOOL@
+GCONF_SCHEMAS_INSTALL_FALSE = @GCONF_SCHEMAS_INSTALL_FALSE@
+GCONF_SCHEMAS_INSTALL_TRUE = @GCONF_SCHEMAS_INSTALL_TRUE@
+GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
+GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
+GDA_CFLAGS = @GDA_CFLAGS@
+GDA_LIBS = @GDA_LIBS@
+GDK_PIXBUF_CSOURCE = @GDK_PIXBUF_CSOURCE@
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+GNOME_KEYRING_CFLAGS = @GNOME_KEYRING_CFLAGS@
+GNOME_KEYRING_LIBS = @GNOME_KEYRING_LIBS@
+GNOME_MEDIA_PROFILES_CFLAGS = @GNOME_MEDIA_PROFILES_CFLAGS@
+GNOME_MEDIA_PROFILES_LIBS = @GNOME_MEDIA_PROFILES_LIBS@
+GREP = @GREP@
+GSTREAMER_0_10_CFLAGS = @GSTREAMER_0_10_CFLAGS@
+GSTREAMER_0_10_LIBS = @GSTREAMER_0_10_LIBS@
+GSTREAMER_0_8_CFLAGS = @GSTREAMER_0_8_CFLAGS@
+GSTREAMER_0_8_LIBS = @GSTREAMER_0_8_LIBS@
+GTK_DOC_USE_LIBTOOL_FALSE = @GTK_DOC_USE_LIBTOOL_FALSE@
+GTK_DOC_USE_LIBTOOL_TRUE = @GTK_DOC_USE_LIBTOOL_TRUE@
+HAL_CFLAGS = @HAL_CFLAGS@
+HAL_LIBS = @HAL_LIBS@
+HAVE_CHECK_FALSE = @HAVE_CHECK_FALSE@
+HAVE_CHECK_TRUE = @HAVE_CHECK_TRUE@
+HAVE_GNOME_DOC_UTILS_FALSE = @HAVE_GNOME_DOC_UTILS_FALSE@
+HAVE_GNOME_DOC_UTILS_TRUE = @HAVE_GNOME_DOC_UTILS_TRUE@
+HAVE_HAL_0_2_FALSE = @HAVE_HAL_0_2_FALSE@
+HAVE_HAL_0_2_TRUE = @HAVE_HAL_0_2_TRUE@
+HAVE_HAL_0_5_FALSE = @HAVE_HAL_0_5_FALSE@
+HAVE_HAL_0_5_TRUE = @HAVE_HAL_0_5_TRUE@
+HAVE_HAL_FALSE = @HAVE_HAL_FALSE@
+HAVE_HAL_TRUE = @HAVE_HAL_TRUE@
+HAVE_MUSICBRAINZ_FALSE = @HAVE_MUSICBRAINZ_FALSE@
+HAVE_MUSICBRAINZ_TRUE = @HAVE_MUSICBRAINZ_TRUE@
+HELP_DIR = @HELP_DIR@
+HOWL_CFLAGS = @HOWL_CFLAGS@
+HOWL_LIBS = @HOWL_LIBS@
+HTML_DIR = @HTML_DIR@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLLIBS = @INTLLIBS@
+INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
+INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
+INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
+INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
+INTLTOOL_ICONV = @INTLTOOL_ICONV@
+INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
+INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
+INTLTOOL_MERGE = @INTLTOOL_MERGE@
+INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@
+INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@
+INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
+INTLTOOL_PERL = @INTLTOOL_PERL@
+INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
+INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
+INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
+INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
+INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
+INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
+INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
+INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
+INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
+INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
+INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
+INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@
+INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
+INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
+IPOD_CFLAGS = @IPOD_CFLAGS@
+IPOD_LIBS = @IPOD_LIBS@
+LDFLAGS = @LDFLAGS@
+LIBNAUTILUS_BURN_CFLAGS = @LIBNAUTILUS_BURN_CFLAGS@
+LIBNAUTILUS_BURN_LIBS = @LIBNAUTILUS_BURN_LIBS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBSEXY_CFLAGS = @LIBSEXY_CFLAGS@
+LIBSEXY_LIBS = @LIBSEXY_LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
+MAKEINFO = @MAKEINFO@
+MDNS_CFLAGS = @MDNS_CFLAGS@
+MDNS_LIBS = @MDNS_LIBS@
+MKDTEMP_MISSING_FALSE = @MKDTEMP_MISSING_FALSE@
+MKDTEMP_MISSING_TRUE = @MKDTEMP_MISSING_TRUE@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGFMT_OPTS = @MSGFMT_OPTS@
+MUSICBRAINZ_CFLAGS = @MUSICBRAINZ_CFLAGS@
+MUSICBRAINZ_LIBS = @MUSICBRAINZ_LIBS@
+NOTIFY_CFLAGS = @NOTIFY_CFLAGS@
+NOTIFY_LIBS = @NOTIFY_LIBS@
+NO_STRICT_ALIASING_CFLAGS = @NO_STRICT_ALIASING_CFLAGS@
+OBJEXT = @OBJEXT@
+OMF_DIR = @OMF_DIR@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PLUGINDIR = @PLUGINDIR@
+PLUGIN_LIBTOOL_FLAGS = @PLUGIN_LIBTOOL_FLAGS@
+POFILES = @POFILES@
+POSUB = @POSUB@
+PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
+PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
+PYGTK_CFLAGS = @PYGTK_CFLAGS@
+PYGTK_CODEGEN = @PYGTK_CODEGEN@
+PYGTK_DEFSDIR = @PYGTK_DEFSDIR@
+PYGTK_H2DEF = @PYGTK_H2DEF@
+PYGTK_LIBS = @PYGTK_LIBS@
+PYTHON = @PYTHON@
+PYTHON_CFLAGS = @PYTHON_CFLAGS@
+PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
+PYTHON_EXTRA_LIBS = @PYTHON_EXTRA_LIBS@
+PYTHON_LIBS = @PYTHON_LIBS@
+PYTHON_LIB_LOC = @PYTHON_LIB_LOC@
+PYTHON_PLATFORM = @PYTHON_PLATFORM@
+PYTHON_PREFIX = @PYTHON_PREFIX@
+PYTHON_VERSION = @PYTHON_VERSION@
+RANLIB = @RANLIB@
+RB_CLIENT_CFLAGS = @RB_CLIENT_CFLAGS@
+RB_CLIENT_LIBS = @RB_CLIENT_LIBS@
+RHYTHMBOX_CFLAGS = @RHYTHMBOX_CFLAGS@
+RHYTHMBOX_LIBS = @RHYTHMBOX_LIBS@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SOUNDSYSTEM_DEPS = @SOUNDSYSTEM_DEPS@
+SOUP_CFLAGS = @SOUP_CFLAGS@
+SOUP_LIBS = @SOUP_LIBS@
+STRIP = @STRIP@
+TOTEM_PLPARSER_CFLAGS = @TOTEM_PLPARSER_CFLAGS@
+TOTEM_PLPARSER_LIBS = @TOTEM_PLPARSER_LIBS@
+USE_AVAHI_FALSE = @USE_AVAHI_FALSE@
+USE_AVAHI_TRUE = @USE_AVAHI_TRUE@
+USE_CD_BURNING_FALSE = @USE_CD_BURNING_FALSE@
+USE_CD_BURNING_TRUE = @USE_CD_BURNING_TRUE@
+USE_DAAP_FALSE = @USE_DAAP_FALSE@
+USE_DAAP_TRUE = @USE_DAAP_TRUE@
+USE_GDADB_FALSE = @USE_GDADB_FALSE@
+USE_GDADB_TRUE = @USE_GDADB_TRUE@
+USE_GNOME_KEYRING_FALSE = @USE_GNOME_KEYRING_FALSE@
+USE_GNOME_KEYRING_TRUE = @USE_GNOME_KEYRING_TRUE@
+USE_GSTREAMER_0_10_FALSE = @USE_GSTREAMER_0_10_FALSE@
+USE_GSTREAMER_0_10_TRUE = @USE_GSTREAMER_0_10_TRUE@
+USE_GSTREAMER_0_8_FALSE = @USE_GSTREAMER_0_8_FALSE@
+USE_GSTREAMER_0_8_TRUE = @USE_GSTREAMER_0_8_TRUE@
+USE_HOWL_FALSE = @USE_HOWL_FALSE@
+USE_HOWL_TRUE = @USE_HOWL_TRUE@
+USE_IPOD_FALSE = @USE_IPOD_FALSE@
+USE_IPOD_TRUE = @USE_IPOD_TRUE@
+USE_LIBSOUP_FALSE = @USE_LIBSOUP_FALSE@
+USE_LIBSOUP_TRUE = @USE_LIBSOUP_TRUE@
+USE_NLS = @USE_NLS@
+USE_NOTIFY_FALSE = @USE_NOTIFY_FALSE@
+USE_NOTIFY_TRUE = @USE_NOTIFY_TRUE@
+USE_TREEDB_FALSE = @USE_TREEDB_FALSE@
+USE_TREEDB_TRUE = @USE_TREEDB_TRUE@
+VERSION = @VERSION@
+WITH_AUDIOSCROBBLER_FALSE = @WITH_AUDIOSCROBBLER_FALSE@
+WITH_AUDIOSCROBBLER_TRUE = @WITH_AUDIOSCROBBLER_TRUE@
+WITH_DBUS_FALSE = @WITH_DBUS_FALSE@
+WITH_DBUS_TRUE = @WITH_DBUS_TRUE@
+WITH_INTERNAL_LIBSEXY_FALSE = @WITH_INTERNAL_LIBSEXY_FALSE@
+WITH_INTERNAL_LIBSEXY_TRUE = @WITH_INTERNAL_LIBSEXY_TRUE@
+WITH_LIRC_FALSE = @WITH_LIRC_FALSE@
+WITH_LIRC_TRUE = @WITH_LIRC_TRUE@
+WITH_METADATA_HELPER_FALSE = @WITH_METADATA_HELPER_FALSE@
+WITH_METADATA_HELPER_TRUE = @WITH_METADATA_HELPER_TRUE@
+WITH_OLD_DBUS_FALSE = @WITH_OLD_DBUS_FALSE@
+WITH_OLD_DBUS_TRUE = @WITH_OLD_DBUS_TRUE@
+WNOERROR_CFLAGS = @WNOERROR_CFLAGS@
+XGETTEXT = @XGETTEXT@
+XMKMF = @XMKMF@
+ac_ct_CC = @ac_ct_CC@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+pkgpyexecdir = @pkgpyexecdir@
+pkgpythondir = @pkgpythondir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+pyexecdir = @pyexecdir@
+pythondir = @pythondir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+plugindir = $(PLUGINDIR)/scrobbler
+plugin_LTLIBRARIES = libscrobbler.la
+
+libscrobbler_la_SOURCES = \
+	rb-scrobbler-plugin.c
+
+
+libscrobbler_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
+
+INCLUDES = \
+        -DGNOMELOCALEDIR=\""$(datadir)/locale"\"        \
+	-DG_LOG_DOMAIN=\"Rhythmbox\"		 	\
+	-I$(top_srcdir) 				\
+	-I$(top_srcdir)/lib                        	\
+	-I$(top_srcdir)/metadata                       	\
+	-I$(top_srcdir)/player                       	\
+	-I$(top_srcdir)/rhythmdb                       	\
+	-I$(top_srcdir)/widgets                    	\
+	-I$(top_srcdir)/sources                    	\
+	-I$(top_srcdir)/iradio                    	\
+	-I$(top_srcdir)/podcast                    	\
+	-I$(top_srcdir)/plugins				\
+	-I$(top_srcdir)/shell				\
+	-DPIXMAP_DIR=\""$(datadir)/pixmaps"\"		\
+	-DSHARE_DIR=\"$(pkgdatadir)\"                   \
+	-DDATADIR=\""$(datadir)"\"			\
+	$(RHYTHMBOX_CFLAGS)				\
+	$(WARN_CFLAGS)					\
+	$(DBUS_CFLAGS)					\
+	-D_XOPEN_SOURCE -D_BSD_SOURCE
+
+
+plugin_in_files = scrobbler.rb-plugin.desktop.in
+
+plugin_DATA = $(plugin_in_files:.rb-plugin.desktop.in=.rb-plugin)
+
+EXTRA_DIST = $(plugin_in_files)
+
+CLEANFILES = $(plugin_DATA)
+DISTCLEANFILES = $(plugin_DATA)
+subdir = plugins/scrobbler
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+LTLIBRARIES = $(plugin_LTLIBRARIES)
+
+libscrobbler_la_LIBADD =
+am_libscrobbler_la_OBJECTS = rb-scrobbler-plugin.lo
+libscrobbler_la_OBJECTS = $(am_libscrobbler_la_OBJECTS)
+
+DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/rb-scrobbler-plugin.Plo
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+	$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
+DIST_SOURCES = $(libscrobbler_la_SOURCES)
+DATA = $(plugin_DATA)
+
+DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
+SOURCES = $(libscrobbler_la_SOURCES)
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  plugins/scrobbler/Makefile
+Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  $(top_builddir)/config.status
+	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+pluginLTLIBRARIES_INSTALL = $(INSTALL)
+install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
+	@$(NORMAL_INSTALL)
+	$(mkinstalldirs) $(DESTDIR)$(plugindir)
+	@list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
+	  if test -f $$p; then \
+	    f="`echo $$p | sed -e 's|^.*/||'`"; \
+	    echo " $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(plugindir)/$$f"; \
+	    $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(plugindir)/$$f; \
+	  else :; fi; \
+	done
+
+uninstall-pluginLTLIBRARIES:
+	@$(NORMAL_UNINSTALL)
+	@list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
+	    p="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(plugindir)/$$p"; \
+	  $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(plugindir)/$$p; \
+	done
+
+clean-pluginLTLIBRARIES:
+	-test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES)
+	@list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
+	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+	  test "$$dir" = "$$p" && dir=.; \
+	  echo "rm -f \"$${dir}/so_locations\""; \
+	  rm -f "$${dir}/so_locations"; \
+	done
+libscrobbler.la: $(libscrobbler_la_OBJECTS) $(libscrobbler_la_DEPENDENCIES) 
+	$(LINK) -rpath $(plugindir) $(libscrobbler_la_LDFLAGS) $(libscrobbler_la_OBJECTS) $(libscrobbler_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+	-rm -f *.$(OBJEXT) core *.core
+
+distclean-compile:
+	-rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rb-scrobbler-plugin.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+@am__fastdepCC_TRUE@	  -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
+@am__fastdepCC_TRUE@	else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@	fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
+
+.c.obj:
+@am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+@am__fastdepCC_TRUE@	  -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
+@am__fastdepCC_TRUE@	else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@	fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
+
+.c.lo:
+@am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+@am__fastdepCC_TRUE@	  -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
+@am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
+@am__fastdepCC_TRUE@	else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+@am__fastdepCC_TRUE@	fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+
+distclean-libtool:
+	-rm -f libtool
+uninstall-info-am:
+pluginDATA_INSTALL = $(INSTALL_DATA)
+install-pluginDATA: $(plugin_DATA)
+	@$(NORMAL_INSTALL)
+	$(mkinstalldirs) $(DESTDIR)$(plugindir)
+	@list='$(plugin_DATA)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " $(pluginDATA_INSTALL) $$d$$p $(DESTDIR)$(plugindir)/$$f"; \
+	  $(pluginDATA_INSTALL) $$d$$p $(DESTDIR)$(plugindir)/$$f; \
+	done
+
+uninstall-pluginDATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(plugin_DATA)'; for p in $$list; do \
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " rm -f $(DESTDIR)$(plugindir)/$$f"; \
+	  rm -f $(DESTDIR)$(plugindir)/$$f; \
+	done
+
+ETAGS = etags
+ETAGSFLAGS =
+
+CTAGS = ctags
+CTAGSFLAGS =
+
+tags: TAGS
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '    { files[$$0] = 1; } \
+	       END { for (i in files) print i; }'`; \
+	mkid -fID $$unique
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	tags=; \
+	here=`pwd`; \
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '    { files[$$0] = 1; } \
+	       END { for (i in files) print i; }'`; \
+	test -z "$(ETAGS_ARGS)$$tags$$unique" \
+	  || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+	     $$tags $$unique
+
+ctags: CTAGS
+CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	tags=; \
+	here=`pwd`; \
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '    { files[$$0] = 1; } \
+	       END { for (i in files) print i; }'`; \
+	test -z "$(CTAGS_ARGS)$$tags$$unique" \
+	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+	     $$tags $$unique
+
+GTAGS:
+	here=`$(am__cd) $(top_builddir) && pwd` \
+	  && cd $(top_srcdir) \
+	  && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ../..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+	list='$(DISTFILES)'; for file in $$list; do \
+	  case $$file in \
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+	  esac; \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+	    dir="/$$dir"; \
+	    $(mkinstalldirs) "$(distdir)$$dir"; \
+	  else \
+	    dir=''; \
+	  fi; \
+	  if test -d $$d/$$file; then \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+	    fi; \
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+	  else \
+	    test -f $(distdir)/$$file \
+	    || cp -p $$d/$$file $(distdir)/$$file \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES) $(DATA)
+
+installdirs:
+	$(mkinstalldirs) $(DESTDIR)$(plugindir) $(DESTDIR)$(plugindir)
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+	-rm -f $(CONFIG_CLEAN_FILES)
+	-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \
+	mostlyclean-am
+
+distclean: distclean-am
+	-rm -rf ./$(DEPDIR)
+	-rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+	distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-pluginDATA install-pluginLTLIBRARIES
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -rf ./$(DEPDIR)
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+	mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-info-am uninstall-pluginDATA \
+	uninstall-pluginLTLIBRARIES
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+	clean-libtool clean-pluginLTLIBRARIES ctags distclean \
+	distclean-compile distclean-generic distclean-libtool \
+	distclean-tags distdir dvi dvi-am info info-am install \
+	install-am install-data install-data-am install-exec \
+	install-exec-am install-info install-info-am install-man \
+	install-pluginDATA install-pluginLTLIBRARIES install-strip \
+	installcheck installcheck-am installdirs maintainer-clean \
+	maintainer-clean-generic mostlyclean mostlyclean-compile \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags uninstall uninstall-am uninstall-info-am \
+	uninstall-pluginDATA uninstall-pluginLTLIBRARIES
+
+
+%.rb-plugin: %.rb-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff -urNp rhythmbox-0.11.6.orig/plugins/scrobbler/rb-scrobbler-plugin.c rhythmbox-0.11.6/plugins/scrobbler/rb-scrobbler-plugin.c
--- rhythmbox-0.11.6.orig/plugins/scrobbler/rb-scrobbler-plugin.c	1970-01-01 01:00:00.000000000 +0100
+++ rhythmbox-0.11.6/plugins/scrobbler/rb-scrobbler-plugin.c	2008-10-20 23:12:42.000000000 +0200
@@ -0,0 +1,467 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
+ *
+ *  arch-tag: New style last.fm plugin
+ *
+ * rb-scrobbler-plugin.h
+ * 
+ * Copyright (C) 2007-2008 - Juergen Kreileder <jk@blackdown.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <string.h>
+#include <glib/gi18n-lib.h>
+#include <gmodule.h>
+#include <gtk/gtk.h>
+#include <glib.h>
+#include <glib-object.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <arpa/inet.h>
+#include <unistd.h>
+
+#include "rb-plugin.h"
+#include "rb-debug.h"
+#include "rb-shell.h"
+#include "rb-shell-player.h"
+
+#define LASTFM_BETA_APP "last.fm"
+#define LASTFM_APP "lastfm"
+#define PLUGIN_NAME "Rhythmbox"
+#define CMD_EXIT "EXIT_AS_THREAD\n"
+#define HOST "localhost"
+#define PORT 33367
+#define DO_PORTSTEPPING
+#define PORTS_TO_STEP 5
+#define STARTUP_WAIT_MAX 60
+
+
+#define RB_TYPE_SCROBBLER_PLUGIN		(rb_scrobbler_plugin_get_type ())
+#define RB_SCROBBLER_PLUGIN(o)			(G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_SCROBBLER_PLUGIN, RBScrobblerPlugin))
+#define RB_SCROBBLER_PLUGIN_CLASS(k)		(G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_SCROBBLER_PLUGIN, RBScrobblerPluginClass))
+#define RB_IS_SCROBBLER_PLUGIN(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_SCROBBLER_PLUGIN))
+#define RB_IS_SCROBBLER_PLUGIN_CLASS(k)		(G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_SCROBBLER_PLUGIN))
+#define RB_SCROBBLER_PLUGIN_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_SCROBBLER_PLUGIN, RBScrobblerPluginClass))
+
+typedef struct
+{
+	RBPlugin parent;
+	gint playing_changed_id;
+	gint playing_song_changed_id;
+	GAsyncQueue *send_queue;
+	GThread *submit_thread;
+	glong startup_sec;
+	gboolean exit;
+	gboolean playing;
+	gboolean paused;
+} RBScrobblerPlugin;
+
+typedef struct
+{
+	RBPluginClass parent_class;
+} RBScrobblerPluginClass;
+
+
+G_MODULE_EXPORT GType register_rb_plugin (GTypeModule *module);
+GType rb_scrobbler_plugin_get_type (void) G_GNUC_CONST;
+
+
+
+static void rb_scrobbler_plugin_init (RBScrobblerPlugin *plugin);
+static void impl_activate (RBPlugin *plugin, RBShell *shell);
+static void impl_deactivate (RBPlugin *plugin, RBShell *shell);
+
+RB_PLUGIN_REGISTER(RBScrobblerPlugin, rb_scrobbler_plugin)
+
+
+static void
+rb_scrobbler_plugin_class_init (RBScrobblerPluginClass *klass)
+{
+	RBPluginClass *plugin_class = RB_PLUGIN_CLASS (klass);
+	plugin_class->activate = impl_activate;
+	plugin_class->deactivate = impl_deactivate;
+}
+
+static in_addr_t
+get_host(const gchar *hostname)
+{
+	in_addr_t addr = INADDR_NONE;
+	struct in_addr inp;
+	struct hostent *hostinfo;
+    
+	if (inet_aton (hostname, &inp) && inp.s_addr != INADDR_NONE) {
+		addr = inp.s_addr;
+	} else if ((hostinfo = gethostbyname (hostname))) {
+		addr = ((struct in_addr *) hostinfo->h_addr_list[0])->s_addr;
+	}
+
+	return addr;
+}
+
+static int
+connect_to_socket(RBScrobblerPlugin *plugin, in_addr_t addr, guint16 port)
+{
+	struct sockaddr_in name;
+
+	int sock = socket (PF_INET, SOCK_STREAM, 0);
+	if (sock < 0) {
+		rb_debug ("ERROR: Can't create socket");
+		return -1;
+	}
+
+	name.sin_family = AF_INET;
+	name.sin_port = g_htons (port);
+	name.sin_addr.s_addr = addr;
+
+	gboolean retry;
+	do {
+		if (!connect (sock, (struct sockaddr *) &name, sizeof name)) {
+			return sock;
+		}
+		GTimeVal t;
+		g_get_current_time (&t);
+		if (!plugin->exit && t.tv_sec - plugin->startup_sec < STARTUP_WAIT_MAX) {
+			rb_debug ("Waiting for lastfm");
+			g_usleep (G_USEC_PER_SEC);
+			retry = TRUE;
+		} else {
+			retry = FALSE;
+		}
+	} while (retry);
+
+
+#ifdef DO_PORTSTEPPING
+	while (++port <= PORT + PORTS_TO_STEP) {
+		rb_debug ("Connect failed, trying next port (%d)", port);
+		name.sin_port = g_htons (port);
+		if (!connect (sock, (struct sockaddr *) &name, sizeof name)) {
+			return sock;
+		}
+	}
+#endif
+
+	rb_debug ("ERROR: Can't connect to lastfm");
+
+	close (sock);
+	return -1;
+}
+
+static GIOChannel *
+get_channel (RBScrobblerPlugin *plugin)
+{
+	in_addr_t addr;
+
+	addr = get_host (HOST);
+	if (addr == INADDR_NONE) {
+		rb_debug ("ERROR: Unknown host %s", HOST);
+		return NULL;
+	}
+    
+	int sock = connect_to_socket (plugin, addr, PORT);
+	if (sock >= 0) {
+		return g_io_channel_unix_new (sock);
+	}
+    
+	return NULL;
+}
+
+static void
+change_child_pgrp (gpointer userdata __attribute((unused)))
+{
+	setpgrp ();
+}
+
+static void
+start_lastfm ()
+{
+	GPid pid;
+	GError *err = NULL;
+	gchar *argv[] = {
+		LASTFM_BETA_APP,
+		"-tray",
+		NULL
+	};
+
+	if (g_spawn_async (NULL, argv, NULL,
+			   G_SPAWN_STDOUT_TO_DEV_NULL | G_SPAWN_STDERR_TO_DEV_NULL | G_SPAWN_SEARCH_PATH,
+			   change_child_pgrp, NULL, &pid, &err)) {
+		setpgid (pid, pid);
+	} else {
+		rb_debug (err->message);
+		g_clear_error (&err);
+		err = NULL;
+		gchar *argv[] = {
+			LASTFM_APP,
+			"-tray",
+			NULL
+		};
+		if (g_spawn_async (NULL, argv, NULL,
+				   G_SPAWN_STDOUT_TO_DEV_NULL | G_SPAWN_STDERR_TO_DEV_NULL | G_SPAWN_SEARCH_PATH,
+				   change_child_pgrp, NULL, &pid, &err)) {
+			setpgid (pid, pid);
+		} else {
+			rb_debug (err->message);
+			g_clear_error (&err);
+		}
+	}
+}
+
+static gpointer
+send_to_as_thread (gpointer p)
+{
+	RBScrobblerPlugin *plugin = (RBScrobblerPlugin *) p;
+	gchar *cmd;
+	gchar *answer;
+	GIOChannel *channel;
+
+	start_lastfm ();
+
+	GTimeVal t;
+	g_get_current_time (&t);
+	plugin->startup_sec = t.tv_sec;
+
+	g_async_queue_ref (plugin->send_queue);
+	while (!plugin->exit) {
+		cmd = g_async_queue_pop (plugin->send_queue);
+
+		if (!strcmp(CMD_EXIT, cmd)) {
+			rb_debug ("Exiting as thread");
+			plugin->exit = TRUE;
+		} else if ((channel = get_channel (plugin))) {
+			rb_debug ("SENDING: %s", cmd);
+			g_io_channel_write_chars (channel, cmd, -1, NULL, NULL);
+			g_io_channel_flush (channel, NULL);
+			g_io_channel_read_to_end (channel, &answer, NULL, NULL);
+			rb_debug ("ANSWER: %s", answer);
+			g_free (answer);
+			g_io_channel_close (channel);
+		} else {
+			rb_debug ("ERROR: %s", cmd);
+		}
+
+		g_free (cmd);
+	}
+	// Clear queue
+	while ((cmd = g_async_queue_try_pop (plugin->send_queue))) {
+		rb_debug ("IGNORED: %s", cmd);
+		g_free (cmd);
+	}
+	g_async_queue_unref (plugin->send_queue);
+	return NULL;
+}
+
+static void
+rb_scrobbler_plugin_init (RBScrobblerPlugin *plugin)
+{
+	rb_debug ("RBScrobblerPlugin initialising");
+}
+
+static void
+send_to_as (RBScrobblerPlugin *plugin, const gchar *cmd)
+{
+	g_async_queue_push (plugin->send_queue, strdup (cmd));
+}
+
+static gchar *
+escape (const gchar *src)
+{
+	g_return_val_if_fail (src != NULL, NULL);
+
+	const guchar *p = (guchar *) src;
+	gchar *dst;
+	gchar* q = dst = g_malloc (strlen (src) * 2 + 1);
+
+	while (*p) {
+		if (*p == '&') {
+			*q++ = '&';
+		}
+		*q++ = *p++;
+	}
+	*q = 0;
+
+	return dst;
+}
+
+static void 
+scrobbler_start (RBScrobblerPlugin *plugin,
+		 const gchar *artist,
+		 const gchar *track,
+		 const gchar *album,
+		 const gchar *mb_id,
+		 guint length,
+		 const gchar *filename)
+{
+	if (!plugin->exit) {
+		plugin->playing = TRUE;
+		plugin->paused = FALSE;
+
+		gchar *a = escape (artist);
+		gchar *t = escape (track);
+		gchar *b = escape (album);
+		gchar *m = escape (mb_id);
+		gchar *p = escape (strncmp (filename, "file:///", 8) == 0 ? &filename[7] : filename);
+
+		gchar *cmd = g_strdup_printf ("START c=" PLUGIN_NAME
+					      "&a=%s&t=%s&b=%s&m=%s&l=%d&p=%s\n",
+					      a, t, b, m, length, p);
+		g_free (a);
+		g_free (t);
+		g_free (b);
+		g_free (m);
+		g_free (p);
+
+		send_to_as (plugin, cmd);
+
+		g_free (cmd);
+	}
+}
+
+static void
+scrobbler_stop (RBScrobblerPlugin *plugin)
+{
+	if (!plugin->exit && plugin->playing) {
+		plugin->playing = FALSE;
+		plugin->paused = FALSE;
+		send_to_as (plugin, "STOP c=" PLUGIN_NAME "\n");
+	}
+}
+
+static void
+scrobbler_pause (RBScrobblerPlugin *plugin)
+{
+	if (!plugin->exit && plugin->playing && !plugin->paused) {
+		plugin->paused = TRUE;
+		send_to_as (plugin, "PAUSE c=" PLUGIN_NAME "\n");
+	}
+}
+
+static void
+scrobbler_resume (RBScrobblerPlugin *plugin)
+{
+	if (!plugin->exit && plugin->playing && plugin->paused) {
+		plugin->paused = FALSE;
+		send_to_as (plugin, "RESUME c=" PLUGIN_NAME "\n");
+	}
+}
+
+static void
+playing_changed_cb (RBShellPlayer *player, gboolean playing, RBScrobblerPlugin *plugin)
+{
+	playing ? scrobbler_resume (plugin) : scrobbler_pause (plugin);
+}
+
+static void
+playing_song_changed_cb (RBShellPlayer *player, RhythmDBEntry *entry, RBScrobblerPlugin *plugin)
+{
+	if (entry == NULL) {
+		rb_debug ("entry == NULL");
+		scrobbler_stop (plugin);
+		return;
+	}
+
+	RhythmDBEntryType type = rhythmdb_entry_get_entry_type (entry);
+	if (type->category != RHYTHMDB_ENTRY_NORMAL ||
+	    type == RHYTHMDB_ENTRY_TYPE_PODCAST_POST ||
+	    rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_PLAYBACK_ERROR) != NULL) {
+		rb_debug ("will not scrobble");
+		scrobbler_stop (plugin);
+		return;
+	}
+
+	const gchar *artist = rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_ARTIST);
+	const gchar *title = rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_TITLE);
+
+	if (!strlen (artist) || !strlen (title) ||
+	    !strcmp (artist, _("Unknown")) || !strcmp (title, _("Unknown"))) {
+		rb_debug ("will not scrobble");
+		scrobbler_stop (plugin);
+		return;
+	}
+
+	scrobbler_start (plugin, artist, title,
+			 rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_ALBUM),
+			 rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_MUSICBRAINZ_TRACKID),
+			 rhythmdb_entry_get_ulong (entry, RHYTHMDB_PROP_DURATION),
+			 rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_LOCATION));
+}
+
+static void
+impl_activate (RBPlugin *rbplugin,
+	       RBShell *shell)
+{
+
+	if (!g_thread_supported ()) {
+		g_thread_init (NULL);
+	}
+
+	RBScrobblerPlugin *plugin = RB_SCROBBLER_PLUGIN (rbplugin);
+	plugin->send_queue = g_async_queue_new ();
+	plugin->submit_thread = g_thread_create (send_to_as_thread, rbplugin, TRUE, NULL);
+
+
+	plugin->exit = FALSE;
+	plugin->playing = FALSE;
+	plugin->paused = FALSE;
+
+	GObject *shell_player;
+	g_object_get (shell, "shell-player", &shell_player, NULL);
+
+	plugin->playing_changed_id = g_signal_connect_object (shell_player,
+							      "playing-changed",
+							      G_CALLBACK (playing_changed_cb),
+							      plugin, 0);
+
+	plugin->playing_song_changed_id = g_signal_connect_object (shell_player,
+								   "playing-song-changed",
+								   G_CALLBACK (playing_song_changed_cb),
+								   plugin, 0);
+
+	g_object_unref (shell_player);
+}
+
+static void
+impl_deactivate	(RBPlugin *rbplugin,
+		 RBShell *shell)
+{
+	RBScrobblerPlugin *plugin = RB_SCROBBLER_PLUGIN (rbplugin);
+	plugin->exit = TRUE;
+	send_to_as (plugin, CMD_EXIT);
+
+	g_thread_join (plugin->submit_thread);
+	plugin->submit_thread = NULL;
+
+	g_async_queue_unref (plugin->send_queue);
+	plugin->send_queue = NULL;
+
+	GObject *shell_player;
+	g_object_get (shell, "shell-player", &shell_player, NULL);
+
+	if (plugin->playing_changed_id != 0) {
+		g_signal_handler_disconnect (shell_player, plugin->playing_changed_id);
+		plugin->playing_changed_id = 0;
+	}
+
+	if (plugin->playing_song_changed_id != 0) {
+		g_signal_handler_disconnect (shell_player, plugin->playing_song_changed_id);
+		plugin->playing_song_changed_id = 0;
+	}
+
+	g_object_unref (shell_player);
+}
diff -urNp rhythmbox-0.11.6.orig/plugins/scrobbler/scrobbler.rb-plugin.desktop.in rhythmbox-0.11.6/plugins/scrobbler/scrobbler.rb-plugin.desktop.in
--- rhythmbox-0.11.6.orig/plugins/scrobbler/scrobbler.rb-plugin.desktop.in	1970-01-01 01:00:00.000000000 +0100
+++ rhythmbox-0.11.6/plugins/scrobbler/scrobbler.rb-plugin.desktop.in	2008-10-20 23:12:42.000000000 +0200
@@ -0,0 +1,8 @@
+[RB Plugin]
+Module=scrobbler
+IAge=1
+_Name=New Style Last.fm Scrobbler
+_Description=Scrobble songs via the last.fm client
+Authors=Jürgen Kreileder <jk@blackdown.de>
+Copyright=Copyright © 2007-2008 Jürgen Kreileder
+Website=http://blog.blackdown.de/2007/05/19/lastfm-for-rhythmbox-new-style
=
