package/rpm: add optional bzip2 dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 30 Mar 2019 14:49:41 +0000 (15:49 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 31 Mar 2019 13:01:59 +0000 (15:01 +0200)
There is no --{disable,enable}-bzip2 option

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/rpm/rpm.mk

index eb9a4a5a519b356ffa980fefd0c12721ca88b506..e076d2a17f7bba59e92170922cbf42b7f4d37771 100644 (file)
@@ -8,7 +8,13 @@ RPM_VERSION_MAJOR = 4.14
 RPM_VERSION = $(RPM_VERSION_MAJOR).2.1
 RPM_SOURCE = rpm-$(RPM_VERSION).tar.bz2
 RPM_SITE = http://ftp.rpm.org/releases/rpm-$(RPM_VERSION_MAJOR).x
-RPM_DEPENDENCIES = host-pkgconf berkeleydb file popt zlib \
+RPM_DEPENDENCIES = \
+       host-pkgconf \
+       berkeleydb \
+       $(if $(BR2_PACKAGE_BZIP2),bzip2) \
+       file \
+       popt \
+       zlib \
        $(TARGET_NLS_DEPENDENCIES)
 RPM_LICENSE = GPL-2.0 or LGPL-2.0 (library only)
 RPM_LICENSE_FILES = COPYING