summaryrefslogtreecommitdiff
blob: fe1d7bc6583b7ce1afcc03e5b7275e4fb4fda080 (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
# Copyright 1999-2007 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.9 2007/01/14 18:15:40 chtekk Exp $

inherit apache-module

KEYWORDS="ppc x86"

DESCRIPTION="Module for turning Apache1 into an MP3 or Ogg streaming server."
HOMEPAGE="http://software.tangent.org/"
SRC_URI="http://download.tangent.org/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
IUSE="mysql postgres"

DEPEND="dev-lang/perl
		mysql? ( virtual/mysql )
		postgres? ( dev-db/postgresql )"
RDEPEND="${DEPEND}"

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

APACHE1_MOD_CONF="50_mod_mp3"
APACHE1_MOD_DEFINE="MP3"

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

need_apache1

src_compile() {
	local myconf="--with-playlist"
	myconf="${myconf} $(use_with mysql)"
	myconf="${myconf} $(use_with postgres)"
	econf ${myconf} || die "econf failed"
	emake || die "emake failed"
}