package/nbd: add option for the trdump utility
[buildroot-gz.git] / package / squeezelite / squeezelite.mk
blob7a82f4a026ea7914429d4aafa94aff6a8927dea4
1 ################################################################################
3 # squeezelite
5 ################################################################################
7 SQUEEZELITE_VERSION = v1.8
8 SQUEEZELITE_SITE = $(call github,robadenshi,squeezelite,$(SQUEEZELITE_VERSION))
9 SQUEEZELITE_LICENSE = GPLv3
10 SQUEEZELITE_LICENSE_FILES = LICENSE.txt
11 SQUEEZELITE_DEPENDENCIES = alsa-lib flac libmad libvorbis faad2 mpg123
12 SQUEEZELITE_MAKE_OPTS = -DLINKALL
14 ifeq ($(BR2_PACKAGE_SQUEEZELITE_FFMPEG),y)
15 SQUEEZELITE_DEPENDENCIES += ffmpeg
16 SQUEEZELITE_MAKE_OPTS += -DFFMPEG
17 endif
19 ifeq ($(BR2_PACKAGE_SQUEEZELITE_DSD),y)
20 SQUEEZELITE_MAKE_OPTS += -DDSD
21 endif
23 ifeq ($(BR2_PACKAGE_SQUEEZELITE_RESAMPLE),y)
24 SQUEEZELITE_DEPENDENCIES += libsoxr
25 SQUEEZELITE_MAKE_OPTS += -DRESAMPLE
26 endif
28 ifeq ($(BR2_PACKAGE_SQUEEZELITE_VISEXPORT),y)
29 SQUEEZELITE_MAKE_OPTS += -DVISEXPORT
30 endif
32 define SQUEEZELITE_BUILD_CMDS
33 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
34 OPTS="$(SQUEEZELITE_MAKE_OPTS)" -C $(@D) all
35 endef
37 define SQUEEZELITE_INSTALL_TARGET_CMDS
38 $(INSTALL) -D -m 0755 $(@D)/squeezelite \
39 $(TARGET_DIR)/usr/bin/squeezelite
40 endef
42 $(eval $(generic-package))