2004-10-12 03:43:48 +02:00
|
|
|
# New ports collection makefile for: ices
|
|
|
|
# Date created: 11 Nov 2002
|
|
|
|
# Whom: Michael Nottebrock <michaelnottebrock@gmx.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ices
|
|
|
|
PORTVERSION= 0.4
|
2010-06-06 22:44:03 +02:00
|
|
|
PORTREVISION= 9
|
2004-10-12 03:43:48 +02:00
|
|
|
CATEGORIES= audio net
|
|
|
|
MASTER_SITES= http://svn.xiph.org/releases/ices/
|
|
|
|
|
2010-09-02 23:17:34 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-06-12 11:18:27 +02:00
|
|
|
COMMENT= An mp3 streaming source client for icecast 2
|
2004-10-12 03:43:48 +02:00
|
|
|
|
2006-06-12 11:18:27 +02:00
|
|
|
LIB_DEPENDS= shout.5:${PORTSDIR}/audio/libshout2 \
|
2004-10-12 03:43:48 +02:00
|
|
|
xml2.5:${PORTSDIR}/textproc/libxml2
|
|
|
|
|
2006-06-12 11:18:27 +02:00
|
|
|
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
|
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib
|
2004-10-12 03:43:48 +02:00
|
|
|
USE_PERL5= yes
|
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-10-12 03:43:48 +02:00
|
|
|
LATEST_LINK= ices0
|
2006-06-12 11:18:27 +02:00
|
|
|
USE_RC_SUBR= ices0.sh
|
|
|
|
SUB_FILES+= message message-bin
|
|
|
|
CONFIGURE_ARGS+=--program-suffix=0
|
|
|
|
|
|
|
|
.if !defined(PACKAGE_BUILDING)
|
|
|
|
PKGMESSAGE= ${WRKDIR}/message
|
|
|
|
.else
|
|
|
|
PKGMESSAGE= ${WRKDIR}/message-bin
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAN1= ices0.1
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITH_FLAC)
|
2006-07-04 12:21:19 +02:00
|
|
|
CONFIGURE_ARGS+=--without-flac
|
2006-06-12 11:18:27 +02:00
|
|
|
.else
|
2008-04-07 22:37:23 +02:00
|
|
|
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac \
|
2006-06-12 11:18:27 +02:00
|
|
|
mp3lame:${PORTSDIR}/audio/lame
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_FAAD)
|
2006-07-04 12:21:19 +02:00
|
|
|
CONFIGURE_ARGS+=--without-faad
|
2006-06-12 11:18:27 +02:00
|
|
|
.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)
|
2006-07-04 12:21:19 +02:00
|
|
|
CONFIGURE_ARGS+=--without-vorbis
|
2006-06-12 11:18:27 +02:00
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis \
|
|
|
|
mp3lame:${PORTSDIR}/audio/lame
|
|
|
|
.endif
|
2004-10-12 03:43:48 +02:00
|
|
|
|
2006-06-12 11:18:27 +02:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2004-10-12 03:43:48 +02:00
|
|
|
|
2006-06-12 11:18:27 +02:00
|
|
|
.include <bsd.port.post.mk>
|