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.

75 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:=forked-daapd
  9. PKG_VERSION:=25.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/ejurgensen/$(PKG_NAME)/archive/
  13. PKG_HASH:=3566f416e929591ab4fab7f99580ae5b58b99607b5abb695ac8329efaafe019c
  14. PKG_BUILD_DEPENDS:=gperf/host
  15. PKG_FIXUP:=autoreconf
  16. PKG_USE_MIPS16:=0
  17. PKG_INSTALL:=1
  18. PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
  19. PKG_LICENSE:=GPL-2.0
  20. PKG_LICENSE_FILES:=COPYING
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. define Package/forked-daapd
  24. SECTION:=sound
  25. CATEGORY:=Sound
  26. TITLE:=iTunes (DAAP) server for Apple Remote and AirPlay
  27. URL:=https://github.com/ejurgensen/forked-daapd
  28. DEPENDS:=+libgpg-error +libgcrypt +libgdbm +zlib +libexpat +libunistring \
  29. +libevent2 +libdaemon +libantlr3c +confuse +alsa-lib +libffmpeg-full \
  30. +mxml +libavahi-client +sqlite3-cli +libplist +libcurl +libjson-c \
  31. +libprotobuf-c +libgnutls +libsodium $(ICONV_DEPENDS)
  32. endef
  33. define Package/forked-daapd/description
  34. forked-daapd is a Linux/FreeBSD DAAP (iTunes), MPD (Music Player Daemon) and
  35. RSP (Roku) media server. It has support for AirPlay speakers, Chromecast,
  36. Apple Remote (and compatibles), MPD clients, internet radio and LastFM. It
  37. does not support AirPlay/Chromecast video.
  38. endef
  39. define Package/forked-daapd/conffiles
  40. /etc/forked-daapd.conf
  41. endef
  42. CONFIGURE_ARGS += \
  43. --enable-itunes \
  44. --enable-lastfm \
  45. --enable-mpd \
  46. --enable-chromecast \
  47. --enable-verification \
  48. --disable-spotify \
  49. --without-libevent_pthreads
  50. TARGET_CFLAGS += $(FPIC)
  51. TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
  52. define Package/forked-daapd/install
  53. $(INSTALL_DIR) $(1)/usr/sbin
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/forked-daapd $(1)/usr/sbin/
  55. $(INSTALL_DIR) $(1)/etc
  56. $(INSTALL_CONF) ./files/forked-daapd.conf $(1)/etc/forked-daapd.conf
  57. $(INSTALL_DIR) $(1)/usr/lib/forked-daapd
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/forked-daapd/* $(1)/usr/lib/forked-daapd/
  59. $(INSTALL_DIR) $(1)/etc/init.d
  60. $(INSTALL_BIN) ./files/forked-daapd.init $(1)/etc/init.d/forked-daapd
  61. endef
  62. $(eval $(call BuildPackage,forked-daapd))