Date: Fri, 3 Jul 2015 17:21:27 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r391262 - in head/audio/darkice: . files Message-ID: <201507031721.t63HLRF7032226@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Fri Jul 3 17:21:26 2015 New Revision: 391262 URL: https://svnweb.freebsd.org/changeset/ports/391262 Log: - Switch MASTER_SITES to SF - Switch to OPTIONS helpers - Add LICENSE_FILE - Switch to @sample PR: 201171 Submitted by: tkato432@yahoo.com Modified: head/audio/darkice/Makefile head/audio/darkice/files/patch-configure.in head/audio/darkice/pkg-plist Modified: head/audio/darkice/Makefile ============================================================================== --- head/audio/darkice/Makefile Fri Jul 3 17:18:19 2015 (r391261) +++ head/audio/darkice/Makefile Fri Jul 3 17:21:26 2015 (r391262) @@ -3,21 +3,15 @@ PORTNAME= darkice PORTVERSION= 1.2 -PORTREVISION?= 2 +PORTREVISION?= 3 CATEGORIES= audio net -MASTER_SITES= GOOGLE_CODE +MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= IceCast, IceCast2, and ShoutCast live audio streamer -LICENSE= GPLv3 - -OPTIONS_DEFINE= JACK PULSEAUDIO -OPTIONS_MULTI= CODEC -OPTIONS_MULTI_CODEC= VORBIS OPUS LAME TWOLAME FAAC AACPLUS -OPTIONS_DEFAULT= VORBIS - -AACPLUS_DESC= AAC HEv2 and libsamplerate support +LICENSE= GPLv3 # or later +LICENSE_FILE= ${WRKSRC}/COPYING USES= autoreconf GNU_CONFIGURE= yes @@ -27,65 +21,38 @@ CONFIGURE_ARGS= --without-alsa SUB_FILES= pkg-message USE_RC_SUBR= ${PORTNAME} -.include <bsd.port.options.mk> +OPTIONS_DEFINE= JACK PULSEAUDIO +OPTIONS_MULTI= CODEC +OPTIONS_MULTI_CODEC= AACPLUS FAAC LAME OPUS TWOLAME VORBIS +OPTIONS_DEFAULT= VORBIS -.if ${PORT_OPTIONS:MJACK} -LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack -CONFIGURE_ARGS+= --with-jack-prefix=${LOCALBASE} -.else -CONFIGURE_ARGS+= --without-jack -.endif - -.if ${PORT_OPTIONS:MPULSEAUDIO} -LIB_DEPENDS+= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio -CONFIGURE_ARGS+= --with-pulseaudio-prefix=${LOCALBASE} -.else -CONFIGURE_ARGS+= --without-pulseaudio -.endif - -.if ${PORT_OPTIONS:MVORBIS} -LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis -CONFIGURE_ARGS+= --with-vorbis-prefix=${LOCALBASE} -.else -CONFIGURE_ARGS+= --without-vorbis -.endif - -.if ${PORT_OPTIONS:MOPUS} -LIB_DEPENDS+= libopus.so:${PORTSDIR}/audio/opus -CONFIGURE_ARGS+= --with-opus-prefix=${LOCALBASE} -.else -CONFIGURE_ARGS+= --without-opus -.endif - -.if ${PORT_OPTIONS:MLAME} -LIB_DEPENDS+= libmp3lame.so:${PORTSDIR}/audio/lame -CONFIGURE_ARGS+= --with-lame-prefix=${LOCALBASE} -.else -CONFIGURE_ARGS+= --without-lame -.endif - -.if ${PORT_OPTIONS:MTWOLAME} -LIB_DEPENDS+= libtwolame.so:${PORTSDIR}/audio/twolame -CONFIGURE_ARGS+= --with-twolame-prefix=${LOCALBASE} -.else -CONFIGURE_ARGS+= --without-twolame -.endif - -.if ${PORT_OPTIONS:MFAAC} -LIB_DEPENDS+= libfaac.so:${PORTSDIR}/audio/faac -CONFIGURE_ARGS+= --with-faac-prefix=${LOCALBASE} -.else -CONFIGURE_ARGS+= --without-faac -.endif - -.if ${PORT_OPTIONS:MAACPLUS} -LIB_DEPENDS+= libaacplus.so:${PORTSDIR}/audio/libaacplus \ - libsamplerate.so:${PORTSDIR}/audio/libsamplerate -CONFIGURE_ARGS+= --with-aacplus-prefix=${LOCALBASE} \ +AACPLUS_DESC= AAC HEv2 and libsamplerate support +AACPLUS_LIB_DEPENDS= libaacplus.so:${PORTSDIR}/audio/libaacplus \ + libsamplerate.so:${PORTSDIR}/audio/libsamplerate +AACPLUS_CONFIGURE_ON= --with-aacplus-prefix=${LOCALBASE} \ --with-samplerate-prefix=${LOCALBASE} -.else -CONFIGURE_ARGS+= --without-aacplus --without-samplerate -.endif +AACPLUS_CONFIGURE_OFF= --without-aacplus --without-samplerate +FAAC_LIB_DEPENDS= libfaac.so:${PORTSDIR}/audio/faac +FAAC_CONFIGURE_ON= --with-faac-prefix=${LOCALBASE} +FAAC_CONFIGURE_OFF= --without-faac +JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack +JACK_CONFIGURE_ON= --with-jack-prefix=${LOCALBASE} +JACK_CONFIGURE_OFF= --without-jack +LAME_LIB_DEPENDS= libmp3lame.so:${PORTSDIR}/audio/lame +LAME_CONFIGURE_ON= --with-lame-prefix=${LOCALBASE} +LAME_CONFIGURE_OFF= --without-lame +OPUS_LIB_DEPENDS= libopus.so:${PORTSDIR}/audio/opus +OPUS_CONFIGURE_ON= --with-opus-prefix=${LOCALBASE} +OPUS_CONFIGURE_OFF= --without-opus +PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio +PULSEAUDIO_CONFIGURE_ON= --with-pulseaudio-prefix=${LOCALBASE} +PULSEAUDIO_CONFIGURE_OFF= --without-pulseaudio +TWOLAME_LIB_DEPENDS= libtwolame.so:${PORTSDIR}/audio/twolame +TWOLAME_CONFIGURE_ON= --with-twolame-prefix=${LOCALBASE} +TWOLAME_CONFIGURE_OFF= --without-twolame +VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis +VORBIS_CONFIGURE_ON= --with-vorbis-prefix=${LOCALBASE} +VORBIS_CONFIGURE_OFF= --without-vorbis post-patch: @${REINPLACE_CMD} -e 's|-O2 -pedantic||g' ${WRKSRC}/src/Makefile.am @@ -93,7 +60,7 @@ post-patch: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.cfg \ - ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg.dist + ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg.sample ${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.cfg.5 ${STAGEDIR}${MAN5PREFIX}/man/man5 Modified: head/audio/darkice/files/patch-configure.in ============================================================================== --- head/audio/darkice/files/patch-configure.in Fri Jul 3 17:18:19 2015 (r391261) +++ head/audio/darkice/files/patch-configure.in Fri Jul 3 17:21:26 2015 (r391262) @@ -1,6 +1,6 @@ ---- configure.in.orig +--- configure.in.orig 2013-07-15 05:50:01 UTC +++ configure.in -@@ -260,10 +260,11 @@ +@@ -260,10 +260,11 @@ dnl make sure at least one of lame and v dnl----------------------------------------------------------------------------- if test "x${LAME_LDFLAGS}" = "x" \ -a "x${VORBIS_LDFLAGS}" = "x" \ Modified: head/audio/darkice/pkg-plist ============================================================================== --- head/audio/darkice/pkg-plist Fri Jul 3 17:18:19 2015 (r391261) +++ head/audio/darkice/pkg-plist Fri Jul 3 17:21:26 2015 (r391262) @@ -1,6 +1,4 @@ bin/darkice -@unexec if cmp -s %D/etc/darkice.cfg.dist %D/etc/darkice.cfg; then rm -f %D/etc/darkice.cfg; fi -etc/darkice.cfg.dist -@exec if [ ! -f %D/etc/darkice.cfg ] ; then cp -p %D/%F %B/darkice.cfg; fi +@sample etc/darkice.cfg.sample man/man1/darkice.1.gz man/man5/darkice.cfg.5.gz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507031721.t63HLRF7032226>