blob: 18a3b7e9a384dd029536dc36c6051c58301ab7ff (
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
|
# New ports collection makefile for: icecast
# Date created: 28 Jan 1999
# Whom: Chip Marshall <chip@eboai.org>
#
# $FreeBSD$
#
PORTNAME= icecast2
PORTVERSION= 20021112
CATEGORIES= audio net
MASTER_SITES= http://tigress.com/lofi/\
http://lofi.dyndns.org/
DISTNAME= icecast-devel-${PORTVERSION}
MAINTAINER= michaelnottebrock@gmx.net
LIB_DEPENDS= ogg.4:${PORTSDIR}/audio/libogg \
shout.3:${PORTSDIR}/audio/libshout2 \
vorbis.2:${PORTSDIR}/audio/libvorbis
AUTOMAKE_ARGS= --add-missing
AUTOMAKE_ENV= CFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-oggtest --disable-vorbistest --disable-shouttest
CONFIGURE_ENV= CFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib"
USE_AUTOMAKE= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/icecast
post-configure:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/src/Makefile
@${REINPLACE_CMD} -e 's|-O20|${CFLAGS}|' ${WRKSRC}/conf/Makefile \
${WRKSRC}/doc/Makefile \
${WRKSRC}/src/avl/Makefile \
${WRKSRC}/src/log/Makefile \
${WRKSRC}/src/net/Makefile \
${WRKSRC}/src/httpp/Makefile \
${WRKSRC}/src/thread/Makefile \
${WRKSRC}/src/timing/Makefile \
${WRKSRC}/src/Makefile \
${WRKSRC}/web/Makefile \
${WRKSRC}/win32/res/Makefile \
${WRKSRC}/win32/Makefile \
${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/conf/icecast.xml ${DOCSDIR}
.endif
.include <bsd.port.mk>
|