buildroot/package/sbc/sbc.mk
John Keeping 3d8b6e9e25 package/sbc: add config option to control tools build
libsndfile is only needed by the sbctester utility and the library can
be built without this dependency.

Add a config option to cover not just sbctester but the command-line
utilities as well.  While the utilities may be useful for debugging,
normal usage will only need libsbc and these applications can be
omitted.

Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-11-14 23:03:06 +01:00

24 lines
653 B
Makefile

################################################################################
#
# sbc
#
################################################################################
SBC_VERSION = 2.0
SBC_SOURCE = sbc-$(SBC_VERSION).tar.xz
SBC_SITE = $(BR2_KERNEL_MIRROR)/linux/bluetooth
SBC_INSTALL_STAGING = YES
SBC_DEPENDENCIES = host-pkgconf
SBC_LICENSE := LGPL-2.1+ (library)
SBC_LICENSE_FILES = COPYING COPYING.LIB
ifeq ($(BR2_PACKAGE_SBC_TOOLS),y)
SBC_DEPENDENCIES += libsndfile
SBC_CONF_OPTS += --enable-tools --enable-tester
SBC_LICENSE += , GPL-2.0+ (programs)
else
SBC_CONF_OPTS += --disable-tools --disable-tester
endif
$(eval $(autotools-package))