parted can be configured without support for readline (ie. can be not interactive), so we can relax the dependency on readline, and make it an optional feature. (Based on a code-snippet from Thomas.) Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
30 lines
735 B
Makefile
30 lines
735 B
Makefile
################################################################################
|
|
#
|
|
# parted
|
|
#
|
|
################################################################################
|
|
|
|
PARTED_VERSION = 3.1
|
|
PARTED_SOURCE = parted-$(PARTED_VERSION).tar.xz
|
|
PARTED_SITE = $(BR2_GNU_MIRROR)/parted
|
|
PARTED_DEPENDENCIES = util-linux
|
|
PARTED_INSTALL_STAGING = YES
|
|
PARTED_LICENSE = GPLv3+
|
|
PARTED_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
PARTED_DEPENDENCIES += readline
|
|
PARTED_CONF_OPT += --with-readline
|
|
else
|
|
PARTED_CONF_OPT += --without-readline
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LVM2),y)
|
|
PARTED_DEPENDENCIES += lvm2
|
|
PARTED_CONF_OPT += --enable-device-mapper
|
|
else
|
|
PARTED_CONF_OPT += --disable-device-mapper
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|