pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio audio: Add forked-daapd
details: https://anonhg.NetBSD.org/pkgsrc/rev/f810b05e3172
branches: trunk
changeset: 441381:f810b05e3172
user: nia <nia%pkgsrc.org@localhost>
date: Mon Nov 02 14:00:47 2020 +0000
description:
audio: Add forked-daapd
forked-daapd is a DAAP (iTunes), MPD (Music Player Daemon) and RSP (Roku)
media server.
It supports AirPlay devices/speakers, Apple Remote (and compatibles), MPD
clients, Chromecast, network streaming, internet radio, Spotify and LastFM.
It does not support streaming video by AirPlay nor Chromecast.
DAAP stands for Digital Audio Access Protocol which is the protocol used by
iTunes and friends to share/stream media libraries over the network.
forked-daapd is a complete rewrite of mt-daapd (Firefly Media Server).
diffstat:
audio/Makefile | 3 +-
audio/forked-daapd/DESCR | 12 ++++
audio/forked-daapd/Makefile | 61 +++++++++++++++++++++++
audio/forked-daapd/PLIST | 70 +++++++++++++++++++++++++++
audio/forked-daapd/distinfo | 8 +++
audio/forked-daapd/files/forked-daapd.sh | 22 ++++++++
audio/forked-daapd/options.mk | 28 ++++++++++
audio/forked-daapd/patches/patch-Makefile.in | 27 ++++++++++
audio/forked-daapd/patches/patch-src_player.c | 15 +++++
9 files changed, 245 insertions(+), 1 deletions(-)
diffs (292 lines):
diff -r b53de3236a5a -r f810b05e3172 audio/Makefile
--- a/audio/Makefile Mon Nov 02 12:33:25 2020 +0000
+++ b/audio/Makefile Mon Nov 02 14:00:47 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.615 2020/11/02 10:13:25 nia Exp $
+# $NetBSD: Makefile,v 1.616 2020/11/02 14:00:47 nia Exp $
#
COMMENT= Audio tools
@@ -116,6 +116,7 @@
SUBDIR+= flactag
SUBDIR+= flite
SUBDIR+= fluidsynth
+SUBDIR+= forked-daapd
SUBDIR+= freealut
SUBDIR+= freepats
SUBDIR+= freeswitch-music
diff -r b53de3236a5a -r f810b05e3172 audio/forked-daapd/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/forked-daapd/DESCR Mon Nov 02 14:00:47 2020 +0000
@@ -0,0 +1,12 @@
+forked-daapd is a DAAP (iTunes), MPD (Music Player Daemon) and RSP (Roku)
+media server.
+
+It supports AirPlay devices/speakers, Apple Remote (and compatibles), MPD
+clients, Chromecast, network streaming, internet radio, Spotify and LastFM.
+
+It does not support streaming video by AirPlay nor Chromecast.
+
+DAAP stands for Digital Audio Access Protocol which is the protocol used by
+iTunes and friends to share/stream media libraries over the network.
+
+forked-daapd is a complete rewrite of mt-daapd (Firefly Media Server).
diff -r b53de3236a5a -r f810b05e3172 audio/forked-daapd/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/forked-daapd/Makefile Mon Nov 02 14:00:47 2020 +0000
@@ -0,0 +1,61 @@
+# $NetBSD: Makefile,v 1.1 2020/11/02 14:00:47 nia Exp $
+
+DISTNAME= forked-daapd-27.2
+CATEGORIES= audio
+MASTER_SITES= ${MASTER_SITE_GITHUB:=ejurgensen/}
+GITHUB_RELEASE= ${PKGVERSION_NOREV}
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://ejurgensen.github.io/forked-daapd
+COMMENT= DAAP (iTunes), MPD (musicpd), and RSP (Roku) media server
+LICENSE= gnu-gpl-v2
+
+RCD_SCRIPTS= forked-daapd
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config gmake
+
+.include "../../mk/bsd.prefs.mk"
+
+BUILD_DEFS+= VARBASE
+
+MAKE_FLAGS+= localstatedir=${VARBASE}
+
+DAAPD_GROUP?= daapd
+DAAPD_USER?= daapd
+
+PKG_GROUPS= ${DAAPD_GROUP}
+PKG_USERS= ${DAAPD_USER}:${DAAPD_GROUP}
+
+EGDIR= ${PREFIX}/share/examples/forked-daapd
+
+CONF_FILES+= ${EGDIR}/forked-daapd.conf ${PKG_SYSCONFDIR}/forked-daapd.conf
+
+OWN_DIRS_PERMS+= ${VARBASE}/cache/forked-daapd \
+ ${DAAPD_USER} ${DAAPD_GROUP} 0755
+
+.include "options.mk"
+.include "../../devel/confuse/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libevent+= libevent>=2
+.include "../../devel/libantlr3c/buildlink3.mk"
+.include "../../devel/libevent/buildlink3.mk"
+.if ${OPSYS} != "Linux"
+. include "../../devel/libinotify/buildlink3.mk"
+.endif
+.include "../../devel/protobuf/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.sqlite3+= sqlite3>=3.5.0
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../multimedia/ffmpeg4/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../../security/libsodium/buildlink3.mk"
+.include "../../textproc/json-c/buildlink3.mk"
+.include "../../textproc/libplist/buildlink3.mk"
+.include "../../textproc/libunistring/buildlink3.mk"
+.include "../../textproc/mxml/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../www/libwebsockets/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r b53de3236a5a -r f810b05e3172 audio/forked-daapd/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/forked-daapd/PLIST Mon Nov 02 14:00:47 2020 +0000
@@ -0,0 +1,70 @@
+@comment $NetBSD: PLIST,v 1.1 2020/11/02 14:00:47 nia Exp $
+lib/forked-daapd/forked-daapd-sqlext.la
+man/man8/forked-daapd.8
+sbin/forked-daapd
+share/doc/forked-daapd/README.md
+share/doc/forked-daapd/README_ALSA.md
+share/doc/forked-daapd/README_JSON_API.md
+share/doc/forked-daapd/README_PLAYER_WEBINTERFACE.md
+share/doc/forked-daapd/README_PULSE.md
+share/doc/forked-daapd/README_RADIO_STREAMS.md
+share/doc/forked-daapd/README_SMARTPL.md
+share/doc/forked-daapd/UPGRADING
+share/doc/forked-daapd/scripts/pairinghelper.sh
+share/examples/forked-daapd/forked-daapd.conf
+share/forked-daapd/htdocs/admin.html
+share/forked-daapd/htdocs/admin/css/forked-daapd.css
+share/forked-daapd/htdocs/admin/js/forked-daapd.js
+share/forked-daapd/htdocs/admin/vendor/axios/axios.js
+share/forked-daapd/htdocs/admin/vendor/axios/axios.map
+share/forked-daapd/htdocs/admin/vendor/axios/axios.min.js
+share/forked-daapd/htdocs/admin/vendor/axios/axios.min.map
+share/forked-daapd/htdocs/admin/vendor/bulma/bulma.css
+share/forked-daapd/htdocs/admin/vendor/bulma/bulma.css.map
+share/forked-daapd/htdocs/admin/vendor/bulma/bulma.min.css
+share/forked-daapd/htdocs/admin/vendor/fontawesome/css/all.css
+share/forked-daapd/htdocs/admin/vendor/fontawesome/css/all.min.css
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-brands-400.eot
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-brands-400.svg
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-brands-400.ttf
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-brands-400.woff
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-brands-400.woff2
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-regular-400.eot
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-regular-400.svg
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-regular-400.ttf
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-regular-400.woff
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-regular-400.woff2
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-solid-900.eot
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-solid-900.svg
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-solid-900.ttf
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-solid-900.woff
+share/forked-daapd/htdocs/admin/vendor/fontawesome/webfonts/fa-solid-900.woff2
+share/forked-daapd/htdocs/admin/vendor/vue/vue.js
+share/forked-daapd/htdocs/admin/vendor/vue/vue.min.js
+share/forked-daapd/htdocs/android-chrome-96x96.png
+share/forked-daapd/htdocs/apple-touch-icon.png
+share/forked-daapd/htdocs/browserconfig.xml
+share/forked-daapd/htdocs/favicon-16x16.png
+share/forked-daapd/htdocs/favicon-32x32.png
+share/forked-daapd/htdocs/favicon.ico
+share/forked-daapd/htdocs/index.html
+share/forked-daapd/htdocs/mstile-150x150.png
+share/forked-daapd/htdocs/player/css/app.css
+share/forked-daapd/htdocs/player/css/app.css.map
+share/forked-daapd/htdocs/player/css/chunk-vendors.css
+share/forked-daapd/htdocs/player/css/chunk-vendors.css.map
+share/forked-daapd/htdocs/player/fonts/materialdesignicons-webfont.eot
+share/forked-daapd/htdocs/player/fonts/materialdesignicons-webfont.ttf
+share/forked-daapd/htdocs/player/fonts/materialdesignicons-webfont.woff
+share/forked-daapd/htdocs/player/fonts/materialdesignicons-webfont.woff2
+share/forked-daapd/htdocs/player/img/materialdesignicons-webfont.svg
+share/forked-daapd/htdocs/player/js/app-legacy.js
+share/forked-daapd/htdocs/player/js/app-legacy.js.map
+share/forked-daapd/htdocs/player/js/app.js
+share/forked-daapd/htdocs/player/js/app.js.map
+share/forked-daapd/htdocs/player/js/chunk-vendors-legacy.js
+share/forked-daapd/htdocs/player/js/chunk-vendors-legacy.js.map
+share/forked-daapd/htdocs/player/js/chunk-vendors.js
+share/forked-daapd/htdocs/player/js/chunk-vendors.js.map
+share/forked-daapd/htdocs/safari-pinned-tab.svg
+share/forked-daapd/htdocs/site.webmanifest
diff -r b53de3236a5a -r f810b05e3172 audio/forked-daapd/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/forked-daapd/distinfo Mon Nov 02 14:00:47 2020 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2020/11/02 14:00:47 nia Exp $
+
+SHA1 (forked-daapd-27.2.tar.xz) = c4a0a9766ff8e1f7d39f199783b12c2f0c127e04
+RMD160 (forked-daapd-27.2.tar.xz) = ead3319f9ec7c24b6624cff4809253020a08e711
+SHA512 (forked-daapd-27.2.tar.xz) = 67dbb558579706bf69843e7ff7e6186769e7c775e99ea8b7d1a605fe6f3f6deba2fd20ea4ce3a7fb4e2fab07cf900f95233af66555f08a994c493fd73a1a2548
+Size (forked-daapd-27.2.tar.xz) = 3335304 bytes
+SHA1 (patch-Makefile.in) = e59e7f81857249953dde6c79a45116e642581b34
+SHA1 (patch-src_player.c) = 34b73b09e544d2a9ac31f244cbbcd0a70a8c263d
diff -r b53de3236a5a -r f810b05e3172 audio/forked-daapd/files/forked-daapd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/forked-daapd/files/forked-daapd.sh Mon Nov 02 14:00:47 2020 +0000
@@ -0,0 +1,22 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: forked-daapd.sh,v 1.1 2020/11/02 14:00:47 nia Exp $
+#
+# PROVIDE: daapd
+# REQUIRE: mdnsd
+# KEYWORD: shutdown
+#
+
+if [ -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="daapd"
+rcvar=${name}
+command="@PREFIX@/sbin/forked-daapd"
+command_args="-P @VARBASE@/run/forked-daapd.pid"
+pidfile="@VARBASE@/run/forked-daapd.pid"
+
+load_rc_config $name
+run_rc_command "$1"
diff -r b53de3236a5a -r f810b05e3172 audio/forked-daapd/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/forked-daapd/options.mk Mon Nov 02 14:00:47 2020 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: options.mk,v 1.1 2020/11/02 14:00:47 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.forked-daapd
+PKG_SUPPORTED_OPTIONS= avahi alsa pulseaudio
+PKG_SUGGESTED_OPTIONS.Linux= alsa
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mavahi)
+CONFIGURE_ARGS+= --with-avahi
+.include "../../net/avahi/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-avahi
+.endif
+
+.if !empty(PKG_OPTIONS:Malsa)
+CONFIGURE_ARGS+= --with-alsa
+.include "../../audio/alsa-lib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-alsa
+.endif
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+CONFIGURE_ARGS+= --with-pulseaudio
+.include "../../audio/pulseaudio/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-pulseaudio
+.endif
diff -r b53de3236a5a -r f810b05e3172 audio/forked-daapd/patches/patch-Makefile.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/forked-daapd/patches/patch-Makefile.in Mon Nov 02 14:00:47 2020 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-Makefile.in,v 1.1 2020/11/02 14:00:47 nia Exp $
+
+Install config files to examples.
+
+--- Makefile.in.orig 2020-07-23 22:52:00.000000000 +0000
++++ Makefile.in
+@@ -600,16 +600,16 @@ install-sysconfDATA: $(sysconf_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(sysconf_DATA)'; test -n "$(sysconfdir)" || list=; \
+ if test -n "$$list"; then \
+- echo " $(MKDIR_P) '$(DESTDIR)$(sysconfdir)'"; \
+- $(MKDIR_P) "$(DESTDIR)$(sysconfdir)" || exit 1; \
++ echo " $(MKDIR_P) '$(DESTDIR)$(datadir)/examples/forked-daapd'"; \
++ $(MKDIR_P) "$(DESTDIR)$(datadir)/examples/forked-daapd" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(sysconfdir)'"; \
+- $(INSTALL_DATA) $$files "$(DESTDIR)$(sysconfdir)" || exit $$?; \
++ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(datadir)/examples/forked-daapd'"; \
++ $(INSTALL_DATA) $$files "$(DESTDIR)$(datadir)/examples/forked-daapd" || exit $$?; \
+ done
+
+ uninstall-sysconfDATA:
diff -r b53de3236a5a -r f810b05e3172 audio/forked-daapd/patches/patch-src_player.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/forked-daapd/patches/patch-src_player.c Mon Nov 02 14:00:47 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_player.c,v 1.1 2020/11/02 14:00:47 nia Exp $
+
+Pointlessly checking for FreeBSD here.
+
+--- src/player.c.orig 2020-07-23 06:49:22.000000000 +0000
++++ src/player.c
+@@ -65,7 +65,7 @@
+
+ #ifdef HAVE_TIMERFD
+ # include <sys/timerfd.h>
+-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++#else
+ # include <signal.h>
+ #endif
+
Home |
Main Index |
Thread Index |
Old Index