2005-12-15 20:22:41 +01:00
|
|
|
# New ports collection makefile for: ezstream
|
|
|
|
# Date created: 27 Nov 2004
|
|
|
|
# Whom: Frank Laszlo <laszlof@vonostingroup.com>
|
2004-10-16 02:13:17 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ezstream
|
2009-09-13 02:14:23 +02:00
|
|
|
PORTVERSION= 0.5.6
|
2010-06-06 22:44:03 +02:00
|
|
|
PORTREVISION= 2
|
2004-10-16 02:13:17 +02:00
|
|
|
CATEGORIES= audio
|
2009-09-13 02:14:23 +02:00
|
|
|
MASTER_SITES= http://downloads.xiph.org/releases/ezstream/ \
|
|
|
|
http://svn.xiph.org/releases/ezstream/
|
2004-10-16 02:13:17 +02:00
|
|
|
|
2009-09-13 02:14:23 +02:00
|
|
|
MAINTAINER= ayu@commun.jp
|
2004-10-16 02:13:17 +02:00
|
|
|
COMMENT= A command line utility for streaming to icecast servers
|
|
|
|
|
2006-01-08 22:58:20 +01:00
|
|
|
LIB_DEPENDS= shout.5:${PORTSDIR}/audio/libshout2 \
|
2009-01-14 17:00:26 +01:00
|
|
|
vorbis.4:${PORTSDIR}/audio/libvorbis
|
2004-10-16 02:13:17 +02:00
|
|
|
|
2009-01-14 17:00:26 +01:00
|
|
|
OPTIONS= TAGLIB "TagLib support" on
|
|
|
|
|
|
|
|
USE_GNOME= libxml2
|
|
|
|
USE_ICONV= yes
|
2010-02-04 04:14:15 +01:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
2008-08-27 17:20:08 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2004-10-16 03:57:10 +02:00
|
|
|
|
2009-09-13 02:14:23 +02:00
|
|
|
MAN1= ezstream.1 ezstream-file.sh.1
|
2009-01-14 17:00:26 +01:00
|
|
|
PORTDOCS= NEWS README
|
|
|
|
PORTEXAMPLES= ezstream_metadata.xml ezstream_mp3.xml \
|
|
|
|
ezstream_reencode_mp3.xml ezstream_reencode_theora.xml \
|
|
|
|
ezstream_reencode_vorbis.xml ezstream_stdin_vorbis.xml \
|
|
|
|
ezstream_vorbis.xml meta.sh play.sh
|
2010-02-04 04:14:15 +01:00
|
|
|
PLIST_FILES= bin/ezstream bin/ezstream-file.sh etc/ezstream/ezstream.xml '@dirrm etc/ezstream'
|
2005-12-15 20:22:41 +01:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2005-12-15 20:22:41 +01:00
|
|
|
|
2009-01-14 17:00:26 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2005-12-15 20:22:41 +01:00
|
|
|
|
2009-01-14 17:00:26 +01:00
|
|
|
.if defined(WITHOUT_TAGLIB)
|
|
|
|
CONFIGURE_ARGS+= --without-taglib
|
|
|
|
.else
|
2010-02-04 04:14:15 +01:00
|
|
|
LIB_DEPENDS+= tag.1:${PORTSDIR}/audio/taglib
|
2009-01-14 17:00:26 +01:00
|
|
|
CONFIGURE_ARGS+= --with-taglib=${LOCALBASE}
|
|
|
|
.endif
|
2008-08-27 17:20:08 +02:00
|
|
|
|
|
|
|
post-patch:
|
2009-01-14 17:00:26 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS =/s|examples||g ; \
|
2010-02-04 04:14:15 +01:00
|
|
|
s|: install-dist_docDATA|:|g' ${WRKSRC}/Makefile.in
|
2008-08-27 17:20:08 +02:00
|
|
|
|
2005-12-15 20:22:41 +01:00
|
|
|
post-install:
|
2009-01-14 17:00:26 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2010-02-04 04:14:15 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}/
|
2009-01-14 17:00:26 +01:00
|
|
|
.for file in ${PORTDOCS}
|
2010-02-04 04:14:15 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}/
|
2009-01-14 17:00:26 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2010-02-04 04:14:15 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}/
|
|
|
|
.for f in ${PORTEXAMPLES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}/
|
2005-12-15 20:22:41 +01:00
|
|
|
.endfor
|
2004-10-16 02:13:17 +02:00
|
|
|
.endif
|
2010-02-04 04:14:15 +01:00
|
|
|
@${MKDIR} ${ETCDIR}/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/ezstream_vorbis.xml ${ETCDIR}/ezstream.xml
|
2004-10-16 02:13:17 +02:00
|
|
|
|
2009-01-14 17:00:26 +01:00
|
|
|
.include <bsd.port.post.mk>
|