You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2006-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=owntone
  9. PKG_VERSION:=28.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/owntone/owntone-server/releases/download/$(PKG_VERSION)/
  13. PKG_HASH:=7e5a0142d852569dc28a99a2e26568856717544e894904aa0e63950fdafa2666
  14. PKG_FIXUP:=autoreconf
  15. PKG_USE_MIPS16:=0
  16. PKG_INSTALL:=1
  17. PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
  18. PKG_LICENSE:=GPL-2.0
  19. PKG_LICENSE_FILES:=COPYING
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. define Package/owntone
  23. SECTION:=sound
  24. CATEGORY:=Sound
  25. TITLE:=iTunes (DAAP) server for Apple Remote and AirPlay
  26. URL:=https://github.com/owntone/owntone-server
  27. DEPENDS:=+libgpg-error +libgcrypt +libgdbm +zlib +libexpat +libunistring \
  28. +libevent2 +libdaemon +libantlr3c +confuse +alsa-lib +libffmpeg-full \
  29. +mxml +libavahi-client +sqlite3-cli +libplist +libcurl +libjson-c \
  30. +libprotobuf-c +libgnutls +libsodium +libwebsockets +libuuid $(ICONV_DEPENDS)
  31. endef
  32. define Package/owntone/description
  33. OwnTone is a Linux/FreeBSD DAAP (iTunes), MPD (Music Player Daemon) and
  34. RSP (Roku) media server. It has support for AirPlay speakers, Chromecast,
  35. Apple Remote (and compatibles), MPD clients, internet radio and LastFM. It
  36. does not support AirPlay/Chromecast video.
  37. endef
  38. define Package/owntone/conffiles
  39. /etc/owntone.conf
  40. endef
  41. CONFIGURE_ARGS += \
  42. --enable-chromecast \
  43. --disable-install_systemd \
  44. --disable-install_conf_file \
  45. --disable-install_user \
  46. --with-alsa \
  47. --without-pulseaudio \
  48. --without-libevent_pthreads
  49. TARGET_CFLAGS += $(FPIC)
  50. TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
  51. define Package/owntone/install
  52. $(INSTALL_DIR) $(1)/usr/sbin
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/owntone $(1)/usr/sbin/
  54. $(INSTALL_DIR) $(1)/etc
  55. $(INSTALL_CONF) ./files/owntone.conf $(1)/etc/owntone.conf
  56. $(INSTALL_DIR) $(1)/usr/lib/owntone
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/owntone/* $(1)/usr/lib/owntone/
  58. $(INSTALL_DIR) $(1)/etc/init.d
  59. $(INSTALL_BIN) ./files/owntone.init $(1)/etc/init.d/owntone
  60. endef
  61. $(eval $(call BuildPackage,owntone))