1 # Created by: Frank Laszlo <laszlof@vonostingroup.com>
8 MASTER_SITES= http://downloads.xiph.org/releases/ezstream/ \
9 http://svn.xiph.org/releases/ezstream/
11 MAINTAINER= ayu@commun.jp
12 COMMENT= Command line utility for streaming to icecast servers
14 LIB_DEPENDS= libshout.so:audio/libshout \
15 libvorbis.so:audio/libvorbis
17 OPTIONS_DEFINE= TAGLIB DOCS EXAMPLES
18 OPTIONS_DEFAULT= TAGLIB
20 TAGLIB_DESC= TagLib support
24 USE_RC_SUBR= ${PORTNAME}
28 PORTEXAMPLES= ezstream_metadata.xml ezstream_mp3.xml \
29 ezstream_reencode_mp3.xml ezstream_reencode_theora.xml \
30 ezstream_reencode_vorbis.xml ezstream_stdin_vorbis.xml \
31 ezstream_vorbis.xml meta.sh play.sh
32 PLIST_FILES= bin/ezstream bin/ezstream-file.sh etc/ezstream/ezstream.xml \
33 man/man1/ezstream-file.sh.1.gz man/man1/ezstream.1.gz
35 CPPFLAGS+= -I${LOCALBASE}/include
36 LDFLAGS+= -lpthread -L${LOCALBASE}/lib
38 TAGLIB_CONFIGURE_OFF= --without-taglib
39 TAGLIB_LIB_DEPENDS= libtag.so:audio/taglib
40 TAGLIB_CONFIGURE_ON= --with-taglib=${LOCALBASE}
42 .include <bsd.port.options.mk>
46 @${REINPLACE_CMD} -e '/^SUBDIRS =/s|examples||g ; \
47 s|: install-dist_docDATA|:|g' ${WRKSRC}/Makefile.in
50 @${MKDIR} ${STAGEDIR}${DOCSDIR}/
51 .for file in ${PORTDOCS}
52 ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}/
54 @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
55 .for f in ${PORTEXAMPLES}
56 ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR}/
58 @${MKDIR} ${STAGEDIR}${ETCDIR}/
59 ${INSTALL_DATA} ${WRKSRC}/examples/ezstream_vorbis.xml ${STAGEDIR}${ETCDIR}/ezstream.xml
61 .include <bsd.port.mk>