summaryrefslogtreecommitdiff
path: root/audio/icecast/Makefile
blob: 7aecfe0495cc71bf571ca978ae3c8c826e7a5248 (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
# New ports collection makefile for: icecast
# Date created:         28 Jan 1999
# Whom:                 Chip Marshall <chip@eboai.org>
#
# $FreeBSD$
#

PORTNAME=	icecast
PORTVERSION=	1.3.10
CATEGORIES=	audio net
MASTER_SITES=	http://www.icecast.org/releases/

MAINTAINER=	zach@pabst.bendnet.com

HAS_CONFIGURE=	yes
CONFIGURE_ARGS=--with-libwrap

pre-fetch:
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
	${SH} pkg-install
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/icecast ${PREFIX}/sbin
	${MKDIR} ${PREFIX}/etc/icecast/conf
	${MKDIR} ${PREFIX}/etc/icecast/templates
.for CONF in groups.aut.dist icecast.conf.dist mounts.aut.dist users.aut.dist
	${INSTALL_DATA} ${WRKSRC}/conf/${CONF} ${PREFIX}/etc/icecast/conf
.endfor
.for TEMPL in 306.html 400.html 403.html 404.html 504.html bodytag.html info.html \
	      list_directory.html mountlist.html statistics.html admin_describe.html \
	      admin.html alias_add.html manual.html alias_del.html header.html \
	      footer.html admin_change.html
	${INSTALL_DATA} ${WRKSRC}/templates/${TEMPL} ${PREFIX}/etc/icecast/templates
.endfor
	${MKDIR} ${PREFIX}/share/doc/icecast/
	${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${PREFIX}/share/doc/icecast/
	@${CAT} ${PKGMESSAGE} | ${SED} -e 's,%%PREFIX%%,${PREFIX},g'

.include <bsd.port.mk>