Fresh pull from upstream
[librecmc/package-feed.git] / sound / shairport / Makefile
1 #
2 # Copyright (C) 2013-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=shairport
11 PKG_VERSION:=2014-10-28
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_PROTO:=git
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>
20
21 PKG_LICENSE:=MIT
22 PKG_LICENSE_FILES:=LICENSES
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/shairport
27   SECTION:=sound
28   CATEGORY:=Sound
29   DEPENDS:=+libpthread +libopenssl +libavahi-client +alsa-lib
30   TITLE:=ShairPort AirPort Express emulator (un-maintained)
31 endef
32
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
36   Apple RAOP protocol.
37   ShairPort does not support AirPlay v2 (video and photo streaming).
38
39   It supports multiple simultaneous streams, if your audio output chain
40   (as detected by libao) does so.
41 endef
42
43 TARGET_CFLAGS += $(FPIC)
44
45 LIBS:=-lm -lcrypto -lpthread -lavahi-common -lavahi-client -lasound
46
47 MAKE_FLAGS += \
48         CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
49         LDFLAGS="$(TARGET_LDFLAGS) $(LIBS)"
50
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
58 endef
59
60 $(eval $(call BuildPackage,shairport))