The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / shairport-sync / shairport-sync.mk
1 ################################################################################
2 #
3 # shairport-sync
4 #
5 ################################################################################
6
7 SHAIRPORT_SYNC_VERSION = 2.2.3
8 SHAIRPORT_SYNC_SITE = $(call github,mikebrady,shairport-sync,$(SHAIRPORT_SYNC_VERSION))
9
10 SHAIRPORT_SYNC_LICENSE = MIT, BSD-3c
11 SHAIRPORT_SYNC_LICENSE_FILES = LICENSES
12 SHAIRPORT_SYNC_DEPENDENCIES = alsa-lib libdaemon popt host-pkgconf
13
14 # Touching configure.ac with the patches
15 SHAIRPORT_SYNC_AUTORECONF = YES
16
17 SHAIRPORT_SYNC_CONF_OPTS = --with-alsa
18
19 # Avahi or tinysvcmdns (shaiport-sync bundles its own version of tinysvcmdns).
20 # Avahi support needs libavahi-client, which is built by avahi if avahi-daemon
21 # and dbus is selected. Since there is no BR2_PACKAGE_LIBAVAHI_CLIENT config
22 # option yet, use the avahi-daemon and dbus congig symbols to check for
23 # libavahi-client.
24 ifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy)
25 SHAIRPORT_SYNC_DEPENDENCIES += avahi
26 SHAIRPORT_SYNC_CONF_OPTS += --with-avahi
27 else
28 SHAIRPORT_SYNC_CONF_OPTS += --with-tinysvcmdns
29 endif
30
31 # OpenSSL or PolarSSL
32 ifeq ($(BR2_PACKAGE_OPENSSL),y)
33 SHAIRPORT_SYNC_DEPENDENCIES += openssl
34 SHAIRPORT_SYNC_CONF_OPTS += --with-ssl=openssl
35 else
36 SHAIRPORT_SYNC_DEPENDENCIES += polarssl
37 SHAIRPORT_SYNC_CONF_OPTS += --with-ssl=polarssl
38 endif
39
40 ifeq ($(BR2_PACKAGE_SHAIRPORT_SYNC_LIBSOXR),y)
41 SHAIRPORT_SYNC_DEPENDENCIES += libsoxr
42 SHAIRPORT_SYNC_CONF_OPTS += --with-soxr
43 endif
44
45 define SHAIRPORT_SYNC_INSTALL_TARGET_CMDS
46         $(INSTALL) -D -m 0755 $(@D)/shairport-sync \
47                 $(TARGET_DIR)/usr/bin/shairport-sync
48 endef
49
50 define SHAIRPORT_SYNC_INSTALL_INIT_SYSV
51         $(INSTALL) -D -m 0755 package/shairport-sync/S99shairport-sync \
52                 $(TARGET_DIR)/etc/init.d/S99shairport-sync
53 endef
54
55 $(eval $(autotools-package))