View | Details | Raw Unified | Return to bug 262185 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-14 / +17 lines)
Lines 2-54 Link Here
2
2
3
PORTNAME=	darkice
3
PORTNAME=	darkice
4
PORTVERSION=	1.4
4
PORTVERSION=	1.4
5
PORTREVISION=	1
5
PORTREVISION=	2
6
CATEGORIES=	audio net
6
CATEGORIES=	audio net
7
MASTER_SITES=	https://github.com/rafael2k/darkice/releases/download/v${PORTVERSION}/
7
MASTER_SITES=	https://github.com/rafael2k/darkice/releases/download/v${PORTVERSION}/
8
8
9
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	takefu@airport.fm
10
COMMENT=	IceCast, IceCast2, and ShoutCast live audio streamer
10
COMMENT=	IceCast, IceCast2, and ShoutCast live audio streamer
11
11
12
LICENSE=	GPLv3+
12
LICENSE=	GPLv3+
13
LICENSE_FILE=	${WRKSRC}/COPYING
13
LICENSE_FILE=	${WRKSRC}/COPYING
14
14
15
USES=		compiler:c++11-lang pkgconfig
15
USES=		pkgconfig
16
USE_RC_SUBR=	${PORTNAME}
16
USE_RC_SUBR=	${PORTNAME}
17
GNU_CONFIGURE=	yes
17
GNU_CONFIGURE=	yes
18
CONFIGURE_ARGS=	--without-alsa
18
CONFIGURE_ARGS=	--without-alsa
19
CONFIGURE_ENV=	ac_cv_prog_acx_pthread_config=no
19
CONFIGURE_ENV=	ac_cv_prog_acx_pthread_config=no
20
21
SUB_FILES=	pkg-message
20
SUB_FILES=	pkg-message
22
21
23
OPTIONS_DEFINE=		JACK PULSEAUDIO
22
OPTIONS_DEFINE=		JACK PULSEAUDIO
24
OPTIONS_DEFAULT=	VORBIS
23
OPTIONS_DEFAULT=	VORBIS
25
OPTIONS_MULTI=		CODEC
24
OPTIONS_MULTI=		CODEC
26
OPTIONS_MULTI_CODEC=	AACPLUS FAAC LAME OPUS TWOLAME VORBIS
25
OPTIONS_MULTI_CODEC=	FAAC LAME OPUS TWOLAME VORBIS
27
26
28
AACPLUS_DESC=		AAC HEv2 and libsamplerate support
29
AACPLUS_LIB_DEPENDS=	libaacplus.so:audio/libaacplus \
30
			libsamplerate.so:audio/libsamplerate
31
AACPLUS_CONFIGURE_ON=	--with-aacplus --with-samplerate
32
AACPLUS_CONFIGURE_OFF=	--without-aacplus --without-samplerate
33
FAAC_LIB_DEPENDS=	libfaac.so:audio/faac
27
FAAC_LIB_DEPENDS=	libfaac.so:audio/faac
34
FAAC_CONFIGURE_ON=	--with-faac-prefix=${LOCALBASE}
28
FAAC_CONFIGURE_ON=	--with-faac-prefix=${LOCALBASE}
35
FAAC_CONFIGURE_OFF=	--without-faac
29
FAAC_CONFIGURE_OFF=	--without-faac
36
JACK_LIB_DEPENDS=	libjack.so:audio/jack
30
JACK_LIB_DEPENDS=	libjack.so:audio/jack\
31
			libsamplerate.so:audio/libsamplerate
37
JACK_CONFIGURE_WITH=	jack
32
JACK_CONFIGURE_WITH=	jack
38
LAME_LIB_DEPENDS=	libmp3lame.so:audio/lame
33
LAME_LIB_DEPENDS=	libmp3lame.so:audio/lame
39
LAME_CONFIGURE_ON=	--with-lame-prefix=${LOCALBASE}
34
LAME_CONFIGURE_ON=	--with-lame-prefix=${LOCALBASE}
40
LAME_CONFIGURE_OFF=	--without-lame
35
LAME_CONFIGURE_OFF=	--without-lame
41
OPUS_LIB_DEPENDS=	libopus.so:audio/opus
36
OPUS_LIB_DEPENDS=	libopus.so:audio/opus\
37
			libogg.so:audio/libogg
42
OPUS_CONFIGURE_WITH=	opus
38
OPUS_CONFIGURE_WITH=	opus
43
PULSEAUDIO_LIB_DEPENDS=	libpulse-simple.so:audio/pulseaudio
39
PULSEAUDIO_LIB_DEPENDS=	libpulse-simple.so:audio/pulseaudio\
40
			libsamplerate.so:audio/libsamplerate
44
PULSEAUDIO_CONFIGURE_WITH=	pulseaudio
41
PULSEAUDIO_CONFIGURE_WITH=	pulseaudio
45
TWOLAME_LIB_DEPENDS=	libtwolame.so:audio/twolame
42
TWOLAME_LIB_DEPENDS=	libtwolame.so:audio/twolame
46
TWOLAME_CONFIGURE_WITH=	twolame
43
TWOLAME_CONFIGURE_WITH=	twolame
47
VORBIS_LIB_DEPENDS=	libvorbis.so:audio/libvorbis
44
VORBIS_LIB_DEPENDS=	libvorbis.so:audio/libvorbis\
45
			libogg.so:audio/libogg
48
VORBIS_CONFIGURE_WITH=	vorbis
46
VORBIS_CONFIGURE_WITH=	vorbis
49
47
48
SOURCE_URL=		man/darkice.1 man/darkice.cfg.5 src/IceCast2.cpp src/main.cpp
49
50
post-patch:
50
post-patch:
51
	@${REINPLACE_CMD} -e 's|-O2 -pedantic||g' ${WRKSRC}/src/Makefile.in
51
	@${REINPLACE_CMD} -e 's|-O2 -pedantic||g' ${WRKSRC}/src/Makefile.in
52
.for i in ${SOURCE_URL}
53
	@${REINPLACE_CMD} -e 's|http://code.google.com/p/darkice/|http://darkice.org/|' ${WRKSRC}/${i}
54
.endfor
52
55
53
do-install:
56
do-install:
54
	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
57
	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
(-)./files/darkice.in (-1 / +2 lines)
Lines 1-7 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
# PROVIDE: darkice
3
# PROVIDE: darkice
4
# REQUIRE: LOGIN
4
# REQUIRE: DAEMON
5
# BEFORE:  LOGIN
5
# KEYWORD: SHUTDOWN
6
# KEYWORD: SHUTDOWN
6
#
7
#
7
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
8
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
(-)./files/pkg-message.in (-9 / +3 lines)
Lines 8-23 Please edit it according to your needs. Link Here
8
8
9
********************************************************************
9
********************************************************************
10
10
11
The darkice will *not* be started automatically. To allow it
11
In order to enable darkice Server service at startup and start it please run:
12
to start, put this line in /etc/rc.conf:
12
# service darkice enable
13
# service darkice start
13
14
14
darkice_enable="YES"
15
16
Then, it will be started on the next boot. If this line is already
17
present, the client will be started now.  Otherwise, edit
18
/etc/rc.conf and execute this command:
19
20
    %%PREFIX%%/etc/rc.d/darkice start
21
EOM
15
EOM
22
}
16
}
23
]
17
]

Return to bug 262185