aboutsummaryrefslogtreecommitdiffstats
path: root/audio/ices/Makefile
blob: 43aaa5da2dfd300b72edeb586b7e80820109a947 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: Michael Nottebrock <michaelnottebrock@gmx.net>
# $FreeBSD$

PORTNAME=   ices
PORTVERSION=    2.0.2
PORTEPOCH=  1
CATEGORIES= audio net
MASTER_SITES=   http://downloads.xiph.org/releases/ices/ \
        http://svn.xiph.org/releases/ices/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Vorbis streaming source client for icecast 2

LICENSE=    GPLv2

LIB_DEPENDS=    ogg:${PORTSDIR}/audio/libogg \
        shout:${PORTSDIR}/audio/libshout2 \
        vorbis:${PORTSDIR}/audio/libvorbis \
        speex:${PORTSDIR}/audio/speex \
        theora:${PORTSDIR}/multimedia/libtheora

OPTIONS_DEFINE= ALSA

USE_BZIP2=  yes
USE_GNOME=  libxml2
USE_GMAKE=  yes
USE_ICONV=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-roaraudio --disable-sun-audio
USE_PKGCONFIG=  build
MAKE_JOBS_SAFE= yes

CPPFLAGS+=  -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MALSA}
LIB_DEPENDS+=   asound:${PORTSDIR}/audio/alsa-lib
.else
CONFIGURE_ARGS+=--disable-alsa
.endif

.include <bsd.port.mk>