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.

72 lines
2.1 KiB

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