summaryrefslogtreecommitdiff
blob: 7039fc53fccbac4c1e1b3c1d4de3638adb86536b (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/daapd/daapd-0.2.1d.ebuild,v 1.2 2004/06/24 23:56:25 agriffis Exp $

inherit flag-o-matic eutils

DESCRIPTION="daapd scans a directory for mp3 files and makes them available via the Apple proprietary protocol DAAP"
HOMEPAGE="http://www.deleet.de/projekte/daap/daapd/"
SRC_URI="http://www.deleet.de/projekte/daap/daapd/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="sys-libs/zlib
	>=media-libs/libid3tag-0.15.0b
	>=net-libs/libhttpd-persistent-1.3p-r6
	media-libs/daaplib
	>=net-misc/howl-0.9"

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/${PV}-makefile-gentoo.patch
	epatch ${FILESDIR}/${PV}-zeroconf-gentoo.patch
}

src_compile() {
	if eval [ -d "/usr/include/howl-*" ]; then
		INCPATH="-I "`echo /usr/include/howl-*` || die "Can't find howl includes."
	fi

	emake INCPATH="${INCPATH}" || die
}

src_install() {
	# Not an automake build :(
	dobin daapd

	dodoc COPYING INSTALL.irix README daapd-example.conf

	insinto /etc
	newins daapd-example.conf daapd.conf

	insinto /etc/conf.d
	newins ${FILESDIR}/daapd.conf.d daapd || die

	exeinto /etc/init.d
	newexe ${FILESDIR}/daapd.init.d daapd || die
}