2015-09-29 13:08:13 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# squeezelite
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-04-06 18:57:57 +02:00
|
|
|
SQUEEZELITE_VERSION = 71c012ad9ba102feb95823b7b9dc17e5305689c7
|
|
|
|
SQUEEZELITE_SITE = $(call github,ralph-irving,squeezelite,$(SQUEEZELITE_VERSION))
|
2017-03-30 15:43:33 +02:00
|
|
|
SQUEEZELITE_LICENSE = GPL-3.0
|
2015-10-14 09:40:30 +02:00
|
|
|
SQUEEZELITE_LICENSE_FILES = LICENSE.txt
|
2019-04-06 18:58:00 +02:00
|
|
|
SQUEEZELITE_DEPENDENCIES = alsa-lib flac libmad libvorbis mpg123
|
2015-09-29 13:08:13 +02:00
|
|
|
SQUEEZELITE_MAKE_OPTS = -DLINKALL
|
|
|
|
|
2019-04-06 18:58:00 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_FAAD2),y)
|
|
|
|
SQUEEZELITE_DEPENDENCIES += faad2
|
|
|
|
else
|
|
|
|
SQUEEZELITE_MAKE_OPTS += -DNO_FAAD
|
|
|
|
endif
|
|
|
|
|
2015-09-29 13:08:13 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SQUEEZELITE_FFMPEG),y)
|
|
|
|
SQUEEZELITE_DEPENDENCIES += ffmpeg
|
|
|
|
SQUEEZELITE_MAKE_OPTS += -DFFMPEG
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SQUEEZELITE_DSD),y)
|
|
|
|
SQUEEZELITE_MAKE_OPTS += -DDSD
|
|
|
|
endif
|
|
|
|
|
2019-04-06 18:57:58 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SQUEEZELITE_LIRC),y)
|
|
|
|
SQUEEZELITE_DEPENDENCIES += lirc-tools
|
|
|
|
SQUEEZELITE_MAKE_OPTS += -DIR
|
|
|
|
endif
|
|
|
|
|
2015-09-29 13:08:13 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SQUEEZELITE_RESAMPLE),y)
|
|
|
|
SQUEEZELITE_DEPENDENCIES += libsoxr
|
|
|
|
SQUEEZELITE_MAKE_OPTS += -DRESAMPLE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SQUEEZELITE_VISEXPORT),y)
|
|
|
|
SQUEEZELITE_MAKE_OPTS += -DVISEXPORT
|
|
|
|
endif
|
|
|
|
|
2019-04-06 18:57:59 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_WIRINGPI),y)
|
|
|
|
SQUEEZELITE_DEPENDENCIES += wiringpi
|
|
|
|
SQUEEZELITE_MAKE_OPTS += -DRPI
|
|
|
|
endif
|
|
|
|
|
2015-09-29 13:08:13 +02:00
|
|
|
define SQUEEZELITE_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
OPTS="$(SQUEEZELITE_MAKE_OPTS)" -C $(@D) all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SQUEEZELITE_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/squeezelite \
|
|
|
|
$(TARGET_DIR)/usr/bin/squeezelite
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|