1 # Copyright 1999-2022 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 # Add --enable-spotify when it works
9 inherit autotools eutils user
11 DESCRIPTION="A DAAP (iTunes) media server"
12 HOMEPAGE="https://github.com/owntone/owntone-server"
13 #SRC_URI="https://github.com/owntone/owntone-server/archive/${PV}.tar.xz -> ${P}.tar.xz"
14 SRC_URI="https://github.com/owntone/owntone-server/releases/download/${PV}/${P}.tar.xz"
18 IUSE="alsa flac itunes lastfm mpd musepack"
20 # Note: mpd support appears to be standalone, e.g. --enable-mpd doesn't
21 # result in additional linkage.
30 net-libs/libwebsockets:0/15
31 dev-libs/mxml[threads]
36 alsa? ( media-libs/alsa-lib )
37 flac? ( media-libs/flac )
38 itunes? ( app-pda/libplist )
39 lastfm? ( net-misc/curl )
40 musepack? ( media-libs/taglib )
54 # https://github.com/ejurgensen/forked-daapd/pull/185
55 #epatch "${FILESDIR}/antlr-3.5.patch"
60 ac_cv_prog_ANTLR=antlr3.5 \
64 $(use_enable musepack) \
65 $(use_enable itunes) \
66 $(use_enable lastfm) \
71 emake DESTDIR="${D}" install
73 newinitd "${FILESDIR}/daapd.initd" owntone
74 newconfd "${FILESDIR}/daapd.confd" owntone
76 # dodir by itself fails in the likely case of /srv/music having a
77 # volume mounted already.
78 test -d /srv/music || dodir /srv/music
80 keepdir /var/lib/cache/owntone
81 fowners -R daapd:daapd /var/lib/cache/owntone