Install ices0 as ices0 (and thus resolve a long-unnoticed conflict with ices),

clarify comment and pkg-descr to make clear that ices0 is for streaming mp3s,
add an rc-script, optionalize most dependencies, do not depend on lame by
default in order to enable the build of a binary package.

While here, modify comment of ices as well to make perfectly clear that ices
is for vorbis streaming.

Based on a submission by: "Dave" <dmehler26@woh.rr.com>
This commit is contained in:
Michael Nottebrock 2006-06-12 09:18:27 +00:00
parent 1e9b84629b
commit ab55f8a2cb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=165178
7 changed files with 106 additions and 14 deletions

View File

@ -13,7 +13,7 @@ CATEGORIES= audio net
MASTER_SITES= http://svn.xiph.org/releases/ices/
MAINTAINER= lofi@freebsd.org
COMMENT= A streaming source client for icecast 2
COMMENT= A vorbis streaming source client for icecast 2
LIB_DEPENDS= shout.5:${PORTSDIR}/audio/libshout2 \
vorbis.3:${PORTSDIR}/audio/libvorbis \

View File

@ -7,28 +7,70 @@
PORTNAME= ices
PORTVERSION= 0.4
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= audio net
MASTER_SITES= http://svn.xiph.org/releases/ices/
MAINTAINER= lofi@freebsd.org
COMMENT= A streaming source client for icecast 2
COMMENT= An mp3 streaming source client for icecast 2
LIB_DEPENDS= FLAC.7:${PORTSDIR}/audio/flac \
faad:${PORTSDIR}/audio/faad \
mp3lame:${PORTSDIR}/audio/lame \
shout.5:${PORTSDIR}/audio/libshout2 \
vorbis.3:${PORTSDIR}/audio/libvorbis \
LIB_DEPENDS= shout.5:${PORTSDIR}/audio/libshout2 \
xml2.5:${PORTSDIR}/textproc/libxml2
OPTIONS= FLAC "Enable flac transcoding support" Off \
FAAD "Enable mpep4 transcoding support" Off \
VORBIS "Enable ogg/vorbis transcoding support" Off \
PYTHON "Enable Python scripting" On
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib"
USE_PERL5= yes
USE_PYTHON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
LATEST_LINK= ices0
USE_RC_SUBR= ices0.sh
SUB_FILES+= message message-bin
CONFIGURE_ARGS+=--program-suffix=0
MAN1= ices.1
.if !defined(PACKAGE_BUILDING)
PKGMESSAGE= ${WRKDIR}/message
.else
PKGMESSAGE= ${WRKDIR}/message-bin
.endif
.include <bsd.port.mk>
MAN1= ices0.1
.include <bsd.port.pre.mk>
.if !defined(WITH_FLAC)
CONFIGURE_ARGS+=--without-flac --without-lame
.else
LIB_DEPENDS+= FLAC.7:${PORTSDIR}/audio/flac \
mp3lame:${PORTSDIR}/audio/lame
.endif
.if !defined(WITH_FAAD)
CONFIGURE_ARGS+=--without-faad --without-lame
.else
LIB_DEPENDS+= faad:${PORTSDIR}/audio/faad \
mp3lame:${PORTSDIR}/audio/lame
.endif
.if defined(WITH_PYTHON)
BUILD_DEPENDS+= python:${PORTSDIR}/lang/python
RUN_DEPENDS+= python:${PORTSDIR}/lang/python
.else
CONFIGURE_ARGS+=--without-python
.endif
.if !defined(WITH_VORBIS)
CONFIGURE_ARGS+=--without-vorbis --without-lame
.else
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis \
mp3lame:${PORTSDIR}/audio/lame
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

View File

@ -0,0 +1,31 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: ices0
# REQUIRE: DAEMON
# BEFORE: login
# KEYWORD: FreeBSD shutdown
# Add the following line to /etc/rc.conf to enable `ices0':
#
#ices0_enable="YES"
#ices0_flags=""
#
. "/etc/rc.subr"
name="ices0"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/$name"
command_args="1>/dev/null 2>&1"
required_files="%%PREFIX%%/etc/ices.conf"
# read configuration and set defaults
load_rc_config "$name"
: ${ices0_enable="NO"}
: ${ices0_flags=""}
run_rc_command "$1"

View File

@ -0,0 +1,12 @@
To start ices at system boot, copy %%PREFIX%%/etc/ices.conf.dist to
%%PREFIX%%/etc/ices.conf, modify it to suit your environment and add:
ices0_enable="YES"
to /etc/rc.conf.
ATTENTION: Due to mp3 licensing restrictions, this binary package of
ices0 does not feature transcoding support. If you want
support for transcoding FLAC, mp4 and vorbis data to mp3
on-the-fly, you need to compile the audio/ices0 port.

View File

@ -0,0 +1,6 @@
To start ices at system boot, copy %%PREFIX%%/etc/ices.conf.dist to
%%PREFIX%%/etc/ices.conf, modify it to suit your environment and add:
ices0_enable="YES"
to /etc/rc.conf.

View File

@ -1,4 +1,5 @@
IceS is a streaming source client for icecast 2 servers. It provides flexible
and powerful static and live streaming capabilities for various stream formats.
IceS0 is an mp3 streaming source client for icecast 2 servers. It provides
flexible and powerful static and live streaming capabilities and can transcode
various audio formats to mp3 on-the-fly.
WWW: http://www.icecast.org/

View File

@ -1,4 +1,4 @@
bin/ices
bin/ices0
doc/ices/icesmanual.html
etc/ices.conf.dist
etc/modules/ices.pm.dist