summaryrefslogtreecommitdiff
blob: fc179cc73fad8fd3f650981eaecb9df7ec8b4ded (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/mod_mp3/mod_mp3-0.40-r1.ebuild,v 1.4 2005/09/18 19:29:57 vericgar Exp $

inherit apache-module

# test target in Makefile isn't sane
RESTRICT="test"

IUSE="mysql postgres"

DESCRIPTION="Module for turning Apache into an MP3 or Ogg streaming server"
HOMEPAGE="http://software.tangent.org/"
KEYWORDS="~ppc ~sparc x86"

SRC_URI="http://download.tangent.org/${P}.tar.gz"

DEPEND="dev-lang/perl
	mysql? ( >=dev-db/mysql-3.23.26 )
	postgres? ( dev-db/postgresql )"

LICENSE="as-is"
SLOT="0"

APACHE1_MOD_CONF="50_mod_mp3"
APACHE1_MOD_DEFINE="MP3"

DOCFILES="CONTRIBUTORS ChangeLog LICENSE README TODO faq.html support/*"

need_apache1

src_compile() {
	local myconf

	myconf="$(use_with mysql)"
	myconf="${myconf} $(use_with postgres)"
	./configure ${myconf} --with-playlist || die "configure failed"
	make || die "make failed"
}