From owner-svn-ports-all@FreeBSD.ORG Sun Dec 29 13:56:55 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 61550C6E; Sun, 29 Dec 2013 13:56:55 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4C69C15F0; Sun, 29 Dec 2013 13:56:55 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBTDut1j053622; Sun, 29 Dec 2013 13:56:55 GMT (envelope-from crees@svn.freebsd.org) Received: (from crees@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBTDuto8053621; Sun, 29 Dec 2013 13:56:55 GMT (envelope-from crees@svn.freebsd.org) Message-Id: <201312291356.rBTDuto8053621@svn.freebsd.org> From: Chris Rees Date: Sun, 29 Dec 2013 13:56:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337986 - head/audio/musicpd X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Dec 2013 13:56:55 -0000 Author: crees Date: Sun Dec 29 13:56:54 2013 New Revision: 337986 URL: http://svnweb.freebsd.org/changeset/ports/337986 Log: Simplify and group up OPTIONS Submitted by: Zsolt Udvari Modified: head/audio/musicpd/Makefile Modified: head/audio/musicpd/Makefile ============================================================================== --- head/audio/musicpd/Makefile Sun Dec 29 13:55:50 2013 (r337985) +++ head/audio/musicpd/Makefile Sun Dec 29 13:56:54 2013 (r337986) @@ -11,35 +11,119 @@ COMMENT= Remote-controllable music daemo LICENSE= GPLv2 -LIB_DEPENDS+= libmad.so:${PORTSDIR}/audio/libmad \ - libcurl.so:${PORTSDIR}/ftp/curl - USES= gmake pkgconfig compiler:c++11-lib USE_XZ= yes GNU_CONFIGURE= yes USE_GNOME= glib20 USE_RC_SUBR= ${PORTNAME} -CONFIGURE_ARGS+=--disable-alsa +CONFIGURE_ARGS+=--disable-alsa --disable-systemd-daemon --disable-roar CFLAGS+= -I${PREFIX}/include CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -DOCSDIR?= ${PREFIX}/share/doc/musicpd PORTDOCS= AUTHORS README COPYING NEWS UPGRADING SUB_FILES= pkg-message -OPTIONS_DEFINE= ID3TAG IPV6 FLAC VORBIS WAV FFMPEG TREMOR AAC \ - MUSEPACK MIKMOD MODPLUG ARCHIVE MMS AO PULSEAUDIO \ - JACK SHOUTCAST SNDFILE LAME HTTPD SAMPLERATE SQLITE3 +OPTIONS_DEFINE= ID3TAG IPV6 ARCHIVE SAMPLERATE SQLITE3 \ + CDPARANOIA LAME MMS VORBISENC + OPTIONS_RADIO= ZEROCONF OPTIONS_RADIO_ZEROCONF= AVAHI MDNSRESPONDER -TREMOR_DESC= Tremor decoder (not with SHOUTCAST; use VORBIS) - -OPTIONS_DEFAULT=ID3TAG IPV6 FLAC VORBIS WAV FFMPEG SNDFILE +OPTIONS_MULTI= FILE_FORMAT +OPTIONS_MULTI_FILE_FORMAT= AAC ADPLUG FFMPEG FLAC FLUIDSYNTH \ + GME MAD MIKMOD MODPLUG MPG123 MUSEPACK \ + OPUS SIDPLAY2 SNDFILE TREMOR TWOLAME \ + VORBIS WAV WAVPACK WILDMIDI + +OPTIONS_GROUP= PLAYBACK +OPTIONS_GROUP_PLAYBACK= AO CURL HTTPD JACK OPENAL OSS PULSEAUDIO SHOUTCAST + +ADPLUG_DESC= AdPlug support +FLUIDSYNTH_DESC=FludSynth support (MIDI files) +GME_DESC= GME support (video game music files) LAME_DESC= Support for MP3 Icecast Streams +OPUS_DESC= Opus decoder +SIDPLAY2_DESC= Sidplay support (C64 mono and stereo files) +TREMOR_DESC= Tremor decoder (not with SHOUTCAST; use VORBIS) +TWOLAME_DESC= TwoLAME support (mp2) +VORBISENC_DESC= Ogg Vorbis encoder +WAVPACK_DESC= WavPack support +WILDMIDI_DESC= WildMIDI support (MIDI files) + +OPTIONS_DEFAULT=ID3TAG IPV6 MAD OSS FLAC VORBIS WAV FFMPEG SNDFILE + +AAC_CONFIGURE_ENABLE=aac +AAC_LIB_DEPENDS=libfaad.so:${PORTSDIR}/audio/faad +ADPLUG_CONFIGURE_ENABLE=adplug +ADPLUG_LIB_DEPENDS=libadplug.so:${PORTSDIR}/audio/libadplug +AO_CONFIGURE_ENABLE=ao +AO_LIB_DEPENDS=libao.so:${PORTSDIR}/audio/libao +CDPARANOIA_CONFIGURE_ENABLE=cdio-paranoia +CDPARANOIA_LIB_DEPENDS=libcdda_paranoia:${PORTSDIR}/audio/cdparanoia +CURL_CONFIGURE_ENABLE=curl +CURL_LIB_DEPENDS=libcurl.so:${PORTSDIR}/ftp/curl +FFMPEG_CONFIGURE_ENABLE=ffmpeg +FFMPEG_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \ + libavformat.so:${PORTSDIR}/multimedia/ffmpeg \ + libavutil.so:${PORTSDIR}/multimedia/ffmpeg +FLAC_CONFIGURE_ENABLE=flac +FLAC_LIB_DEPENDS=libFLAC.so:${PORTSDIR}/audio/flac +FLUIDSYNTH_CONFIGURE_ENABLE=fluidsynth +FLUIDSYNTH_LIB_DEPENDS=libfluidsynth.so:${PORTSDIR}/audio/fluidsynth +GME_CONFIGURE_ENABLE=gme +GME_LIB_DEPENDS=libgme.so:${PORTSDIR}/audio/libgme +HTTPD_CONFIGURE_ENABLE=httpd-output +ID3TAG_CONFIGURE_ENABLE=id3 +ID3_LIB_DEPENDS=libid3tag.so:${PORTSDIR}/audio/libid3tag +IPV6_CONFIGURE_ENABLE=ipv6 +JACK_CONFIGURE_ENABLE=jack +JACK_LIB_DEPENDS=libjack.so:${PORTSDIR}/audio/jack +LAME_CONFIGURE_ENABLE=lame-encoder +LAME_LIB_DEPENDS=libmp3lame.so:${PORTSDIR}/audio/lame +MAD_CONFIGURE_ENABLE=mad +MAD_LIB_DEPENDS=libmad.so:${PORTSDIR}/audio/libmad +MIKMOD_CONFIGURE_ENABLE=mikmod +MIKMOD_LIB_DEPENDS=libmikmod.so:${PORTSDIR}/audio/libmikmod +MMS_CONFIGURE_ENABLE=mms +MMS_LIB_DEPENDS=libmms.so:${PORTSDIR}/net/libmms +MODPLUG_CONFIGURE_ENABLE=modplug +MODPLUG_LIB_DEPENDS=libmodplug.so:${PORTSDIR}/audio/libmodplug +MPG123_CONFIGURE_ENABLE=mpg123 +MPG123_LIB_DEPENDS=libmpg123.so:${PORTSDIR}/audio/mpg123 +MUSEPACK_CONFIGURE_ENABLE=mpc +MUSEPACK_LIB_DEPENDS=libmpcdec.so:${PORTSDIR}/audio/musepack +OPENAL_CONFIGURE_ENABLE=openal +OPENAL_LIB_DEPENDS=libopenal.so:${PORTSDIR}/audio/openal +OPUS_CONFIGURE_ENABLE=opus +OPUS_LIB_DEPENDS=libopus.so:${PORTSDIR}/audio/opus +OSS_CONFIGURE_ENABLE=oss +PULSEAUDIO_CONFIGURE_ENABLE=pulse +PULSEAUDIO_LIB_DEPENDS=libpulse.so:${PORTSDIR}/audio/pulseaudio +SAMPLERATE_CONFIGURE_ENABLE=lsr +SAMPLERATE_LIB_DEPENDS=libsamplerate.so:${PORTSDIR}/audio/libsamplerate +SIDPLAY2_CONFIGURE_ENABLE=sidplay +SIDPLAY_LIB_DEPENDS=libsidplay2.so:${PORTSDIR}/audio/libsidplay2 +SNDFILE_CONFIGURE_ENABLE=sndfile +SNDFILE_LIB_DEPENDS=libsndfile.so:${PORTSDIR}/audio/libsndfile +SQLITE3_CONFIGURE_ENABLE=sqlite +SQLITE3_LIB_DEPENDS=libsqlite3.so:${PORTSDIR}/databases/sqlite3 +TREMOR_CONFIGURE_WITH=tremor +TREMOR_LIB_DEPENDS=libvorbisidec.so:${PORTSDIR}/audio/libtremor +TWOLAME_CONFIGURE_ENABLE=twolame-encoder +TWOLAME_LIB_DEPENDS=libtwolame.so:${PORTSDIR}/audio/twolame +VORBISENC_CONFIGURE_ENABLE=vorbis-encoder +VORBISENC_LIB_DEPENDS=libvorbisenc.so:${PORTSDIR}/audio/libvorbis +VORBIS_CONFIGURE_ENABLE=vorbis +VORBIS_LIB_DEPENDS=libvorbis.so:${PORTSDIR}/audio/libvorbis +WAV_CONFIGURE_ENABLE=audiofile +WAV_LIB_DEPENDS=libaudiofile.so:${PORTSDIR}/audio/libaudiofile +WAVPACK_CONFIGURE_ENABLE=wavpack +WAVPACK_LIB_DEPENDS=libwavpack.so:${PORTSDIR}/audio/wavpack +WILDMIDI_CONFIGURE_ENABLE=wildmidi +WILDMIDI_LIB_DEPENDS=libWildMidi.so:${PORTSDIR}/audio/wildmidi MPDDIR?= /var/mpd MPDUSER?= mpd @@ -70,101 +154,16 @@ IGNORE=${MSG} You also have musicpd.con .endif .endif -.if ${PORT_OPTIONS:MFLAC} -LIB_DEPENDS+= libFLAC.so:${PORTSDIR}/audio/flac -.else -CONFIGURE_ARGS+=--disable-flac -.endif - -.if ${PORT_OPTIONS:MVORBIS} -LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis -.else -CONFIGURE_ARGS+=--disable-vorbis -.endif - -.if ${PORT_OPTIONS:MTREMOR} -CONFIGURE_ARGS+=--with-tremor -LIB_DEPENDS+= libvorbisidec.so:${PORTSDIR}/audio/libtremor -.endif - -.if ${PORT_OPTIONS:MAAC} -LIB_DEPENDS+= libfaad.so:${PORTSDIR}/audio/faad -.else -CONFIGURE_ARGS+=--disable-aac -.endif - -.if ${PORT_OPTIONS:MLAME} -CONFIGURE_ARGS+=--enable-lame-encoder -LIB_DEPENDS+= libmp3lame.so:${PORTSDIR}/audio/lame -.else -CONFIGURE_ARGS+=--disable-lame-encoder -.endif - -.if ${PORT_OPTIONS:MHTTPD} -CONFIGURE_ARGS+=--enable-httpd-output -.else -CONFIGURE_ARGS+=--disable-httpd-output -.endif - -.if ${PORT_OPTIONS:MWAV} -LIB_DEPENDS+= libaudiofile.so:${PORTSDIR}/audio/libaudiofile -.else -CONFIGURE_ARGS+=--disable-audiofile -.endif - -.if ${PORT_OPTIONS:MMUSEPACK} -LIB_DEPENDS+= libmpcdec.so:${PORTSDIR}/audio/musepack -.else -CONFIGURE_ARGS+=--disable-mpc -.endif - -.if ${PORT_OPTIONS:MMIKMOD} -LIB_DEPENDS+= libmikmod.so:${PORTSDIR}/audio/libmikmod -CONFIGURE_ARGS+=--enable-mikmod -.else -CONFIGURE_ARGS+=--disable-mikmod -.endif - -.if ${PORT_OPTIONS:MMODPLUG} -LIB_DEPENDS+= libmodplug.so:${PORTSDIR}/audio/libmodplug -CONFIGURE_ARGS+=--enable-modplug -.else -CONFIGURE_ARGS+=--disable-modplug -.endif - .if ${PORT_OPTIONS:MARCHIVE} CONFIGURE_ARGS+=--enable-bzip2 \ - --enable-zip \ + --enable-zzip \ --enable-iso9660 LIB_DEPENDS+= libzzip.so:${PORTSDIR}/devel/zziplib \ libiso9660.so:${PORTSDIR}/sysutils/libcdio -.endif - -.if ${PORT_OPTIONS:MFFMPEG} -LIB_DEPENDS+= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \ - libavformat.so:${PORTSDIR}/multimedia/ffmpeg \ - libavutil.so:${PORTSDIR}/multimedia/ffmpeg -.else -CONFIGURE_ARGS+=--disable-ffmpeg -.endif - -.if ${PORT_OPTIONS:MMMS} -CONFIGURE_ARGS+=--enable-mms -LIB_DEPENDS+= libmms.so:${PORTSDIR}/net/libmms -.else -CONFIGURE_ARGS+=--disable-mms -.endif - -.if ${PORT_OPTIONS:MID3TAG} -LIB_DEPENDS+= libid3tag.so:${PORTSDIR}/audio/libid3tag -.else -CONFIGURE_ARGS+=--disable-id3 -.endif - -.if ${PORT_OPTIONS:MIPV6} -CONFIGURE_ARGS+=--enable-ipv6 .else -CONFIGURE_ARGS+=--disable-ipv6 +CONFIGURE_ARGS+=--disable-bzip2 \ + --disable-zzip \ + --disable-iso9660 .endif .if ${PORT_OPTIONS:MAVAHI} @@ -181,25 +180,6 @@ LIB_DEPENDS+= libdns_sd.so:${PORTSDIR}/n CONFIGURE_ARGS+=--with-zeroconf=no .endif -.if ${PORT_OPTIONS:MAO} -CONFIGURE_ARGS+=--enable-ao -LIB_DEPENDS+= libao.so:${PORTSDIR}/audio/libao -.else -CONFIGURE_ARGS+=--disable-ao -.endif - -.if ${PORT_OPTIONS:MPULSEAUDIO} -LIB_DEPENDS+= libpulse.so:${PORTSDIR}/audio/pulseaudio -.else -CONFIGURE_ARGS+=--disable-pulse -.endif - -.if ${PORT_OPTIONS:MJACK} -LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack -.else -CONFIGURE_ARGS+=--disable-jack -.endif - # libshout streaming support will be disabled by configure script when built # also with tremor since the latter does not support vorbis encoding .if ${PORT_OPTIONS:MSHOUTCAST} @@ -213,27 +193,6 @@ CONFIGURE_ARGS+=--enable-vorbis-encoder CONFIGURE_ARGS+=--disable-shout .endif -.if ${PORT_OPTIONS:MSNDFILE} -LIB_DEPENDS+= libsndfile.so:${PORTSDIR}/audio/libsndfile -CONFIGURE_ARGS+= --enable-sndfile -.else -CONFIGURE_ARGS+= --disable-sndfile -.endif - -.if ${PORT_OPTIONS:MSAMPLERATE} -LIB_DEPENDS+= libsamplerate.so:${PORTSDIR}/audio/libsamplerate -CONFIGURE_ARGS+=--enable-lsr -.else -CONFIGURE_ARGS+=--disable-lsr -.endif - -.if ${PORT_OPTIONS:MSQLITE3} -LIB_DEPENDS+= libsqlite3.so:${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' \