Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ AS_IF([test "${enable_gtk3}" = "yes"], [
AM_CONDITIONAL(OS_OSX, test "x$OS_OSX" = "xyes")


AS_IF([test "${enable_gtk2}" = "yes" -o "${enable_gtk3}" = "yes" -o "${enable_shellexec}" = "yes"], [
AS_IF([test "${enable_gtk2}" = "yes" -o "${enable_gtk3}" = "yes" -o "${enable_shellexec}" = "yes" -o "${enable_listenbrainz}" = "yes"], [
AS_IF([test "${enable_staticlink}" != "no"], [
JANSSON_CFLAGS="-I../../$LIB/include"
JANSSON_LIBS=-ljansson
Expand Down Expand Up @@ -665,6 +665,13 @@ AS_IF([test "${enable_lfm}" != "no"], [
])
])

dnl listenbrainz plugin
AS_IF([test "${enable_listenbrainz}" != "no"], [
AS_IF([test "${HAVE_CURL}" = "yes" -a "${enable_lastfm}" != "no"], [
HAVE_LISTENBRAINZ=yes
])
])

dnl shellexec plugin
AS_IF([test "${enable_shellexec}" != "no"], [
HAVE_SHELLEXEC=yes
Expand Down Expand Up @@ -889,6 +896,7 @@ AM_CONDITIONAL(HAVE_VTX, test "x$HAVE_VTX" = "xyes")
AM_CONDITIONAL(HAVE_GME, test "x$HAVE_GME" = "xyes")
AM_CONDITIONAL(HAVE_LIBRETRO, test "x$HAVE_LIBRETRO" = "xyes")
AM_CONDITIONAL(HAVE_LASTFM, test "x$HAVE_LASTFM" = "xyes")
AM_CONDITIONAL(HAVE_LISTENBRAINZ, test "x$HAVE_LISTENBRAINZ" = "xyes")
AM_CONDITIONAL(HAVE_VFS_CURL, test "x$HAVE_VFS_CURL" = "xyes")
AM_CONDITIONAL(HAVE_HOTKEYS, test "x$HAVE_HOTKEYS" = "xyes")
AM_CONDITIONAL(HAVE_MP3, test "x$HAVE_MP3" = "xyes")
Expand Down Expand Up @@ -1044,6 +1052,7 @@ PRINT_PLUGIN_INFO([gtkui3],[GTK3 user interface],[test "x$HAVE_GTK3" = "xyes"])
PRINT_PLUGIN_INFO([gtkui],[GTK2 user interface],[test "x$HAVE_GTK2" = "xyes"])
PRINT_PLUGIN_INFO([hotkeys],[Local and global hotkeys support],[test "x$HAVE_HOTKEYS" = "xyes"])
PRINT_PLUGIN_INFO([lastfm],[last.fm scrobbler],[test "x$HAVE_LASTFM" = "xyes"])
PRINT_PLUGIN_INFO([listenbrainz],[listenbrainz scrobbler],[test "x$HAVE_LISTENBRAINZ" = "xyes"])
PRINT_PLUGIN_INFO([libretro],[Libretro resampler plugin],[test "x$HAVE_LIBRETRO" = "xyes"])
PRINT_PLUGIN_INFO([m3u],[M3U and PLS playlist support],[test "x$HAVE_M3U" = "xyes"])
PRINT_PLUGIN_INFO([medialib],[Media library],[test "x$HAVE_MEDIALIB" = "xyes"])
Expand Down
16 changes: 16 additions & 0 deletions plugins/listenbrainz/COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ListenBrainz plugin for DeaDBeeF Player
Copyright (C) Kartik Ohri

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
of the License, 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 Street, Fifth Floor, Boston, MA 02110-1301, USA.
8 changes: 8 additions & 0 deletions plugins/listenbrainz/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if HAVE_LISTENBRAINZ
pkglib_LTLIBRARIES = listenbrainz.la
listenbrainz_la_SOURCES = listenbrainz.c
listenbrainz_la_LDFLAGS = -module -avoid-version

listenbrainz_la_LIBADD = $(LDADD) $(CURL_LIBS) $(DISPATCH_LIBS) $(JANSSON_LIBS)
listenbrainz_la_CFLAGS = -std=c99 $(CURL_CFLAGS) $(DISPATCH_CFLAGS) $(JANSSON_CFLAGS) -I@top_srcdir@/include
endif
Loading
Loading