2 # Copyright (C) 2013-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
11 PKG_VERSION:=2014-10-28
15 PKG_SOURCE_URL:=git://github.com/abrasive/shairport.git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_VERSION:=d679d19a4bd66cc220dabfd23ad748c34e95995c
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
19 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
22 PKG_LICENSE_FILES:=LICENSES
24 include $(INCLUDE_DIR)/package.mk
26 define Package/shairport
29 DEPENDS:=+libpthread +libopenssl +libavahi-client +alsa-lib
30 TITLE:=ShairPort AirPort Express emulator (un-maintained)
33 define Package/shairport/description
34 This program emulates an AirPort Express for the purpose of streaming
35 music from iTunes and compatible iPods. It implements a server for the
37 ShairPort does not support AirPlay v2 (video and photo streaming).
39 It supports multiple simultaneous streams, if your audio output chain
40 (as detected by libao) does so.
43 TARGET_CFLAGS += $(FPIC)
45 LIBS:=-lm -lcrypto -lpthread -lavahi-common -lavahi-client -lasound
48 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
49 LDFLAGS="$(TARGET_LDFLAGS) $(LIBS)"
51 define Package/shairport/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/shairport $(1)/usr/bin/
54 $(INSTALL_DIR) $(1)/etc/init.d/
55 $(INSTALL_BIN) files/shairport.init $(1)/etc/init.d/shairport
56 $(INSTALL_DIR) $(1)/etc/config
57 $(INSTALL_CONF) files/shairport.config $(1)/etc/config/shairport
60 $(eval $(call BuildPackage,shairport))