Ingen beskrivning

Makefile 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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_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:=Improved iTunes (DAAP) server. Support for Apple Remote and AirPlay.
  29. URL:=https://github.com/ejurgensen/forked-daapd
  30. DEPENDS:=+libgpg-error +libgcrypt +libgdbm +zlib +libexpat +libunistring \
  31. +libevent +libdaemon +libantlr3c +confuse +glib2 +alsa-lib +libffmpeg-full \
  32. +mxml +libavl +avahi-daemon +libavahi-client +sqlite3-cli +libplist
  33. endef
  34. define Package/forked-daapd/conffiles
  35. /etc/forked-daapd.conf
  36. endef
  37. CONFIGURE_ARGS += \
  38. --enable-itunes
  39. # Fix for libevent
  40. TARGET_CPPFLAGS += -I$(STAGING_DIR)/usr/include/libevent
  41. TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/libevent
  42. TARGET_CFLAGS += $(FPIC)
  43. TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
  44. define Package/forked-daapd/install
  45. $(INSTALL_DIR) $(1)/etc
  46. $(INSTALL_DATA) ./files/forked-daapd.conf $(1)/etc/
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(INSTALL_DIR) $(1)/usr/lib/forked-daapd
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/forked-daapd/* $(1)/usr/lib/forked-daapd/
  50. $(INSTALL_DIR) $(1)/usr/sbin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/forked-daapd $(1)/usr/sbin/
  52. $(INSTALL_DIR) $(1)/etc/init.d
  53. $(INSTALL_BIN) ./files/forked-daapd.init $(1)/etc/init.d/forked-daapd
  54. endef
  55. $(eval $(call BuildPackage,forked-daapd))