Geen omschrijving

Makefile 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # Copyright (C) 2013-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:=shairport
  9. PKG_VERSION:=2014-05-08
  10. PKG_RELEASE:=2
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=git://github.com/abrasive/shairport.git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=078b21043cdcef6ffad7452db27f036770b23b0c
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  16. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/shairport
  19. SECTION:=multimedia
  20. CATEGORY:=Multimedia
  21. DEPENDS:=+libpthread +avahi-utils +libopenssl +libavahi-client +alsa-utils
  22. TITLE:=ShairPort AirPort Express emulator
  23. endef
  24. define Package/shairport/description
  25. This program emulates an AirPort Express for the purpose of streaming
  26. music from iTunes and compatible iPods. It implements a server for the
  27. Apple RAOP protocol.
  28. ShairPort does not support AirPlay v2 (video and photo streaming).
  29. It supports multiple simultaneous streams, if your audio output chain
  30. (as detected by libao) does so.
  31. endef
  32. TARGET_CFLAGS += $(FPIC)
  33. LIBS:=-lm -lcrypto -lpthread -lavahi-common -lavahi-client -lasound
  34. MAKE_FLAGS += \
  35. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  36. LDFLAGS="$(TARGET_LDFLAGS) $(LIBS)"
  37. define Package/shairport/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/shairport $(1)/usr/bin/
  40. $(INSTALL_DIR) $(1)/etc/init.d/
  41. $(INSTALL_BIN) files/shairport.init $(1)/etc/init.d/shairport
  42. $(INSTALL_DIR) $(1)/etc/config
  43. $(INSTALL_CONF) files/shairport.config $(1)/etc/config/shairport
  44. endef
  45. $(eval $(call BuildPackage,shairport))