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.

66 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2006-2014 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:=22.0
  10. PKG_RELEASE:=20141016
  11. PKG_REV:=61a4da215c05b621951aa3903d7d390fd1839537
  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_FIXUP:=autoreconf
  18. PKG_USE_MIPS16:=0
  19. PKG_INSTALL:=1
  20. PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
  21. PKG_LICENSE:=GPL-2.0
  22. PKG_LICENSE_FILES:=COPYING
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/forked-daapd
  25. SECTION:=sound
  26. CATEGORY:=Sound
  27. TITLE:=Improved iTunes (DAAP) server. Support for Apple Remote and AirPlay.
  28. URL:=https://github.com/ejurgensen/forked-daapd
  29. DEPENDS:=+libgpg-error +libgcrypt +libgdbm +zlib +libexpat +libunistring \
  30. +libevent +libdaemon +libantlr3c +confuse +glib2 +alsa-lib +libffmpeg-full \
  31. +mxml +libavl +avahi-daemon +libavahi-client +sqlite3-cli +libplist
  32. endef
  33. define Package/forked-daapd/conffiles
  34. /etc/forked-daapd.conf
  35. endef
  36. CONFIGURE_ARGS += \
  37. --enable-itunes
  38. # Fix for libevent
  39. TARGET_CPPFLAGS += -I$(STAGING_DIR)/usr/include/libevent
  40. TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/libevent
  41. TARGET_CFLAGS += $(FPIC)
  42. TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
  43. define Package/forked-daapd/install
  44. $(INSTALL_DIR) $(1)/etc
  45. $(INSTALL_DATA) ./files/forked-daapd.conf $(1)/etc/
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(INSTALL_DIR) $(1)/usr/lib/forked-daapd
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/forked-daapd/* $(1)/usr/lib/forked-daapd/
  49. $(INSTALL_DIR) $(1)/usr/sbin
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/forked-daapd $(1)/usr/sbin/
  51. $(INSTALL_DIR) $(1)/etc/init.d
  52. $(INSTALL_BIN) ./files/forked-daapd.init $(1)/etc/init.d/forked-daapd
  53. endef
  54. $(eval $(call BuildPackage,forked-daapd))