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.

65 lines
1.8 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.2
  10. PKG_RELEASE:=20150129
  11. PKG_REV:=77f206c11855d2d84688a6e7cd9c8932e8a89205
  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 +glib2 +alsa-lib +libffmpeg-full \
  32. +mxml +libavl +libavahi-client +sqlite3-cli +libplist +libcurl
  33. endef
  34. define Package/forked-daapd/conffiles
  35. /etc/forked-daapd.conf
  36. endef
  37. CONFIGURE_ARGS += \
  38. --enable-itunes \
  39. --enable-lastfm
  40. TARGET_CFLAGS += $(FPIC)
  41. TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
  42. define Package/forked-daapd/install
  43. $(INSTALL_DIR) $(1)/etc
  44. $(INSTALL_DATA) ./files/forked-daapd.conf $(1)/etc/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(INSTALL_DIR) $(1)/usr/lib/forked-daapd
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/forked-daapd/* $(1)/usr/lib/forked-daapd/
  48. $(INSTALL_DIR) $(1)/usr/sbin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/forked-daapd $(1)/usr/sbin/
  50. $(INSTALL_DIR) $(1)/etc/init.d
  51. $(INSTALL_BIN) ./files/forked-daapd.init $(1)/etc/init.d/forked-daapd
  52. endef
  53. $(eval $(call BuildPackage,forked-daapd))