summaryrefslogtreecommitdiff
blob: c0b3f14c2e7a88b9cd381f87f312e0fc75b2a3d0 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header $

S=${WORKDIR}/${P}
DESCRIPTION="Icecast is an Internet based broadcasting system based on the Mpeg Layer III streaming technology."
SRC_URI="http://www.icecast.org/releases/${P}.tar.gz"
HOMEPAGE="http://www.icecast.org"
KEYWORDS="x86 -ppc -sparc "
LICENSE="GPL-2"
SLOT="0"

DEPEND="virtual/glibc"

src_unpack() {

	unpack ${A}
	cd ${S}
	patch -p1 < ${FILESDIR}/variables.diff

}

src_compile() {

	local myconf

	use crypt && myconf="--with-crypt" || myconf="--without-crypt"	
	
	./configure 	--with-libwrap              \
			${myconf}                   \
			--prefix=/usr               \
			--sysconfdir=/etc/icecast   \
			--localstatedir=/var        \
			--infodir=/usr/share/info   \
			--mandir=/usr/share/man     \
			--host=${CHOST} || die "configure failed"

	emake || die "emake failed"
}


src_install () {

	make DESTDIR=${D} \
		ICECAST_BINDIR=/usr/bin \
		ICECAST_DOCDIR=/usr/share/doc/${P} \
		ICECAST_ETCDIR=/etc/icecast \
		ICECAST_ETCDIR_INST=/etc/icecast \
		ICECAST_LOGDIR=/var/log/icecast \
		ICECAST_LOGDIR_INST=/var/log/icecast \
		ICECAST_SBINDIR=/usr/sbin \
		ICECAST_STATICDIR=/usr/share/icecast/static \
		ICECAST_STATICDIR_INST=/usr/share/icecast/static \
        	ICECAST_TEMPLATEDIR=/usr/share/icecast/templates \
		ICECAST_TEMPLATEDIR_INST=/usr/share/icecast/templates \
		install || die "make install failed"

	dodoc AUTHORS BUGS CHANGES COPYING FAQ INSTALL README TESTED TODO
}