diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-07-04 01:21:26 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-07-04 01:21:26 +0800 |
commit | 836f22777ed5b453156e2dc49ae3f0aff503919e (patch) | |
tree | fc4d2a937033930a19d856294c57035656c1f61a /audio | |
parent | 0fafc42ecbc1d49ffeea0165ae0fb7d8af2f5b15 (diff) | |
download | freebsd-ports-gnome-836f22777ed5b453156e2dc49ae3f0aff503919e.tar.gz freebsd-ports-gnome-836f22777ed5b453156e2dc49ae3f0aff503919e.tar.zst freebsd-ports-gnome-836f22777ed5b453156e2dc49ae3f0aff503919e.zip |
- Switch MASTER_SITES to SF
- Switch to OPTIONS helpers
- Add LICENSE_FILE
- Switch to @sample
PR: 201171
Submitted by: tkato432@yahoo.com
Diffstat (limited to 'audio')
-rw-r--r-- | audio/darkice/Makefile | 103 | ||||
-rw-r--r-- | audio/darkice/files/patch-configure.in | 4 | ||||
-rw-r--r-- | audio/darkice/pkg-plist | 4 |
3 files changed, 38 insertions, 73 deletions
diff --git a/audio/darkice/Makefile b/audio/darkice/Makefile index a699e3b22c99..dc135aa348c2 100644 --- a/audio/darkice/Makefile +++ b/audio/darkice/Makefile @@ -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> - -.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 +OPTIONS_DEFINE= JACK PULSEAUDIO +OPTIONS_MULTI= CODEC +OPTIONS_MULTI_CODEC= AACPLUS FAAC LAME OPUS TWOLAME VORBIS +OPTIONS_DEFAULT= VORBIS -.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 diff --git a/audio/darkice/files/patch-configure.in b/audio/darkice/files/patch-configure.in index ea65ade6897e..3a9b3b3c3bb4 100644 --- a/audio/darkice/files/patch-configure.in +++ b/audio/darkice/files/patch-configure.in @@ -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" \ diff --git a/audio/darkice/pkg-plist b/audio/darkice/pkg-plist index 06d5946c972f..8d29b8032517 100644 --- a/audio/darkice/pkg-plist +++ b/audio/darkice/pkg-plist @@ -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 |