pkgsrc/audio/musicpd/options.mk

191 lines
4.7 KiB
Makefile
Raw Normal View History

# $NetBSD: options.mk,v 1.19 2012/06/12 15:45:54 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.musicpd
PKG_SUPPORTED_OPTIONS= audiofile bzip2 curl faad ffmpeg flac fluidsynth id3 inet6 libao lame jack libmms libwildmidi mikmod modplug musepack musicpd-lastfm ogg shout sqlite3 wavpack zziplib
PKG_SUGGESTED_OPTIONS= audiofile curl faad flac id3 inet6 libao musepack ogg
PKG_OPTIONS_LEGACY_OPTS= libmikmod:mikmod
PKG_OPTIONS_LEGACY_OPTS= aac:faad
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Maudiofile)
. include "../../audio/libaudiofile/buildlink3.mk"
CONFIGURE_ARGS+= --enable-audiofile
.else
CONFIGURE_ARGS+= --disable-audiofile
.endif
2011-11-30 13:01:58 +01:00
.if !empty(PKG_OPTIONS:Mbzip2)
. include "../../archivers/bzip2/buildlink3.mk"
CONFIGURE_ARGS+= --enable-bzip2
.else
CONFIGURE_ARGS+= --disable-bzip2
.endif
.if !empty(PKG_OPTIONS:Mcurl)
. include "../../www/curl/buildlink3.mk"
CONFIGURE_ARGS+= --enable-curl
.else
CONFIGURE_ARGS+= --disable-curl
.endif
2011-11-30 13:01:58 +01:00
.if !empty(PKG_OPTIONS:Mfaad)
. include "../../audio/faad2/buildlink3.mk"
CONFIGURE_ARGS+= --with-faad=${BUILDLINK_PREFIX.faad2}
.else
CONFIGURE_ARGS+= --disable-aac
.endif
.if !empty(PKG_OPTIONS:Mffmpeg)
. include "../../multimedia/ffmpeg/buildlink3.mk"
CONFIGURE_ARGS+= --enable-ffmpeg
.else
CONFIGURE_ARGS+= --disable-ffmpeg
.endif
.if !empty(PKG_OPTIONS:Mflac)
. include "../../audio/flac/buildlink3.mk"
# XXX whole album flac files can appearently be parsed without libcue,
# so I've yet to find out what libcue is good for
#. include "../../audio/libcue/buildlink3.mk"
CONFIGURE_ARGS+= --enable-flac
.else
CONFIGURE_ARGS+= --disable-flac
.endif
2011-11-30 13:01:58 +01:00
.if !empty(PKG_OPTIONS:Mfluidsynth)
. include "../../audio/fluidsynth/buildlink3.mk"
CONFIGURE_ARGS+= --enable-fluidsynth
.else
CONFIGURE_ARGS+= --disable-fluidsynth
.endif
# needs to be imported from wip first
#.if !empty(PKG_OPTIONS:Mgme)
#. include "../../wip/libgme/buildlink3.mk"
#CONFIGURE_ARGS+= --enable-gme
#.else
#CONFIGURE_ARGS+= --disable-gme
#.endif
.if !empty(PKG_OPTIONS:Mid3)
. include "../../audio/libid3tag/buildlink3.mk"
CONFIGURE_ARGS+= --enable-id3
.else
CONFIGURE_ARGS+= --disable-id3
.endif
2011-11-30 13:01:58 +01:00
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
2011-11-30 13:01:58 +01:00
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if !empty(PKG_OPTIONS:Mjack)
. include "../../audio/jack/buildlink3.mk"
CONFIGURE_ARGS+= --enable-jack
.else
CONFIGURE_ARGS+= --disable-jack
.endif
2011-11-30 13:01:58 +01:00
.if !empty(PKG_OPTIONS:Mlame)
. include "../../audio/lame/buildlink3.mk"
CONFIGURE_ARGS+= --enable-lame-encoder
.else
CONFIGURE_ARGS+= --disable-lame-encoder
.endif
.if !empty(PKG_OPTIONS:Mlibao)
. include "../../audio/libao/buildlink3.mk"
CONFIGURE_ARGS+= --enable-ao
.else
CONFIGURE_ARGS+= --disable-ao
.endif
.if !empty(PKG_OPTIONS:Mlibmms)
. include "../../net/libmms/buildlink3.mk"
CONFIGURE_ARGS+= --enable-mms
2011-11-30 13:01:58 +01:00
.else
CONFIGURE_ARGS+= --disable-mms
.endif
.if !empty(PKG_OPTIONS:Mlibwildmidi)
. include "../../audio/libwildmidi/buildlink3.mk"
CONFIGURE_ARGS+= --enable-wildmidi
.else
CONFIGURE_ARGS+= --disable-wildmidi
2011-11-30 13:01:58 +01:00
.endif
.if !empty(PKG_OPTIONS:Mmikmod)
. include "../../audio/libmikmod/buildlink3.mk"
CONFIGURE_ARGS+= --enable-mikmod
.else
CONFIGURE_ARGS+= --disable-mikmod
.endif
2011-11-30 13:01:58 +01:00
.if !empty(PKG_OPTIONS:Mmodplug)
. include "../../audio/libmodplug/buildlink3.mk"
CONFIGURE_ARGS+= --enable-modplug
.else
CONFIGURE_ARGS+= --disable-modplug
.endif
.if !empty(PKG_OPTIONS:Mmusepack)
. include "../../audio/libmpcdec/buildlink3.mk"
CONFIGURE_ENV+= mpcdec_prefix=${BUILDLINK_PREFIX.libmpcdec}
CONFIGURE_ARGS+= --enable-mpc
.else
CONFIGURE_ARGS+= --disable-mpc
.endif
.if !empty(PKG_OPTIONS:Mmusicpd-lastfm)
CONFIGURE_ARGS+= --enable-lastfm
.else
CONFIGURE_ARGS+= --disable-lastfm
.endif
.if !empty(PKG_OPTIONS:Mogg)
. include "../../audio/libvorbis/buildlink3.mk"
CONFIGURE_ARGS+= --enable-vorbis
.else
CONFIGURE_ARGS+= --disable-vorbis
.endif
.if !empty(PKG_OPTIONS:Mshout)
. include "../../audio/libshout/buildlink3.mk"
. include "../../audio/lame/buildlink3.mk"
CONFIGURE_ARGS+= --enable-shout
.else
CONFIGURE_ARGS+= --disable-shout
.endif
2011-11-30 13:01:58 +01:00
# needs libresid-builder or libsidutils, both not packaged yet
#.if !empty(PKG_OPTIONS:Msidplay)
#. include "../../audio/libsidplay2/buildlink3.mk"
#CONFIGURE_ARGS+= --enable-sidplay
#.else
#CONFIGURE_ARGS+= --disable-sidplay
#.endif
.if !empty(PKG_OPTIONS:Msqlite3)
. include "../../databases/sqlite3/buildlink3.mk"
CONFIGURE_ARGS+= --enable-sqlite
Update to 0.16, add libsidplay option. ver 0.16 (2010/12/11) * protocol: - send song modification time to client - added "update" idle event - removed the deprecated "volume" command - added the "findadd" command - range support for "delete" - "previous" really plays the previous song - "addid" with negative position is deprecated - "load" supports remote playlists (extm3u, pls, asx, xspf, lastfm://) - allow changing replay gain mode on-the-fly - omitting the range end is possible - "update" checks if the path is malformed * archive: - iso: renamed plugin to "iso9660" - zip: renamed plugin to "zzip" * input: - lastfm: obsolete plugin removed - ffmpeg: new input plugin using libavformat's "avio" library * tags: - added tags "ArtistSort", "AlbumArtistSort" - id3: revised "performer" tag support - id3: support multiple values - ape: MusicBrainz tags - ape: support multiple values * decoders: - don't try a plugin twice (MIME type & suffix) - don't fall back to "mad" unless no plugin matches - ffmpeg: support multiple tags - ffmpeg: convert metadata to generic format - ffmpeg: implement the libavutil log callback - sndfile: new decoder plugin based on libsndfile - flac: moved CUE sheet support to a playlist plugin - flac: support streams without STREAMINFO block - mikmod: sample rate is configurable - mpg123: new decoder plugin based on libmpg123 - sidplay: support sub-tunes - sidplay: implemented songlength database - sidplay: support seeking - sidplay: play monaural SID tunes in mono - sidplay: play mus, str, prg, x00 files - wavpack: activate 32 bit support - wavpack: allow more than 2 channels - mp4ff: rename plugin "mp4" to "mp4ff" * encoders: - twolame: new encoder plugin based on libtwolame - flac: new encoder plugin based on libFLAC - wave: new encoder plugin for PCM WAV format * output: - recorder: new output plugin for recording radio streams - alsa: don't recover on CANCEL - alsa: fill period buffer with silence before draining - openal: new output plugin - pulse: announce "media.role=music" - pulse: renamed context to "Music Player Daemon" - pulse: connect to server on MPD startup, implement pause - jack: require libjack 0.100 - jack: don't disconnect during pause - jack: connect to server on MPD startup - jack: added options "client_name", "server_name" - jack: clear ring buffers before activating - jack: renamed option "ports" to "destination_ports" - jack: support more than two audio channels - httpd: bind port when output is enabled - httpd: added name/genre/website configuration - httpd: implement "pause" - httpd: bind_to_address support (including IPv6) - oss: 24 bit support via OSS4 - win32: new output plugin for Windows Wave - shout, httpd: more responsive to control commands - wildcards allowed in audio_format configuration - consistently lock audio output objects * player: - drain audio outputs at the end of the playlist * mixers: - removed support for legacy mixer configuration - reimplemented software volume as mixer+filter plugin - per-device software/hardware mixer setting * commands: - added new "status" line with more precise "elapsed time" * update: - automatically update the database with Linux inotify - support .mpdignore files in the music directory - sort songs by album name first, then disc/track number - rescan after metadata_to_use change * normalize: upgraded to AudioCompress 2.0 - automatically convert to 16 bit samples * replay gain: - reimplemented as a filter plugin - fall back to track gain if album gain is unavailable - optionally use hardware mixer to apply replay gain - added mode "auto" - parse replay gain from APE tags * log unused/unknown block parameters * removed the deprecated "error_file" option * save state when stopped * renamed option "--stdout" to "--stderr" * removed options --create-db and --no-create-db * state_file: save only if something has changed * database: eliminated maximum line length * log: redirect stdout/stderr to /dev/null if syslog is used * set the close-on-exec flag on all file descriptors * pcm_volume, pcm_mix: implemented 32 bit support * support packed 24 bit samples * CUE sheet support * support for MixRamp tags * obey $(sysconfdir) for default mpd.conf location * build with large file support by default * added test suite ("make check") * require GLib 2.12 * added libwrap support * make single mode 'sticky'
2011-02-27 11:42:13 +01:00
.else
2011-11-30 13:01:58 +01:00
CONFIGURE_ARGS+= --disable-sqlite
Update to 0.16, add libsidplay option. ver 0.16 (2010/12/11) * protocol: - send song modification time to client - added "update" idle event - removed the deprecated "volume" command - added the "findadd" command - range support for "delete" - "previous" really plays the previous song - "addid" with negative position is deprecated - "load" supports remote playlists (extm3u, pls, asx, xspf, lastfm://) - allow changing replay gain mode on-the-fly - omitting the range end is possible - "update" checks if the path is malformed * archive: - iso: renamed plugin to "iso9660" - zip: renamed plugin to "zzip" * input: - lastfm: obsolete plugin removed - ffmpeg: new input plugin using libavformat's "avio" library * tags: - added tags "ArtistSort", "AlbumArtistSort" - id3: revised "performer" tag support - id3: support multiple values - ape: MusicBrainz tags - ape: support multiple values * decoders: - don't try a plugin twice (MIME type & suffix) - don't fall back to "mad" unless no plugin matches - ffmpeg: support multiple tags - ffmpeg: convert metadata to generic format - ffmpeg: implement the libavutil log callback - sndfile: new decoder plugin based on libsndfile - flac: moved CUE sheet support to a playlist plugin - flac: support streams without STREAMINFO block - mikmod: sample rate is configurable - mpg123: new decoder plugin based on libmpg123 - sidplay: support sub-tunes - sidplay: implemented songlength database - sidplay: support seeking - sidplay: play monaural SID tunes in mono - sidplay: play mus, str, prg, x00 files - wavpack: activate 32 bit support - wavpack: allow more than 2 channels - mp4ff: rename plugin "mp4" to "mp4ff" * encoders: - twolame: new encoder plugin based on libtwolame - flac: new encoder plugin based on libFLAC - wave: new encoder plugin for PCM WAV format * output: - recorder: new output plugin for recording radio streams - alsa: don't recover on CANCEL - alsa: fill period buffer with silence before draining - openal: new output plugin - pulse: announce "media.role=music" - pulse: renamed context to "Music Player Daemon" - pulse: connect to server on MPD startup, implement pause - jack: require libjack 0.100 - jack: don't disconnect during pause - jack: connect to server on MPD startup - jack: added options "client_name", "server_name" - jack: clear ring buffers before activating - jack: renamed option "ports" to "destination_ports" - jack: support more than two audio channels - httpd: bind port when output is enabled - httpd: added name/genre/website configuration - httpd: implement "pause" - httpd: bind_to_address support (including IPv6) - oss: 24 bit support via OSS4 - win32: new output plugin for Windows Wave - shout, httpd: more responsive to control commands - wildcards allowed in audio_format configuration - consistently lock audio output objects * player: - drain audio outputs at the end of the playlist * mixers: - removed support for legacy mixer configuration - reimplemented software volume as mixer+filter plugin - per-device software/hardware mixer setting * commands: - added new "status" line with more precise "elapsed time" * update: - automatically update the database with Linux inotify - support .mpdignore files in the music directory - sort songs by album name first, then disc/track number - rescan after metadata_to_use change * normalize: upgraded to AudioCompress 2.0 - automatically convert to 16 bit samples * replay gain: - reimplemented as a filter plugin - fall back to track gain if album gain is unavailable - optionally use hardware mixer to apply replay gain - added mode "auto" - parse replay gain from APE tags * log unused/unknown block parameters * removed the deprecated "error_file" option * save state when stopped * renamed option "--stdout" to "--stderr" * removed options --create-db and --no-create-db * state_file: save only if something has changed * database: eliminated maximum line length * log: redirect stdout/stderr to /dev/null if syslog is used * set the close-on-exec flag on all file descriptors * pcm_volume, pcm_mix: implemented 32 bit support * support packed 24 bit samples * CUE sheet support * support for MixRamp tags * obey $(sysconfdir) for default mpd.conf location * build with large file support by default * added test suite ("make check") * require GLib 2.12 * added libwrap support * make single mode 'sticky'
2011-02-27 11:42:13 +01:00
.endif
2011-11-30 13:01:58 +01:00
.if !empty(PKG_OPTIONS:Mwavpack)
. include "../../audio/wavpack/buildlink3.mk"
CONFIGURE_ARGS+= --enable-wavpack
.else
2011-11-30 13:01:58 +01:00
CONFIGURE_ARGS+= --disable-wavpack
.endif
.if !empty(PKG_OPTIONS:Mzziplib)
. include "../../archivers/zziplib/buildlink3.mk"
CONFIGURE_ARGS+= --enable-zzip
.else
CONFIGURE_ARGS+= --disable-zzip
.endif