Skip to content

Commit 04240d6

Browse files
committed
shairport-sync: enable Airplay 2 for -openssl only
https://github.com/mikebrady/shairport-sync/blob/master/ CONFIGURATION%20FLAGS.md#cryptography states that only the OpenSSL cryptography backend is suitable for Airplay 2. Further investigation revealed that the pair_ap module within shairport-sync, which is needed for Airplay 2, does not have an Mbed TLS backend. Accordingly, this commit enables Airplay 2 only for the OpenSSL build. This has the nice side effect that for Airplay 1 the -mini or -mbedtls versions can be used without pulling in 6 MB of ffmepg libs. Signed-off-by: Christian Beier <[email protected]>
1 parent b3ab179 commit 04240d6

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

sound/shairport-sync/Makefile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
88

99
PKG_NAME:=shairport-sync
1010
PKG_VERSION:=4.3.6
11-
PKG_RELEASE:=2
11+
PKG_RELEASE:=3
1212

1313
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1414
PKG_SOURCE_URL:=https://codeload.github.com/mikebrady/shairport-sync/tar.gz/$(PKG_VERSION)?
@@ -29,15 +29,15 @@ define Package/shairport-sync/default
2929
SECTION:=sound
3030
CATEGORY:=Sound
3131
TITLE:=AirPlay compatible audio player
32-
DEPENDS:=@AUDIO_SUPPORT +libpthread +alsa-lib +libconfig +libdaemon +libpopt +libplist +libsodium +libgcrypt +libffmpeg-full +libuuid +nqptp +libmosquitto
32+
DEPENDS:=@AUDIO_SUPPORT +libpthread +alsa-lib +libconfig +libdaemon +libpopt +libmosquitto
3333
PROVIDES:=shairport-sync
3434
URL:=https://github.com/mikebrady/shairport-sync
3535
endef
3636

3737
define Package/shairport-sync-openssl
3838
$(Package/shairport-sync/default)
3939
TITLE+= (openssl)
40-
DEPENDS+= +libopenssl +libavahi-client +libsoxr
40+
DEPENDS+= +libopenssl +libavahi-client +libsoxr +libplist +libsodium +libgcrypt +libffmpeg-full +libuuid +nqptp
4141
VARIANT:=openssl
4242
endef
4343

@@ -73,18 +73,24 @@ define Package/shairport-sync-mini/description
7373
$(Package/shairport-sync/default/description)
7474

7575
Minimal version uses mbed TLS and does not include libsoxr and avahi support.
76+
Only supports classic AirPlay aka AirPlay 1.
77+
endef
78+
79+
define Package/shairport-sync-mbedtls/description
80+
$(Package/shairport-sync/default/description)
81+
82+
mbed TLS version only supports classic AirPlay aka AirPlay 1.
7683
endef
7784

7885
CONFIGURE_ARGS += \
7986
--with-alsa \
8087
--with-libdaemon \
81-
--with-airplay-2 \
8288
--with-pipe \
8389
--with-mqtt-client \
8490
--with-metadata
8591

8692
ifeq ($(BUILD_VARIANT),openssl)
87-
CONFIGURE_ARGS+= --with-ssl=openssl
93+
CONFIGURE_ARGS+= --with-ssl=openssl --with-airplay-2
8894
endif
8995

9096
ifeq ($(BUILD_VARIANT),mbedtls)

0 commit comments

Comments
 (0)