blob: 2e1281147decd752c354e37f3a6dc7067b503d91 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Created by: Anes Mukhametov <anes@anes.su>
# $FreeBSD$
PORTNAME= icecast
PORTVERSION= ${ICVERSION}.k${KH}
CATEGORIES= audio net ipv6
PKGNAMESUFFIX= -kh
DISTNAME= ${PORTNAME}-${ICVERSION}-kh${KH}
MAINTAINER= anes@anes.su
COMMENT= Streaming mp3/ogg-vorbis audio server, KH branch
LICENSE= GPLv2
LIB_DEPENDS= libogg.so:${PORTSDIR}/audio/libogg \
libtheora.so:${PORTSDIR}/multimedia/libtheora \
libvorbis.so:${PORTSDIR}/audio/libvorbis \
libxml2.so:${PORTSDIR}/textproc/libxml2 \
libxslt.so:${PORTSDIR}/textproc/libxslt
USE_GITHUB= yes
GH_ACCOUNT= karlheyes
GH_PROJECT= icecast-kh
GH_TAGNAME= icecast-${ICVERSION}-kh${KH}
GH_COMMIT= fc206e8
USES= gmake pkgconfig
GNU_CONFIGURE= yes
USE_RC_SUBR= ${PORTNAME}
SUB_FILES= pkg-message
CONFIGURE_ENV= OGG_PREFIX=${LOCALBASE}
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
ICVERSION= 2.3.3
KH= 9
OPTIONS_DEFINE= CURL DOCS KATE SPEEX SSL_PORT
OPTIONS_DEFAULT= CURL KATE SPEEX
CURL_DESC= Support Directory server interaction (YP) via curl
KATE_DESC= Support Kate/Skeleton codec within Ogg streams
SPEEX_DESC= Support Speex codec within Ogg streams
SSL_PORT_DESC= Use OpenSSL from ports instead of one in the base
CONFLICTS_INSTALL= icecast-[0-9]* icecast2-[0-9]*
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCURL}
BUILD_DEPENDS+= curl>=7.10:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+= --with-curl=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-curl
.endif
.if ${PORT_OPTIONS:MKATE}
LIB_DEPENDS+= libkate.so:${PORTSDIR}/multimedia/libkate
.else
CONFIGURE_ARGS+= --without-kate
.endif
.if ${PORT_OPTIONS:MSPEEX}
BUILD_DEPENDS+= speex>=1:${PORTSDIR}/audio/speex
CONFIGURE_ARGS+= --with-speex=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-speex
.endif
.if ${PORT_OPTIONS:MSSL_PORT}
WITH_OPENSSL_PORT= yes
.else
WITH_OPENSSL_BASE= yes
.endif
.include <bsd.port.mk>
|