# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 IUSE="howl debug oggvorbis" inherit flag-o-matic eutils MY_P="${P/_/-}" DESCRIPTION="A multi-threaded implementation of Apple's DAAP server" HOMEPAGE="http://mt-daapd.sourceforge.net" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~ppc-macos" DEPEND="sys-libs/zlib media-libs/libid3tag sys-libs/gdbm howl? ( >=net-misc/howl-0.9.2 ) debug? (dev-libs/efence) oggvorbis? (media-libs/libvorbis)" src_compile() { local myconf; myconf="" # DEBUG options if use debug; then myconf="${myconf} --enable-debug --enable-debug-memory --enable-efence" fi # HOWL support if use howl; then myconf="${myconf} --enable-howl --with-howl-libs=/usr/lib --with-howl-includes=/usr/include/howl/ --disable-mdns" else myconf="${myconf} --disable-howl" fi # Ogg Vorbis support if use oggvorbis; then myconf="${myconf} --enable-oggvorbis" fi econf ${myconf} || die emake || die } src_install() { make DESTDIR=${D} install || die dobin src/mt-daapd dodoc COPYING README* NEWS TODO contrib/mt-daapd.conf \ contrib/mt-daapd.playlist insinto /etc doins contrib/mt-daapd.conf doins contrib/mt-daapd.playlist dodir /usr/share/mt-daapd dodir /usr/share/mt-daapd/admin-root diropts -m0777 dodir /var/cache/mt-daapd insinto /usr/share/mt-daapd/admin-root doins admin-root/*.html admin-root/*.gif admin-root/*.png \ admin-root/*.txt admin-root/*.css newinitd ${FILESDIR}/mt-daapd.init mt-daapd || die } pkg_postinst() { if [ -a /var/cache/mt-daapd/songs.gdb ] then /etc/init.d/mt-daapd stop rm -f /var/cache/mt-daapd/songs.gdb einfo einfo songs.gdb deleted, please be patient at first start einfo fi if use howl; then einfo einfo Since you want to use howl instead of the internal mdnsd einfo you need to make sure that you have mDNSResponder configured einfo and running to use mt-daapd. einfo fi if use oggvorbis; then einfo einfo You need to edit you extensions list in /etc/mt-daapd.conf einfo if you want your mt-daapd to serve ogg files. einfo fi }