# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/media-sound/daapd/daapd-0.2.1d.ebuild,v 1.1 2004/03/31 02:20:20 eradicator 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="mpeg4" DEPEND="sys-libs/zlib >=media-libs/libid3tag-0.15.0b mpeg4? ( media-video/mpeg4ip ) >=net-misc/howl-0.9 !net-libs/libhttpd-persistent !media-libs/daaplib" src_unpack() { unpack ${A} cd ${S} sed -ie "s:/usr/local:/usr:g" makefile sed -ie "s:howl-:howl:" makefile } src_compile() { use mpeg4 || sed -ie "s:MPEG4_ENABLE = 1:MPEG4_ENABLE = 0:" makefile make || die "make failed." } src_install() { for i in lib bin include man do dodir /usr/$i; done sed -ie "s:/usr/local:\${DESTDIR}/usr:g" libhttpd/src/Makefile.full sed -ie "s:/usr/local:\${DESTDIR}/usr:g" daaplib/src/makefile make DESTDIR=${D} DEPLOY=${D}usr install || die "install failed." dodoc COPYING 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 }