Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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:=24.2
  10. PKG_RELEASE:=1
  11. PKG_REV:=1b6283752ed0b790a6658bed1f05946e1af193da
  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. include $(INCLUDE_DIR)/nls.mk
  26. define Package/forked-daapd
  27. SECTION:=sound
  28. CATEGORY:=Sound
  29. TITLE:=iTunes (DAAP) server for Apple Remote and AirPlay
  30. URL:=https://github.com/ejurgensen/forked-daapd
  31. DEPENDS:=+libgpg-error +libgcrypt +libgdbm +zlib +libexpat +libunistring \
  32. +libevent2 +libdaemon +libantlr3c +confuse +alsa-lib +libffmpeg-full \
  33. +mxml +libavahi-client +sqlite3-cli +libplist +libcurl +libjson-c \
  34. +libprotobuf-c +libgnutls $(ICONV_DEPENDS)
  35. endef
  36. define Package/forked-daapd/description
  37. forked-daapd is a Linux/FreeBSD DAAP (iTunes), MPD (Music Player Daemon) and
  38. RSP (Roku) media server. It has support for AirPlay speakers, Chromecast,
  39. Apple Remote (and compatibles), MPD clients, internet radio and LastFM. It
  40. does not support AirPlay/Chromecast video.
  41. endef
  42. define Package/forked-daapd/conffiles
  43. /etc/forked-daapd.conf
  44. endef
  45. CONFIGURE_ARGS += \
  46. --enable-itunes \
  47. --enable-lastfm \
  48. --enable-mpd \
  49. --enable-chromecast
  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))