kumquat-buildroot/package/casync/casync.mk
Yair Ben-Avraham f580f58f94 package/casync: new package
Signed-off-by: Yair Ben-Avraham <yairba@protonmail.com>
[yann.morin.1998@free.fr:
  - correctly fix build without lzma in an upstreamable fashion
  - actually fix the build without udev
  - depend on udev, not libudev (which does not exist)
  - don't use += for the first variable assignment to _CONF_OPTS
  - explicitly disable unsupported fuzz options
  - add explicit optiopnal support for bash-completion
  - drop useless comments about "features" and "booleans"
  - fix alphabetical order in DEVELOPERS
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-01-10 11:47:11 +01:00

65 lines
1.5 KiB
Makefile

################################################################################
#
# casync
#
################################################################################
CASYNC_VERSION = 4ad9bcb94bc83ff36cfc65515107ea06a88c2dfc
CASYNC_SITE = $(call github,systemd,casync,$(CASYNC_VERSION))
CASYNC_LICENSE = LGPL-2.1+
CASYNC_LICENSE_FILES = LICENSE.LGPL2.1
CASYNC_DEPENDENCIES = acl libcurl openssl
CASYNC_CONF_OPTS = -Dman=false -Doss-fuzz=false -Dllvm-fuzz=false
ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
CASYNC_DEPENDENCIES += bash-completion
# The default path is correct, leave it as-is
else
CASYNC_CONF_OPTS += -Dbashcompletiondir=no
endif
ifeq ($(BR2_PACKAGE_LIBFUSE),y)
CASYNC_DEPENDENCIES += libfuse
CASYNC_CONF_OPTS += -Dfuse=true
else
CASYNC_CONF_OPTS += -Dfuse=false
endif
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
CASYNC_DEPENDENCIES += libselinux
CASYNC_CONF_OPTS += -Dselinux=true
else
CASYNC_CONF_OPTS += -Dselinux=false
endif
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
CASYNC_DEPENDENCIES += udev
CASYNC_CONF_OPTS += -Dudev=true
else
CASYNC_CONF_OPTS += -Dudev=false
endif
ifeq ($(BR2_PACKAGE_LIBZSTD),y)
CASYNC_DEPENDENCIES += libzstd
CASYNC_CONF_OPTS += -Dlibzstd=enabled
else
CASYNC_CONF_OPTS += -Dlibzstd=disabled
endif
ifeq ($(BR2_PACKAGE_XZ),y)
CASYNC_DEPENDENCIES += xz
CASYNC_CONF_OPTS += -Dliblzma=enabled
else
CASYNC_CONF_OPTS += -Dliblzma=disabled
endif
ifeq ($(BR2_PACKAGE_ZLIB),y)
CASYNC_DEPENDENCIES += zlib
CASYNC_CONF_OPTS += -Dlibz=enabled
else
CASYNC_CONF_OPTS += -Dlibz=disabled
endif
$(eval $(meson-package))