summaryrefslogtreecommitdiff
blob: 2feedb8e188da685e46d715bbffe950104b3afda (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Tim Hobbs <rectrix@rectrix.cx>
# Maintainer: Matthew Kennedy <mkennedy@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/media-sound/gnump3d/gnump3d-0.9.9.4.ebuild,v 1.1 2002/04/18 08:06:37 mkennedy Exp $

S=${WORKDIR}/${P}
DESCRIPTION="A streaming server for MP3, OGG vorbis and other streamable files"
SRC_URI="http://prdownloads.sourceforge.net/gnump3d/${P}.tar.gz"
HOMEPAGE="http://gnump3d.sourceforge.net/"

DEPEND="virtual/glibc"
RDEPEND="${DEPEND}
	>=sys-devel/perl-5.6.1"

src_unpack() {
	unpack ${A}
	cd ${S}
	patch -p1 <${FILESDIR}/mp3d.conf-gentoo.patch || die
	patch -p1 <${FILESDIR}/doc-Makefile-gentoo.patch || die
}

src_compile() {
	make PREFIX=/usr \
		CONFIGDIR=/etc/${PN} \
		TEMPLATEDIR=/usr/share/${PN} \
		DEFAULT_CFLAGS="-I. ${CXXFLAGS}" \
		linux || die
}

src_install() {
	dodir /usr/share/${PN}
	make PREFIX=${D}/usr \
		CONFIGDIR=${D}/etc/${PN} \
		TEMPLATEDIR=${D}/usr/share/${PN} \
		MANDIR=${D}/usr/share/man/man1 \
		DESTDIR=${D} install || die

	dodoc AUTHORS BUGS CHANGELOG COPYING README* TODO
	docinto templates; dodoc templates/README* 

	exeinto /etc/init.d
	newexe ${FILESDIR}/gnump3d.rc6 gnump3d
}