chiark / gitweb /
plugins/tracklength-gstreamer.c: Add GStreamer-based tracklength plugin.
[disorder] / plugins / Makefile.am
index 0f6ca75e72247fc1b9fa54694cce7a8f1ef309e2..6c79cf61b40f6be2ab4cbb41c409839a695fa76c 100644 (file)
@@ -1,33 +1,38 @@
 #
 # This file is part of DisOrder
-# Copyright (C) 2004, 2005, 2006 Richard Kettlewell
+# Copyright (C) 2004-2008, 2010, 2013 Richard Kettlewell
 #
-# This program is free software; you can redistribute it and/or modify
+# 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
+# the Free Software Foundation, either version 3 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.
-#
+# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-# USA
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-pkglib_LTLIBRARIES=tracklength.la fs.la notify.la exec.la shell.la \
+VPATH+=${top_srcdir}/common
+
+pkglib_LTLIBRARIES=disorder-tracklength.la fs.la notify.la exec.la shell.la \
                   execraw.la
+AUTOMAKE_OPTIONS=subdir-objects
 AM_CPPFLAGS=-I${top_srcdir}/lib
+AM_CFLAGS=
 
 notify_la_SOURCES=notify.c
 notify_la_LDFLAGS=-module
 
-tracklength_la_SOURCES=tracklength.c mad.c madshim.h
-tracklength_la_LDFLAGS=-module
-tracklength_la_LIBADD=$(LIBVORBISFILE) $(LIBMAD)
+disorder_tracklength_la_SOURCES=tracklength.c tracklength.h    \
+tracklength-mp3.c tracklength-ogg.c tracklength-wav.c          \
+tracklength-flac.c mad.c madshim.h
+nodist_disorder_tracklength_la_SOURCES=wav.c hreader.c
+disorder_tracklength_la_LDFLAGS=-module
+disorder_tracklength_la_LIBADD=$(LIBVORBISFILE) $(LIBMAD) $(LIBFLAC) -lm
 
 fs_la_SOURCES=fs.c
 fs_la_LDFLAGS=-module
@@ -40,3 +45,13 @@ execraw_la_LDFLAGS=-module
 
 shell_la_SOURCES=shell.c
 shell_la_LDFLAGS=-module
+
+if GSTDECODE
+AM_CFLAGS+=$(GSTREAMER_CFLAGS)
+pkglib_LTLIBRARIES+=tracklength-gstreamer.la
+tracklength_gstreamer_la_SOURCES=tracklength-gstreamer.c
+tracklength_gstreamer_la_LDFLAGS=-module
+tracklength_gstreamer_la_LIBADD=$(LIBOBJS) \
+       $(GSTREAMER_PLUGINS_BASE_LIBS) \
+       $(GSTREAMER_LIBS)
+endif