View | Details | Raw Unified | Return to bug 143078
Collapse All | Expand All

(-)ezstream/Makefile (-3 / +6 lines)
Lines 22-27 Link Here
22
USE_GNOME=	libxml2
22
USE_GNOME=	libxml2
23
USE_ICONV=	yes
23
USE_ICONV=	yes
24
USE_RC_SUBR=	${PORTNAME}
24
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
25
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
26
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
Lines 31-37 Link Here
31
		ezstream_reencode_mp3.xml ezstream_reencode_theora.xml \
32
		ezstream_reencode_mp3.xml ezstream_reencode_theora.xml \
32
		ezstream_reencode_vorbis.xml ezstream_stdin_vorbis.xml \
33
		ezstream_reencode_vorbis.xml ezstream_stdin_vorbis.xml \
33
		ezstream_vorbis.xml meta.sh play.sh
34
		ezstream_vorbis.xml meta.sh play.sh
34
PLIST_FILES=	bin/ezstream bin/ezstream-file.sh
35
PLIST_FILES=	bin/ezstream bin/ezstream-file.sh etc/ezstream/ezstream.xml '@dirrm etc/ezstream'
35
CPPFLAGS=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
36
CPPFLAGS=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
36
LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
37
LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
Lines 41-53 Link Here
41
.if defined(WITHOUT_TAGLIB)
42
.if defined(WITHOUT_TAGLIB)
42
CONFIGURE_ARGS+=	--without-taglib
43
CONFIGURE_ARGS+=	--without-taglib
43
.else
44
.else
44
LIB_DEPENDS+=	tag.1:${PORTSDIR}/audio/taglib
45
LIB_DEPENDS+=		tag.1:${PORTSDIR}/audio/taglib
45
CONFIGURE_ARGS+=	--with-taglib=${LOCALBASE}
46
CONFIGURE_ARGS+=	--with-taglib=${LOCALBASE}
46
.endif
47
.endif
47
post-patch:
48
post-patch:
48
	@${REINPLACE_CMD} -e '/^SUBDIRS =/s|examples||g ; \
49
	@${REINPLACE_CMD} -e '/^SUBDIRS =/s|examples||g ; \
49
		 s|: install-dist_docDATA|:|g' ${WRKSRC}/Makefile.in
50
		s|: install-dist_docDATA|:|g' ${WRKSRC}/Makefile.in
50
post-install:
51
post-install:
51
.if !defined(NOPORTDOCS)
52
.if !defined(NOPORTDOCS)
Lines 62-66 Link Here
62
	${INSTALL_DATA} ${WRKSRC}/examples/${file} ${EXAMPLESDIR}
63
	${INSTALL_DATA} ${WRKSRC}/examples/${file} ${EXAMPLESDIR}
63
.endfor
64
.endfor
64
.endif
65
.endif
66
	@${MKDIR} ${ETCDIR}
67
	@${INSTALL_DATA} ${WRKSRC}/examples/ezstream_vorbis.xml ${ETCDIR}/ezstream.xml
65
.include <bsd.port.post.mk>
68
.include <bsd.port.post.mk>
(-)ezstream/files/ezstream.in (+30 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
# PROVIDE: ezstream
7
# REQUIRE: DAEMON
8
# BEFORE:  login
9
# KEYWORD: shutdown
10
11
#
12
# Add the following lines to /etc/rc.conf to enable the ezstream daemon:
13
#
14
# ezstream_enable="YES"
15
# ezstream_flags="<set as needed>"
16
#
17
18
. %%RC_SUBR%%
19
20
name="ezstream"
21
rcvar=`set_rcvar`
22
23
# read configuration and set defaults
24
load_rc_config "$name"
25
: ${ezstream_enable="NO"}
26
: ${ezstream_flags="-c %%PREFIX%%/etc/${name}/${name}.xml"}
27
28
command="%%PREFIX%%/bin/${name}"
29
30
run_rc_command "$1"

Return to bug 143078