From 22ecc41fd727245ab810b94acfd1562e809ce2e3 Mon Sep 17 00:00:00 2001 From: Chris Rees Date: Wed, 26 Jun 2013 21:14:56 +0000 Subject: [PATCH] Add SQLITE3 option --- audio/musicpd/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile index 874f9587a36e..57e2a574aba3 100644 --- a/audio/musicpd/Makefile +++ b/audio/musicpd/Makefile @@ -37,11 +37,11 @@ SUB_FILES= pkg-message OPTIONS_DEFINE= ID3TAG IPV6 FLAC VORBIS WAV FFMPEG TREMOR AAC \ MUSEPACK MIKMOD MODPLUG ARCHIVE MMS LASTFM AO PULSEAUDIO \ - JACK SHOUTCAST SNDFILE LAME HTTPD SAMPLERATE CUE + JACK SHOUTCAST SNDFILE LAME HTTPD SAMPLERATE CUE SQLITE3 OPTIONS_RADIO= ZEROCONF OPTIONS_RADIO_ZEROCONF= AVAHI MDNSRESPONDER -OPTIONS_DEFAULT=ID3TAG IPV6 FLAC VORBIS WAV FFMPEG SNDFILE +OPTIONS_DEFAULT=ID3TAG IPV6 FLAC VORBIS WAV FFMPEG SNDFILE LAME_DESC= Support for MP3 Icecast Streams MPDDIR?= /var/mpd @@ -242,6 +242,13 @@ LIB_DEPENDS+= cue:${PORTSDIR}/textproc/libcue CONFIGURE_ARGS+=--disable-cue .endif +.if ${PORT_OPTIONS:MSQLITE3} +LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3 +CONFIGURE_ARGS+=--enable-sqlite +.else +CONFIGURE_ARGS+=--disable-sqlite +.endif + post-patch: # Replace ~/ with MPDDIR and make musicpd run as mpd by default @${REINPLACE_CMD} -e 's,^#\([^"]*"\)~/,\1${MPDDIR}/,g' \