Prune audio/clementine-player
[dports.git] / audio / ezstream / Makefile
1 # Created by: Frank Laszlo <laszlof@vonostingroup.com>
2 # $FreeBSD$
3
4 PORTNAME=       ezstream
5 PORTVERSION=    0.5.6
6 PORTREVISION=   5
7 CATEGORIES=     audio
8 MASTER_SITES=   http://downloads.xiph.org/releases/ezstream/ \
9                 http://svn.xiph.org/releases/ezstream/
10
11 MAINTAINER=     ayu@commun.jp
12 COMMENT=        Command line utility for streaming to icecast servers
13
14 LIB_DEPENDS=    libshout.so:audio/libshout \
15                 libvorbis.so:audio/libvorbis
16
17 OPTIONS_DEFINE= TAGLIB DOCS EXAMPLES
18 OPTIONS_DEFAULT=        TAGLIB
19
20 TAGLIB_DESC=    TagLib support
21
22 USES=           iconv pkgconfig
23 USE_GNOME=      libxml2
24 USE_RC_SUBR=    ${PORTNAME}
25 GNU_CONFIGURE=  yes
26
27 PORTDOCS=       NEWS README
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
34
35 CPPFLAGS+=      -I${LOCALBASE}/include
36 LDFLAGS+=       -lpthread -L${LOCALBASE}/lib
37
38 TAGLIB_CONFIGURE_OFF=   --without-taglib
39 TAGLIB_LIB_DEPENDS=             libtag.so:audio/taglib
40 TAGLIB_CONFIGURE_ON=    --with-taglib=${LOCALBASE}
41
42 .include <bsd.port.options.mk>
43
44
45 post-patch:
46         @${REINPLACE_CMD} -e '/^SUBDIRS =/s|examples||g ; \
47                 s|: install-dist_docDATA|:|g' ${WRKSRC}/Makefile.in
48
49 post-install:
50         @${MKDIR} ${STAGEDIR}${DOCSDIR}/
51 .for file in ${PORTDOCS}
52         ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}/
53 .endfor
54         @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
55 .for f in ${PORTEXAMPLES}
56         ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR}/
57 .endfor
58         @${MKDIR} ${STAGEDIR}${ETCDIR}/
59         ${INSTALL_DATA} ${WRKSRC}/examples/ezstream_vorbis.xml ${STAGEDIR}${ETCDIR}/ezstream.xml
60
61 .include <bsd.port.mk>