2014-10-16 21:34:24 +00:00
|
|
|
#
|
2016-12-03 16:41:26 +00:00
|
|
|
# Copyright (C) 2006-2016 OpenWrt.org
|
2014-10-16 21:34:24 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2021-09-08 18:19:59 +00:00
|
|
|
PKG_NAME:=owntone
|
2023-10-27 22:30:17 +00:00
|
|
|
PKG_VERSION:=28.8
|
2022-06-18 21:23:42 +00:00
|
|
|
PKG_RELEASE:=1
|
2014-10-16 21:34:24 +00:00
|
|
|
|
2017-08-04 21:42:29 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2021-09-08 18:19:59 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/owntone/owntone-server/releases/download/$(PKG_VERSION)/
|
2023-10-27 22:30:17 +00:00
|
|
|
PKG_HASH:=ebaee52ae617f08c41859522ba0a839d1865dcac7d6c0eb9e3fee81caf8fd47c
|
2014-10-20 20:55:55 +00:00
|
|
|
|
2014-10-16 21:34:24 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2023-03-23 07:39:01 +00:00
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
2014-10-16 21:34:24 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
|
|
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2016-01-01 20:42:13 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2014-10-16 21:34:24 +00:00
|
|
|
|
2021-09-08 18:19:59 +00:00
|
|
|
define Package/owntone
|
2014-10-16 21:34:24 +00:00
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
2014-11-01 22:57:24 +00:00
|
|
|
TITLE:=iTunes (DAAP) server for Apple Remote and AirPlay
|
2021-09-08 18:19:59 +00:00
|
|
|
URL:=https://github.com/owntone/owntone-server
|
2014-10-16 21:34:24 +00:00
|
|
|
DEPENDS:=+libgpg-error +libgcrypt +libgdbm +zlib +libexpat +libunistring \
|
2023-10-27 22:30:17 +00:00
|
|
|
+libevent2 +libevent2-pthreads +libdaemon +confuse +alsa-lib +libffmpeg-full \
|
2016-05-06 18:06:09 +00:00
|
|
|
+mxml +libavahi-client +sqlite3-cli +libplist +libcurl +libjson-c \
|
2021-09-08 18:19:59 +00:00
|
|
|
+libprotobuf-c +libgnutls +libsodium +libwebsockets +libuuid $(ICONV_DEPENDS)
|
2014-10-16 21:34:24 +00:00
|
|
|
endef
|
|
|
|
|
2021-09-08 18:19:59 +00:00
|
|
|
define Package/owntone/description
|
|
|
|
OwnTone is a Linux/FreeBSD DAAP (iTunes), MPD (Music Player Daemon) and
|
2016-05-06 18:06:09 +00:00
|
|
|
RSP (Roku) media server. It has support for AirPlay speakers, Chromecast,
|
2022-06-18 21:23:42 +00:00
|
|
|
Apple Remote (and compatibles), MPD clients, Spotify, internet radio and
|
|
|
|
LastFM. It does not support AirPlay/Chromecast video.
|
2015-06-25 20:40:46 +00:00
|
|
|
endef
|
|
|
|
|
2021-09-08 18:19:59 +00:00
|
|
|
define Package/owntone/conffiles
|
|
|
|
/etc/owntone.conf
|
2014-10-16 21:34:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2017-07-25 19:33:21 +00:00
|
|
|
--enable-chromecast \
|
2021-09-08 18:19:59 +00:00
|
|
|
--disable-install_systemd \
|
|
|
|
--disable-install_conf_file \
|
|
|
|
--disable-install_user \
|
2018-05-27 17:03:43 +00:00
|
|
|
--with-alsa \
|
2023-10-27 22:30:17 +00:00
|
|
|
--without-pulseaudio
|
2014-10-16 21:34:24 +00:00
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2021-09-08 18:19:59 +00:00
|
|
|
define Package/owntone/install
|
2015-06-25 20:40:46 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2021-09-08 18:19:59 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/owntone $(1)/usr/sbin/
|
2014-10-16 21:34:24 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2021-09-08 18:19:59 +00:00
|
|
|
$(INSTALL_CONF) ./files/owntone.conf $(1)/etc/owntone.conf
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/owntone
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/owntone/* $(1)/usr/lib/owntone/
|
2014-10-16 21:34:24 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2021-09-08 18:19:59 +00:00
|
|
|
$(INSTALL_BIN) ./files/owntone.init $(1)/etc/init.d/owntone
|
2022-06-18 21:23:42 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/owntone
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/owntone/htdocs $(1)/usr/share/owntone
|
2014-10-16 21:34:24 +00:00
|
|
|
endef
|
|
|
|
|
2021-09-08 18:19:59 +00:00
|
|
|
$(eval $(call BuildPackage,owntone))
|