30a3e8d108
We want to use SPDX identifier for license string as much as possible. SPDX short identifier for LGPLv2.1/LGPLv2.1+ is LGPL-2.1/LGPL-2.1+. This change is done using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/LGPLv2.1(\+)?/LGPL-2.1\1/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# lxc
|
|
#
|
|
################################################################################
|
|
|
|
LXC_VERSION = 2.0.7
|
|
LXC_SITE = https://linuxcontainers.org/downloads/lxc
|
|
LXC_LICENSE = LGPL-2.1+
|
|
LXC_LICENSE_FILES = COPYING
|
|
LXC_DEPENDENCIES = libcap host-pkgconf
|
|
LXC_INSTALL_STAGING = YES
|
|
|
|
LXC_CONF_OPTS = --disable-apparmor --with-distro=buildroot \
|
|
--disable-python --disable-werror \
|
|
$(if $(BR2_PACKAGE_BASH),,--disable-bash)
|
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
LXC_CONF_OPTS += --enable-gnutls
|
|
LXC_DEPENDENCIES += gnutls
|
|
else
|
|
LXC_CONF_OPTS += --disable-gnutls
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
|
LXC_CONF_OPTS += --enable-seccomp
|
|
LXC_DEPENDENCIES += libseccomp
|
|
else
|
|
LXC_CONF_OPTS += --disable-seccomp
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
LXC_CONF_OPTS += --enable-selinux
|
|
LXC_DEPENDENCIES += libselinux
|
|
else
|
|
LXC_CONF_OPTS += --disable-selinux
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y)
|
|
LXC_CONF_OPTS += --enable-lua
|
|
LXC_DEPENDENCIES += luainterpreter
|
|
ifeq ($(BR2_PACKAGE_LUAJIT),y)
|
|
# By default, lxc will only search for lua.pc
|
|
LXC_CONF_OPTS += --with-lua-pc=luajit
|
|
endif
|
|
else
|
|
LXC_CONF_OPTS += --disable-lua
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|