2008-09-23 22:38:46 +02:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2008-10-18 07:21:04 +02:00
|
|
|
AUTOMAKE_OPTIONS = foreign 1.9 dist-bzip2
|
2004-03-12 16:26:41 +01:00
|
|
|
|
2009-02-25 16:45:23 +01:00
|
|
|
AM_CPPFLAGS = -I$(srcdir)/src $(GLIB_CFLAGS)
|
2009-02-18 19:27:05 +01:00
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
bin_PROGRAMS = src/mpd
|
|
|
|
|
2009-02-25 16:46:07 +01:00
|
|
|
src_mpd_CFLAGS = $(AM_CFLAGS) $(MPD_CFLAGS)
|
2009-02-25 16:45:23 +01:00
|
|
|
src_mpd_CPPFLAGS = $(AM_CPPFLAGS) \
|
2009-02-23 10:04:51 +01:00
|
|
|
$(SQLITE_CFLAGS) \
|
2009-04-13 20:46:31 +02:00
|
|
|
$(ARCHIVE_CFLAGS) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(INPUT_CFLAGS) \
|
2009-04-25 13:21:28 +02:00
|
|
|
$(TAG_CFLAGS) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(DECODER_CFLAGS) \
|
|
|
|
$(ENCODER_CFLAGS) \
|
2009-03-28 21:38:44 +01:00
|
|
|
$(FILTER_CFLAGS) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(OUTPUT_CFLAGS)
|
2009-02-23 10:04:51 +01:00
|
|
|
src_mpd_LDADD = $(MPD_LIBS) \
|
|
|
|
$(SQLITE_LIBS) \
|
2009-04-13 20:46:31 +02:00
|
|
|
$(ARCHIVE_LIBS) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(INPUT_LIBS) \
|
2009-04-25 13:21:28 +02:00
|
|
|
$(TAG_LIBS) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(DECODER_LIBS) \
|
|
|
|
$(ENCODER_LIBS) \
|
2009-03-11 12:38:25 +01:00
|
|
|
$(OUTPUT_LIBS) \
|
2009-03-28 21:38:44 +01:00
|
|
|
$(FILTER_LIBS) \
|
2009-03-11 12:38:25 +01:00
|
|
|
$(GLIB_LIBS)
|
2009-02-23 10:04:51 +01:00
|
|
|
|
|
|
|
mpd_headers = \
|
|
|
|
src/notify.h \
|
|
|
|
src/ack.h \
|
|
|
|
src/audio.h \
|
|
|
|
src/audio_format.h \
|
|
|
|
src/audio_parser.h \
|
|
|
|
src/output_internal.h \
|
|
|
|
src/output_api.h \
|
|
|
|
src/output_plugin.h \
|
|
|
|
src/output_list.h \
|
|
|
|
src/output_all.h \
|
|
|
|
src/output_thread.h \
|
|
|
|
src/output_control.h \
|
|
|
|
src/output_state.h \
|
|
|
|
src/output_print.h \
|
|
|
|
src/output_command.h \
|
|
|
|
src/buffer2array.h \
|
|
|
|
src/command.h \
|
|
|
|
src/idle.h \
|
|
|
|
src/cmdline.h \
|
|
|
|
src/conf.h \
|
|
|
|
src/crossfade.h \
|
|
|
|
src/dbUtils.h \
|
|
|
|
src/decoder_thread.h \
|
|
|
|
src/decoder_control.h \
|
|
|
|
src/decoder_plugin.h \
|
|
|
|
src/decoder_command.h \
|
|
|
|
src/decoder_buffer.h \
|
|
|
|
src/decoder_api.h \
|
|
|
|
src/decoder_plugin.h \
|
|
|
|
src/decoder_internal.h \
|
|
|
|
src/directory.h \
|
|
|
|
src/directory_save.h \
|
|
|
|
src/directory_print.h \
|
|
|
|
src/database.h \
|
|
|
|
src/encoder_plugin.h \
|
|
|
|
src/encoder_list.h \
|
|
|
|
src/encoder_api.h \
|
2009-03-14 17:30:00 +01:00
|
|
|
src/fifo_buffer.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/update.h \
|
|
|
|
src/dirvec.h \
|
|
|
|
src/gcc.h \
|
|
|
|
src/decoder_list.h \
|
|
|
|
src/decoder/_flac_common.h \
|
|
|
|
src/decoder/_ogg_common.h \
|
2009-03-02 20:13:08 +01:00
|
|
|
src/input_plugin.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/input_stream.h \
|
2009-03-02 20:40:31 +01:00
|
|
|
src/input/file_input_plugin.h \
|
|
|
|
src/input/curl_input_plugin.h \
|
2009-03-02 23:11:31 +01:00
|
|
|
src/input/lastfm_input_plugin.h \
|
2009-03-02 20:40:31 +01:00
|
|
|
src/input/mms_input_plugin.h \
|
2009-04-13 19:35:02 +02:00
|
|
|
src/icy_server.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/icy_metadata.h \
|
|
|
|
src/client.h \
|
|
|
|
src/listen.h \
|
|
|
|
src/log.h \
|
|
|
|
src/ls.h \
|
|
|
|
src/main.h \
|
2009-03-14 11:35:40 +01:00
|
|
|
src/mixer_all.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/mixer_api.h \
|
2009-03-12 18:34:37 +01:00
|
|
|
src/mixer_control.h \
|
2009-03-14 11:36:59 +01:00
|
|
|
src/mixer_list.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/event_pipe.h \
|
2009-03-14 11:33:51 +01:00
|
|
|
src/mixer_plugin.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/daemon.h \
|
|
|
|
src/normalize.h \
|
|
|
|
src/compress.h \
|
2009-03-06 00:42:03 +01:00
|
|
|
src/buffer.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/pipe.h \
|
2009-03-03 22:23:25 +01:00
|
|
|
src/chunk.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/path.h \
|
|
|
|
src/mapper.h \
|
httpd: new output plugin to replace "shout"
Let's get rid of the "shout" plugin, and the awfully complicated
icecast daemon setup! MPD can do better if it's doing the HTTP server
stuff on its own. This new plugin has several advantages:
- easier to set up - only one daemon, no password settings, no mount
settings
- MPD controls the encoder and thus already knows the packet
boundaries - icecast has to parse them
- MPD doesn't bother to encode data while nobody is listening
This implementation is very experimental (no header parsing, ignores
request URI, no icy-metadata, ...). It should be able to suport
several encoders in parallel in the future (with different bit rates,
different codec, ...), to make MPD the perfect streaming server. Once
MPD gets multi-player support, we can even mount several different
radio stations on one server.
2009-03-15 03:32:34 +01:00
|
|
|
src/output/httpd_client.h \
|
|
|
|
src/output/httpd_internal.h \
|
2009-03-15 02:29:12 +01:00
|
|
|
src/page.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/pcm_buffer.h \
|
|
|
|
src/pcm_utils.h \
|
|
|
|
src/pcm_convert.h \
|
|
|
|
src/pcm_volume.h \
|
|
|
|
src/pcm_mix.h \
|
|
|
|
src/pcm_channels.h \
|
|
|
|
src/pcm_format.h \
|
|
|
|
src/pcm_resample.h \
|
2009-03-14 15:26:28 +01:00
|
|
|
src/pcm_resample_internal.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/pcm_dither.h \
|
|
|
|
src/pcm_prng.h \
|
|
|
|
src/permission.h \
|
|
|
|
src/player_thread.h \
|
|
|
|
src/player_control.h \
|
|
|
|
src/playlist.h \
|
|
|
|
src/playlist_internal.h \
|
|
|
|
src/playlist_print.h \
|
|
|
|
src/playlist_save.h \
|
|
|
|
src/playlist_state.h \
|
2009-03-09 19:09:30 +01:00
|
|
|
src/poison.h \
|
2009-03-02 18:00:46 +01:00
|
|
|
src/riff.h \
|
2009-03-02 18:12:44 +01:00
|
|
|
src/aiff.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/queue.h \
|
|
|
|
src/queue_print.h \
|
|
|
|
src/queue_save.h \
|
|
|
|
src/replay_gain.h \
|
|
|
|
src/sig_handlers.h \
|
|
|
|
src/song.h \
|
|
|
|
src/song_print.h \
|
|
|
|
src/song_save.h \
|
|
|
|
src/song_sticker.h \
|
|
|
|
src/songvec.h \
|
2009-02-28 15:12:24 +01:00
|
|
|
src/socket_util.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/state_file.h \
|
|
|
|
src/stats.h \
|
|
|
|
src/sticker.h \
|
2009-04-01 17:30:56 +02:00
|
|
|
src/sticker_print.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/tag.h \
|
|
|
|
src/tag_internal.h \
|
|
|
|
src/tag_pool.h \
|
2009-02-28 16:44:41 +01:00
|
|
|
src/tag_ape.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/tag_id3.h \
|
|
|
|
src/tag_print.h \
|
|
|
|
src/tag_save.h \
|
|
|
|
src/strset.h \
|
2009-02-25 16:44:06 +01:00
|
|
|
src/uri.h \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/utils.h \
|
|
|
|
src/volume.h \
|
|
|
|
src/zeroconf.h src/zeroconf-internal.h \
|
|
|
|
src/locate.h \
|
|
|
|
src/stored_playlist.h \
|
|
|
|
src/timer.h \
|
|
|
|
src/archive_api.h \
|
|
|
|
src/archive_internal.h \
|
|
|
|
src/archive_list.h \
|
2009-03-31 21:48:04 +02:00
|
|
|
src/input/archive_input_plugin.h \
|
|
|
|
src/cue/cue_tag.h
|
2009-02-23 10:04:51 +01:00
|
|
|
|
|
|
|
src_mpd_SOURCES = \
|
|
|
|
$(mpd_headers) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(ARCHIVE_SRC) \
|
|
|
|
$(INPUT_SRC) \
|
2009-04-25 13:21:28 +02:00
|
|
|
$(TAG_SRC) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(DECODER_SRC) \
|
|
|
|
$(ENCODER_SRC) \
|
2009-03-10 15:46:55 +01:00
|
|
|
$(OUTPUT_API_SRC) $(OUTPUT_SRC) \
|
2009-03-12 18:34:37 +01:00
|
|
|
$(MIXER_API_SRC) $(MIXER_SRC) \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/notify.c \
|
|
|
|
src/audio.c \
|
|
|
|
src/audio_parser.c \
|
|
|
|
src/buffer2array.c \
|
|
|
|
src/command.c \
|
|
|
|
src/idle.c \
|
|
|
|
src/cmdline.c \
|
|
|
|
src/conf.c \
|
|
|
|
src/crossfade.c \
|
|
|
|
src/dbUtils.c \
|
|
|
|
src/decoder_thread.c \
|
|
|
|
src/decoder_control.c \
|
|
|
|
src/decoder_api.c \
|
2009-03-06 00:42:01 +01:00
|
|
|
src/decoder_internal.c \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/directory.c \
|
|
|
|
src/directory_save.c \
|
|
|
|
src/directory_print.c \
|
|
|
|
src/database.c \
|
|
|
|
src/dirvec.c \
|
2009-03-14 17:30:00 +01:00
|
|
|
src/fifo_buffer.c \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/update.c \
|
|
|
|
src/client.c \
|
|
|
|
src/listen.c \
|
|
|
|
src/log.c \
|
|
|
|
src/ls.c \
|
|
|
|
src/main.c \
|
|
|
|
src/event_pipe.c \
|
|
|
|
src/daemon.c \
|
|
|
|
src/normalize.c \
|
|
|
|
src/compress.c \
|
2009-03-06 00:42:03 +01:00
|
|
|
src/buffer.c \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/pipe.c \
|
2009-03-03 22:23:25 +01:00
|
|
|
src/chunk.c \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/path.c \
|
|
|
|
src/mapper.c \
|
2009-03-15 02:29:12 +01:00
|
|
|
src/page.c \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/pcm_convert.c \
|
|
|
|
src/pcm_volume.c \
|
|
|
|
src/pcm_mix.c \
|
|
|
|
src/pcm_channels.c \
|
|
|
|
src/pcm_format.c \
|
|
|
|
src/pcm_resample.c \
|
2009-03-14 15:26:36 +01:00
|
|
|
src/pcm_resample_fallback.c \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/pcm_dither.c \
|
|
|
|
src/permission.c \
|
|
|
|
src/player_thread.c \
|
|
|
|
src/player_control.c \
|
|
|
|
src/playlist.c \
|
|
|
|
src/playlist_global.c \
|
|
|
|
src/playlist_control.c \
|
|
|
|
src/playlist_edit.c \
|
|
|
|
src/playlist_print.c \
|
|
|
|
src/playlist_save.c \
|
|
|
|
src/playlist_state.c \
|
|
|
|
src/queue.c \
|
|
|
|
src/queue_print.c \
|
|
|
|
src/queue_save.c \
|
|
|
|
src/replay_gain.c \
|
|
|
|
src/sig_handlers.c \
|
|
|
|
src/song.c \
|
|
|
|
src/song_print.c \
|
|
|
|
src/song_save.c \
|
|
|
|
src/songvec.c \
|
2009-02-28 15:12:24 +01:00
|
|
|
src/socket_util.c \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/state_file.c \
|
|
|
|
src/stats.c \
|
|
|
|
src/tag.c \
|
|
|
|
src/tag_pool.c \
|
|
|
|
src/tag_print.c \
|
|
|
|
src/tag_save.c \
|
|
|
|
src/strset.c \
|
2009-02-25 16:44:06 +01:00
|
|
|
src/uri.c \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/utils.c \
|
|
|
|
src/volume.c \
|
|
|
|
src/locate.c \
|
|
|
|
src/stored_playlist.c \
|
|
|
|
src/timer.c
|
|
|
|
|
|
|
|
if ENABLE_SQLITE
|
2009-04-01 17:30:56 +02:00
|
|
|
src_mpd_SOURCES += \
|
|
|
|
src/sticker.c \
|
|
|
|
src/sticker_print.c \
|
|
|
|
src/song_sticker.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
2009-03-28 21:38:44 +01:00
|
|
|
FILTER_CFLAGS = \
|
|
|
|
$(SAMPLERATE_CFLAGS)
|
|
|
|
FILTER_LIBS = \
|
|
|
|
$(SAMPLERATE_LIBS)
|
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
if HAVE_LIBSAMPLERATE
|
|
|
|
src_mpd_SOURCES += src/pcm_resample_libsamplerate.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
# archive plugins
|
|
|
|
|
2009-04-13 20:46:31 +02:00
|
|
|
ARCHIVE_CFLAGS = \
|
2009-04-13 20:47:28 +02:00
|
|
|
$(ISO9660_CFLAGS) \
|
2009-04-13 20:46:31 +02:00
|
|
|
$(ZZIP_CFLAGS)
|
|
|
|
|
|
|
|
ARCHIVE_LIBS = \
|
2009-04-13 20:47:28 +02:00
|
|
|
$(ISO9660_LIBS) \
|
2009-04-13 20:46:31 +02:00
|
|
|
$(ZZIP_LIBS)
|
|
|
|
|
2009-02-25 16:44:11 +01:00
|
|
|
ARCHIVE_SRC =
|
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
if HAVE_BZ2
|
2009-02-25 16:44:11 +01:00
|
|
|
ARCHIVE_SRC += src/archive/bz2_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_ZIP
|
2009-02-25 16:44:11 +01:00
|
|
|
ARCHIVE_SRC += src/archive/zip_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_ISO
|
2009-02-25 16:44:11 +01:00
|
|
|
ARCHIVE_SRC += src/archive/iso_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_ARCHIVE
|
2009-02-25 16:44:11 +01:00
|
|
|
ARCHIVE_SRC += \
|
2009-02-23 10:04:51 +01:00
|
|
|
src/archive_api.c \
|
|
|
|
src/archive_list.c \
|
2009-03-02 20:40:31 +01:00
|
|
|
src/input/archive_input_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2009-04-25 13:21:28 +02:00
|
|
|
# tag plugins
|
|
|
|
|
|
|
|
TAG_CFLAGS = \
|
|
|
|
$(ID3TAG_CFLAGS)
|
|
|
|
TAG_LIBS = \
|
|
|
|
$(ID3TAG_LIBS)
|
|
|
|
|
|
|
|
TAG_SRC = \
|
|
|
|
src/tag_ape.c
|
|
|
|
|
|
|
|
if HAVE_ID3TAG
|
|
|
|
TAG_SRC += src/tag_id3.c \
|
|
|
|
src/riff.c src/aiff.c
|
|
|
|
endif
|
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
# decoder plugins
|
|
|
|
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_CFLAGS = \
|
2009-04-01 22:45:17 +02:00
|
|
|
$(VORBIS_CFLAGS) $(TREMOR_CFLAGS) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(patsubst -I%/FLAC,-I%,$(FLAC_CFLAGS)) \
|
|
|
|
$(AUDIOFILE_CFLAGS) \
|
|
|
|
$(LIBMIKMOD_CFLAGS) \
|
|
|
|
$(MODPLUG_CFLAGS) \
|
|
|
|
$(SIDPLAY_CFLAGS) \
|
|
|
|
$(FLUIDSYNTH_CFLAGS) \
|
|
|
|
$(WILDMIDI_CFLAGS) \
|
|
|
|
$(MAD_CFLAGS) \
|
2009-03-31 21:48:04 +02:00
|
|
|
$(FFMPEG_CFLAGS) \
|
|
|
|
$(CUE_CFLAGS)
|
2009-02-25 16:44:11 +01:00
|
|
|
|
|
|
|
DECODER_LIBS = \
|
2009-04-01 22:45:17 +02:00
|
|
|
$(VORBIS_LIBS) $(TREMOR_LIBS) \
|
2009-04-01 22:45:00 +02:00
|
|
|
$(FLAC_LIBS) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(AUDIOFILE_LIBS) $(LIBMIKMOD_LIBS) \
|
|
|
|
$(MODPLUG_LIBS) \
|
|
|
|
$(SIDPLAY_LIBS) \
|
|
|
|
$(FLUIDSYNTH_LIBS) \
|
|
|
|
$(WILDMIDI_LIBS) \
|
|
|
|
$(MAD_LIBS) \
|
|
|
|
$(MP4FF_LIBS) \
|
2009-03-31 21:48:04 +02:00
|
|
|
$(FFMPEG_LIBS) \
|
|
|
|
$(CUE_LIBS)
|
2009-02-25 16:44:11 +01:00
|
|
|
|
|
|
|
DECODER_SRC = \
|
|
|
|
src/decoder_buffer.c \
|
|
|
|
src/decoder_list.c
|
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
if HAVE_MAD
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/mad_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_MPCDEC
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/mpcdec_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_WAVPACK
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/wavpack_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_FAAD
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/faad_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_MP4
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/mp4ff_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_OGG_COMMON
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/_ogg_common.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_FLAC_COMMON
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/_flac_common.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
2009-04-01 22:45:17 +02:00
|
|
|
if ENABLE_VORBIS_DECODER
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/vorbis_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_FLAC
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/flac_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_OGGFLAC
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/oggflac_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_AUDIOFILE
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/audiofile_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
2009-04-01 22:48:06 +02:00
|
|
|
if ENABLE_MIKMOD_DECODER
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/mikmod_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_MODPLUG
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/modplug_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_SIDPLAY
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/sidplay_plugin.cxx
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_FLUIDSYNTH
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/fluidsynth_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_WILDMIDI
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/wildmidi_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_FFMPEG
|
2009-02-25 16:44:11 +01:00
|
|
|
DECODER_SRC += src/decoder/ffmpeg_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# encoder plugins
|
|
|
|
|
2009-02-25 16:44:11 +01:00
|
|
|
ENCODER_CFLAGS = \
|
2009-04-01 22:05:53 +02:00
|
|
|
$(LAME_CFLAGS) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(VORBISENC_CFLAGS)
|
|
|
|
|
|
|
|
ENCODER_LIBS = \
|
2009-04-01 22:05:53 +02:00
|
|
|
$(LAME_LIBS) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(VORBISENC_LIBS)
|
|
|
|
|
|
|
|
ENCODER_SRC =
|
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
if ENABLE_ENCODER
|
2009-02-25 16:44:11 +01:00
|
|
|
ENCODER_SRC += src/encoder_list.c
|
2009-02-23 10:04:51 +01:00
|
|
|
|
|
|
|
if ENABLE_VORBIS_ENCODER
|
2009-02-25 16:44:11 +01:00
|
|
|
ENCODER_SRC += src/encoder/vorbis_encoder.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_LAME_ENCODER
|
2009-02-25 16:44:11 +01:00
|
|
|
ENCODER_SRC += src/encoder/lame_encoder.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
if HAVE_ZEROCONF
|
|
|
|
src_mpd_SOURCES += src/zeroconf.c
|
|
|
|
|
|
|
|
if HAVE_AVAHI
|
|
|
|
src_mpd_SOURCES += src/zeroconf-avahi.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_BONJOUR
|
|
|
|
src_mpd_SOURCES += src/zeroconf-bonjour.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-03-31 21:48:04 +02:00
|
|
|
if HAVE_CUE
|
|
|
|
DECODER_SRC += src/cue/cue_tag.c
|
|
|
|
endif
|
2009-02-23 10:04:51 +01:00
|
|
|
|
2009-02-25 16:44:11 +01:00
|
|
|
#
|
|
|
|
# input plugins
|
|
|
|
#
|
|
|
|
|
|
|
|
INPUT_CFLAGS = \
|
|
|
|
$(CURL_CFLAGS) \
|
|
|
|
$(MMS_CFLAGS)
|
|
|
|
|
|
|
|
INPUT_LIBS = \
|
|
|
|
$(CURL_LIBS) \
|
|
|
|
$(MMS_LIBS)
|
|
|
|
|
|
|
|
INPUT_SRC = \
|
|
|
|
src/input_stream.c \
|
2009-03-02 20:40:31 +01:00
|
|
|
src/input/file_input_plugin.c
|
2009-02-25 16:44:11 +01:00
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
if HAVE_CURL
|
2009-03-02 20:40:31 +01:00
|
|
|
INPUT_SRC += src/input/curl_input_plugin.c src/icy_metadata.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
2009-03-02 23:11:31 +01:00
|
|
|
|
|
|
|
if ENABLE_LASTFM
|
|
|
|
INPUT_SRC += src/input/lastfm_input_plugin.c
|
|
|
|
endif
|
2009-02-23 10:04:51 +01:00
|
|
|
|
|
|
|
if ENABLE_MMS
|
2009-03-02 20:40:31 +01:00
|
|
|
INPUT_SRC += src/input/mms_input_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2009-02-25 16:44:11 +01:00
|
|
|
OUTPUT_CFLAGS = \
|
|
|
|
$(AO_CFLAGS) \
|
|
|
|
$(ALSA_CFLAGS) \
|
2009-03-28 21:38:53 +01:00
|
|
|
$(JACK_CFLAGS) \
|
2009-03-28 21:39:26 +01:00
|
|
|
$(PULSE_CFLAGS) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(SHOUT_CFLAGS)
|
|
|
|
|
|
|
|
OUTPUT_LIBS = \
|
|
|
|
$(AO_LIBS) \
|
|
|
|
$(ALSA_LIBS) \
|
2009-03-28 21:38:53 +01:00
|
|
|
$(JACK_LIBS) \
|
2009-03-28 21:39:26 +01:00
|
|
|
$(PULSE_LIBS) \
|
2009-02-25 16:44:11 +01:00
|
|
|
$(SHOUT_LIBS)
|
|
|
|
|
2009-03-10 15:46:55 +01:00
|
|
|
OUTPUT_API_SRC = \
|
2009-02-25 16:44:11 +01:00
|
|
|
src/output_list.c \
|
|
|
|
src/output_all.c \
|
|
|
|
src/output_thread.c \
|
|
|
|
src/output_control.c \
|
|
|
|
src/output_state.c \
|
|
|
|
src/output_print.c \
|
|
|
|
src/output_command.c \
|
2009-03-10 15:46:55 +01:00
|
|
|
src/output_init.c
|
|
|
|
|
|
|
|
OUTPUT_SRC = \
|
2009-02-25 16:44:11 +01:00
|
|
|
src/output/null_plugin.c
|
|
|
|
|
2009-03-12 18:34:37 +01:00
|
|
|
MIXER_API_SRC = \
|
|
|
|
src/mixer_control.c \
|
2009-03-14 11:35:40 +01:00
|
|
|
src/mixer_all.c \
|
2009-02-25 16:44:11 +01:00
|
|
|
src/mixer_api.c
|
|
|
|
|
2009-03-12 18:34:37 +01:00
|
|
|
MIXER_SRC =
|
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
if HAVE_ALSA
|
2009-02-25 16:44:11 +01:00
|
|
|
OUTPUT_SRC += src/output/alsa_plugin.c
|
|
|
|
MIXER_SRC += src/mixer/alsa_mixer.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_AO
|
2009-02-25 16:44:11 +01:00
|
|
|
OUTPUT_SRC += src/output/ao_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_FIFO
|
2009-02-25 16:44:11 +01:00
|
|
|
OUTPUT_SRC += src/output/fifo_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
2009-02-28 16:11:59 +01:00
|
|
|
if ENABLE_PIPE_OUTPUT
|
|
|
|
OUTPUT_SRC += src/output/pipe_output_plugin.c
|
|
|
|
endif
|
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
if HAVE_JACK
|
2009-02-25 16:44:11 +01:00
|
|
|
OUTPUT_SRC += src/output/jack_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_MVP
|
2009-02-25 16:44:11 +01:00
|
|
|
OUTPUT_SRC += src/output/mvp_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_OSS
|
2009-02-25 16:44:11 +01:00
|
|
|
OUTPUT_SRC += src/output/oss_plugin.c
|
|
|
|
MIXER_SRC += src/mixer/oss_mixer.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_OSX
|
2009-02-25 16:44:11 +01:00
|
|
|
OUTPUT_SRC += src/output/osx_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_PULSE
|
2009-02-25 16:44:11 +01:00
|
|
|
OUTPUT_SRC += src/output/pulse_plugin.c
|
2009-03-06 18:21:23 +01:00
|
|
|
MIXER_SRC += src/mixer/pulse_mixer.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_SHOUT
|
2009-02-25 16:44:11 +01:00
|
|
|
OUTPUT_SRC += src/output/shout_plugin.c
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
httpd: new output plugin to replace "shout"
Let's get rid of the "shout" plugin, and the awfully complicated
icecast daemon setup! MPD can do better if it's doing the HTTP server
stuff on its own. This new plugin has several advantages:
- easier to set up - only one daemon, no password settings, no mount
settings
- MPD controls the encoder and thus already knows the packet
boundaries - icecast has to parse them
- MPD doesn't bother to encode data while nobody is listening
This implementation is very experimental (no header parsing, ignores
request URI, no icy-metadata, ...). It should be able to suport
several encoders in parallel in the future (with different bit rates,
different codec, ...), to make MPD the perfect streaming server. Once
MPD gets multi-player support, we can even mount several different
radio stations on one server.
2009-03-15 03:32:34 +01:00
|
|
|
if ENABLE_HTTPD_OUTPUT
|
|
|
|
OUTPUT_SRC += \
|
2009-04-13 19:35:02 +02:00
|
|
|
src/icy_server.c \
|
httpd: new output plugin to replace "shout"
Let's get rid of the "shout" plugin, and the awfully complicated
icecast daemon setup! MPD can do better if it's doing the HTTP server
stuff on its own. This new plugin has several advantages:
- easier to set up - only one daemon, no password settings, no mount
settings
- MPD controls the encoder and thus already knows the packet
boundaries - icecast has to parse them
- MPD doesn't bother to encode data while nobody is listening
This implementation is very experimental (no header parsing, ignores
request URI, no icy-metadata, ...). It should be able to suport
several encoders in parallel in the future (with different bit rates,
different codec, ...), to make MPD the perfect streaming server. Once
MPD gets multi-player support, we can even mount several different
radio stations on one server.
2009-03-15 03:32:34 +01:00
|
|
|
src/output/httpd_client.c \
|
|
|
|
src/output/httpd_output_plugin.c
|
|
|
|
endif
|
|
|
|
|
2009-03-16 09:55:10 +01:00
|
|
|
if ENABLE_SOLARIS_OUTPUT
|
|
|
|
OUTPUT_SRC += src/output/solaris_output_plugin.c
|
|
|
|
endif
|
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Sparse code analysis
|
|
|
|
#
|
|
|
|
# sparse is a semantic parser
|
|
|
|
# URL: git://www.kernel.org/pub/scm/devel/sparse/sparse.git
|
|
|
|
#
|
|
|
|
|
|
|
|
SPARSE = sparse
|
|
|
|
SPARSE_FLAGS =
|
|
|
|
SPARSE_CPPFLAGS = $(DEFAULT_INCLUDES) \
|
|
|
|
-I$(shell $(CC) -print-file-name=include) \
|
|
|
|
-I$(shell $(CC) -print-file-name=include-fixed)
|
2009-03-14 14:30:01 +01:00
|
|
|
SPARSE_CPPFLAGS += -D__SCHAR_MAX__=127 -D__SHRT_MAX__=32767 \
|
|
|
|
-D__INT_MAX__=2147483647 -D__LONG_MAX__=2147483647
|
2009-02-23 10:04:51 +01:00
|
|
|
sparse-check:
|
2009-05-04 09:43:05 +02:00
|
|
|
$(SPARSE) -I. $(src_mpd_CFLAGS) $(src_mpd_CPPFLAGS) $(SPARSE_FLAGS) $(SPARSE_CPPFLAGS) $(filter-out %.cxx,$(src_mpd_SOURCES))
|
2009-02-23 10:04:51 +01:00
|
|
|
|
|
|
|
.PHONY: sparse-check
|
|
|
|
|
2009-02-18 19:27:05 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test programs
|
|
|
|
#
|
|
|
|
|
|
|
|
if ENABLE_TEST
|
|
|
|
|
2009-02-25 17:09:09 +01:00
|
|
|
noinst_PROGRAMS = \
|
2009-04-10 09:14:12 +02:00
|
|
|
test/read_conf \
|
2009-04-13 19:18:10 +02:00
|
|
|
test/run_input \
|
2009-02-25 17:09:09 +01:00
|
|
|
test/run_decoder \
|
2009-02-28 17:04:37 +01:00
|
|
|
test/read_tags \
|
2009-03-10 15:46:55 +01:00
|
|
|
test/run_output \
|
2009-04-21 22:46:41 +02:00
|
|
|
test/read_mixer \
|
2009-02-25 17:09:09 +01:00
|
|
|
test/software_volume
|
|
|
|
|
2009-04-10 09:14:12 +02:00
|
|
|
test_read_conf_CPPFLAGS = $(AM_CPPFLAGS) \
|
|
|
|
$(GLIB_CFLAGS)
|
|
|
|
test_read_conf_LDADD = $(MPD_LIBS) \
|
|
|
|
$(GLIB_LIBS)
|
|
|
|
test_read_conf_SOURCES = test/read_conf.c \
|
|
|
|
src/conf.c src/buffer2array.c src/utils.c
|
|
|
|
|
2009-04-13 19:18:10 +02:00
|
|
|
test_run_input_CPPFLAGS = $(AM_CPPFLAGS) \
|
2009-04-13 20:46:31 +02:00
|
|
|
$(ARCHIVE_CFLAGS) \
|
2009-04-13 19:18:10 +02:00
|
|
|
$(INPUT_CFLAGS)
|
|
|
|
test_run_input_LDADD = $(MPD_LIBS) \
|
2009-04-13 20:46:31 +02:00
|
|
|
$(ARCHIVE_LIBS) \
|
2009-04-13 19:18:10 +02:00
|
|
|
$(INPUT_LIBS) \
|
|
|
|
$(GLIB_LIBS)
|
|
|
|
test_run_input_SOURCES = test/run_input.c \
|
|
|
|
src/conf.c src/buffer2array.c src/utils.c \
|
|
|
|
src/tag.c src/tag_pool.c src/tag_save.c \
|
|
|
|
$(ARCHIVE_SRC) \
|
|
|
|
$(INPUT_SRC)
|
|
|
|
|
2009-02-25 17:09:09 +01:00
|
|
|
test_run_decoder_CPPFLAGS = $(AM_CPPFLAGS) \
|
2009-04-25 13:21:28 +02:00
|
|
|
$(TAG_CFLAGS) \
|
2009-04-13 20:46:31 +02:00
|
|
|
$(ARCHIVE_CFLAGS) \
|
2009-02-25 17:09:09 +01:00
|
|
|
$(INPUT_CFLAGS) $(DECODER_CFLAGS)
|
|
|
|
test_run_decoder_LDADD = $(MPD_LIBS) \
|
2009-04-25 13:21:28 +02:00
|
|
|
$(TAG_LIBS) \
|
2009-04-13 20:46:31 +02:00
|
|
|
$(ARCHIVE_LIBS) \
|
2009-03-11 12:38:25 +01:00
|
|
|
$(INPUT_LIBS) $(DECODER_LIBS) \
|
|
|
|
$(GLIB_LIBS)
|
2009-02-25 17:09:09 +01:00
|
|
|
test_run_decoder_SOURCES = test/run_decoder.c \
|
|
|
|
src/conf.c src/buffer2array.c src/utils.c src/log.c \
|
2009-02-28 17:04:37 +01:00
|
|
|
src/tag.c src/tag_pool.c \
|
|
|
|
src/replay_gain.c \
|
|
|
|
src/uri.c \
|
|
|
|
$(ARCHIVE_SRC) \
|
|
|
|
$(INPUT_SRC) \
|
2009-04-25 13:21:28 +02:00
|
|
|
$(TAG_SRC) \
|
2009-02-28 17:04:37 +01:00
|
|
|
$(DECODER_SRC)
|
|
|
|
|
|
|
|
test_read_tags_CPPFLAGS = $(AM_CPPFLAGS) \
|
2009-04-25 13:21:28 +02:00
|
|
|
$(TAG_CFLAGS) \
|
2009-04-13 20:46:31 +02:00
|
|
|
$(ARCHIVE_CFLAGS) \
|
2009-02-28 17:04:37 +01:00
|
|
|
$(INPUT_CFLAGS) $(DECODER_CFLAGS)
|
|
|
|
test_read_tags_LDADD = $(MPD_LIBS) \
|
2009-04-25 13:21:28 +02:00
|
|
|
$(TAG_LIBS) \
|
2009-04-13 20:46:31 +02:00
|
|
|
$(ARCHIVE_LIBS) \
|
2009-03-11 12:38:25 +01:00
|
|
|
$(INPUT_LIBS) $(DECODER_LIBS) \
|
|
|
|
$(GLIB_LIBS)
|
2009-02-28 17:04:37 +01:00
|
|
|
test_read_tags_SOURCES = test/read_tags.c \
|
|
|
|
src/conf.c src/buffer2array.c src/utils.c src/log.c \
|
2009-04-25 13:21:28 +02:00
|
|
|
src/tag.c src/tag_pool.c \
|
2009-02-25 17:09:09 +01:00
|
|
|
src/replay_gain.c \
|
|
|
|
src/uri.c \
|
|
|
|
$(ARCHIVE_SRC) \
|
|
|
|
$(INPUT_SRC) \
|
2009-04-25 13:21:28 +02:00
|
|
|
$(TAG_SRC) \
|
2009-02-25 17:09:09 +01:00
|
|
|
$(DECODER_SRC)
|
2009-02-18 22:27:55 +01:00
|
|
|
|
2009-07-06 22:50:07 +02:00
|
|
|
if ENABLE_ENCODER
|
|
|
|
noinst_PROGRAMS += test/run_encoder
|
2009-02-25 17:12:14 +01:00
|
|
|
test_run_encoder_SOURCES = test/run_encoder.c \
|
|
|
|
src/conf.c src/buffer2array.c \
|
|
|
|
src/utils.c \
|
2009-03-15 18:36:29 +01:00
|
|
|
src/tag.c src/tag_pool.c \
|
2009-02-25 17:12:14 +01:00
|
|
|
src/audio_parser.c \
|
|
|
|
$(ENCODER_SRC)
|
|
|
|
test_run_encoder_LDADD = $(MPD_LIBS) \
|
2009-03-11 12:38:25 +01:00
|
|
|
$(ENCODER_LIBS) \
|
|
|
|
$(GLIB_LIBS)
|
2009-07-06 22:50:07 +02:00
|
|
|
endif
|
2009-02-25 17:12:14 +01:00
|
|
|
|
2009-02-18 22:27:55 +01:00
|
|
|
test_software_volume_SOURCES = test/software_volume.c \
|
|
|
|
src/audio_parser.c \
|
|
|
|
src/pcm_volume.c
|
2009-03-12 19:41:11 +01:00
|
|
|
test_software_volume_LDADD = \
|
|
|
|
$(GLIB_LIBS)
|
2009-02-28 17:04:37 +01:00
|
|
|
|
2009-03-10 15:46:55 +01:00
|
|
|
test_run_output_CPPFLAGS = $(AM_CPPFLAGS) \
|
|
|
|
$(ENCODER_CFLAGS) \
|
|
|
|
$(OUTPUT_CFLAGS)
|
|
|
|
test_run_output_LDADD = $(MPD_LIBS) \
|
|
|
|
$(ENCODER_LIBS) \
|
2009-03-11 12:38:25 +01:00
|
|
|
$(OUTPUT_LIBS) \
|
|
|
|
$(GLIB_LIBS)
|
2009-03-10 15:46:55 +01:00
|
|
|
test_run_output_SOURCES = test/run_output.c \
|
|
|
|
src/conf.c src/buffer2array.c src/utils.c src/log.c \
|
|
|
|
src/audio_parser.c \
|
|
|
|
src/timer.c \
|
2009-03-15 18:36:29 +01:00
|
|
|
src/tag.c src/tag_pool.c \
|
httpd: new output plugin to replace "shout"
Let's get rid of the "shout" plugin, and the awfully complicated
icecast daemon setup! MPD can do better if it's doing the HTTP server
stuff on its own. This new plugin has several advantages:
- easier to set up - only one daemon, no password settings, no mount
settings
- MPD controls the encoder and thus already knows the packet
boundaries - icecast has to parse them
- MPD doesn't bother to encode data while nobody is listening
This implementation is very experimental (no header parsing, ignores
request URI, no icy-metadata, ...). It should be able to suport
several encoders in parallel in the future (with different bit rates,
different codec, ...), to make MPD the perfect streaming server. Once
MPD gets multi-player support, we can even mount several different
radio stations on one server.
2009-03-15 03:32:34 +01:00
|
|
|
src/fifo_buffer.c \
|
|
|
|
src/page.c \
|
|
|
|
src/socket_util.c \
|
2009-03-10 15:46:55 +01:00
|
|
|
src/output_init.c src/output_list.c \
|
|
|
|
$(ENCODER_SRC) \
|
2009-03-12 18:34:37 +01:00
|
|
|
src/mixer_api.c \
|
2009-03-14 11:36:50 +01:00
|
|
|
src/mixer_control.c \
|
2009-03-10 15:46:55 +01:00
|
|
|
$(MIXER_SRC) \
|
|
|
|
$(OUTPUT_SRC)
|
|
|
|
|
2009-04-21 22:46:41 +02:00
|
|
|
test_read_mixer_CPPFLAGS = $(AM_CPPFLAGS) \
|
|
|
|
$(OUTPUT_CFLAGS)
|
|
|
|
test_read_mixer_LDADD = $(MPD_LIBS) \
|
|
|
|
$(OUTPUT_LIBS) \
|
|
|
|
$(GLIB_LIBS)
|
|
|
|
test_read_mixer_SOURCES = test/read_mixer.c \
|
|
|
|
src/conf.c src/buffer2array.c src/utils.c src/log.c \
|
|
|
|
src/mixer_control.c src/mixer_api.c \
|
|
|
|
$(MIXER_SRC)
|
2009-02-28 17:04:37 +01:00
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Documentation
|
|
|
|
#
|
|
|
|
|
|
|
|
man_MANS = doc/mpd.1 doc/mpd.conf.5
|
2009-04-10 09:14:25 +02:00
|
|
|
doc_DATA = AUTHORS COPYING NEWS README UPGRADING doc/mpdconf.example
|
2009-02-23 10:04:51 +01:00
|
|
|
|
2009-06-02 21:09:45 +02:00
|
|
|
DOCBOOK_FILES = doc/protocol.xml doc/user.xml doc/developer.xml doc/sticker.xml
|
2009-04-30 11:43:19 +02:00
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
if ENABLE_DOCUMENTATION
|
|
|
|
protocoldir = $(docdir)/protocol
|
|
|
|
protocol_DATA = $(wildcard doc/protocol/*.html)
|
|
|
|
|
2009-03-12 17:06:48 +01:00
|
|
|
userdir = $(docdir)/user
|
|
|
|
user_DATA = $(wildcard doc/user/*.html)
|
|
|
|
|
2009-06-02 21:09:45 +02:00
|
|
|
developerdir = $(docdir)/developer
|
|
|
|
developer_DATA = $(wildcard doc/developer/*.html)
|
|
|
|
|
2009-03-01 01:26:04 +01:00
|
|
|
if HAVE_XMLTO
|
|
|
|
|
|
|
|
DOCBOOK_HTML = $(patsubst %.xml,%/index.html,$(DOCBOOK_FILES))
|
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
$(DOCBOOK_HTML): %/index.html: %.xml
|
2009-03-01 01:15:09 +01:00
|
|
|
$(XMLTO) -o $(@D) --stringparam chunker.output.encoding=utf-8 html $<
|
2009-02-23 10:04:51 +01:00
|
|
|
|
2009-03-01 01:26:04 +01:00
|
|
|
else
|
|
|
|
|
|
|
|
DOCBOOK_HTML =
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2009-04-26 20:02:53 +02:00
|
|
|
doc/api/html/index.html: doc/doxygen.conf
|
|
|
|
$(DOXYGEN) $<
|
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
all-local: $(DOCBOOK_HTML) doc/api/html/index.html
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
rm -rf $(patsubst %.xml,%,$(DOCBOOK_FILES))
|
|
|
|
rm -rf doc/api
|
|
|
|
|
|
|
|
install-data-local: doc/api/html/index.html
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(docdir)/api/html
|
|
|
|
$(INSTALL_DATA) -c -m 644 doc/api/html/*.html doc/api/html/*.css \
|
|
|
|
doc/api/html/*.png doc/api/html/*.gif \
|
|
|
|
$(DESTDIR)$(docdir)/api/html
|
2009-02-18 19:27:05 +01:00
|
|
|
|
2009-03-15 17:32:28 +01:00
|
|
|
upload: $(DOCBOOK_HTML) doc/api/html/index.html
|
|
|
|
rsync -vpruz --delete doc/ cirrus@www.musicpd.org:/var/www/musicpd.org/www/doc/ \
|
|
|
|
--chmod=Dug+rwx,Do+rx,Fug+rw,Fo+r \
|
|
|
|
--include=protocol --include=protocol/** \
|
|
|
|
--include=user --include=user/** \
|
2009-06-02 21:09:45 +02:00
|
|
|
--include=developer --include=developer/** \
|
2009-03-15 17:32:28 +01:00
|
|
|
--include=api --include=api/** \
|
|
|
|
--exclude=*
|
|
|
|
|
2009-02-18 19:27:05 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
#
|
|
|
|
# Distribution
|
|
|
|
#
|
2007-12-28 03:56:25 +01:00
|
|
|
|
2009-02-23 10:04:51 +01:00
|
|
|
EXTRA_DIST = $(doc_DATA) autogen.sh \
|
2009-04-29 11:41:19 +02:00
|
|
|
$(wildcard scripts/*.sh) \
|
2009-05-15 18:42:25 +02:00
|
|
|
$(man_MANS) $(DOCBOOK_FILES) doc/mpdconf.example doc/doxygen.conf
|