-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (53 loc) · 1.95 KB
/
Copy pathMakefile
File metadata and controls
69 lines (53 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# Copyright (C) 2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# updated to work with latest source from abrasive
#
include $(TOPDIR)/rules.mk
PKG_NAME:=shairport-sync
PKG_VERSION:=2.1.12
PKG_RELEASE:=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/mikebrady/shairport-sync.git
PKG_SOURCE_VERSION:=$(PKG_VERSION)
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_PARALLEL:=1
PKG_BUILD_DEPENDS:= +libpthread +libopenssl +libavahi-client +alsa-lib +libdaemon +libsoxr
include $(INCLUDE_DIR)/package.mk
CONFIGURE_ARGS+= \
--with-alsa \
--with-avahi \
--with-soxr \
--with-ssl=openssl
define Build/Configure
(cd $(PKG_BUILD_DIR); autoreconf -i -f)
$(call Build/Configure/Default, )
endef
define Package/shairport-sync/Default
SECTION:=sound
CATEGORY:=Sound
TITLE:=iPhone/iTunes/Quicktime Player compatible Audio Player
endef
define Package/shairport-sync
$(Package/shairport-sync/Default)
DEPENDS:= +libpthread +libopenssl +libavahi-client +alsa-lib +libdaemon +libsoxr +libpopt
endef
define Package/shairport-sync/description
Shairport Sync is server software that implements the Apple-originated RAOP protocol for
playback of audio from a compatible remote client such as the iPhone, iTunes, Apple TV, Quicktime Player or forked-daapd.
Shairport Sync implements audio synchronisation, supporting multi-room use.
Shairport Sync supports audio only.
endef
define Package/shairport-sync/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/shairport-sync $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_BIN) ./files/init.d/shairport-sync $(1)/etc/init.d/
$(INSTALL_DATA) ./files/config/shairport-sync $(1)/etc/config/
$(INSTALL_DATA) ./files/asound.conf $(1)/etc/
endef
$(eval $(call BuildPackage,shairport-sync))