2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-04-14 12:56:41 +02:00
|
|
|
#
|
|
|
|
# rpm
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2019-03-30 15:49:40 +01:00
|
|
|
RPM_VERSION_MAJOR = 4.14
|
|
|
|
RPM_VERSION = $(RPM_VERSION_MAJOR).2.1
|
2016-11-18 19:50:53 +01:00
|
|
|
RPM_SOURCE = rpm-$(RPM_VERSION).tar.bz2
|
2017-03-13 13:31:20 +01:00
|
|
|
RPM_SITE = http://ftp.rpm.org/releases/rpm-$(RPM_VERSION_MAJOR).x
|
2019-03-30 15:49:41 +01:00
|
|
|
RPM_DEPENDENCIES = \
|
|
|
|
host-pkgconf \
|
|
|
|
berkeleydb \
|
|
|
|
$(if $(BR2_PACKAGE_BZIP2),bzip2) \
|
2019-03-31 16:49:34 +02:00
|
|
|
$(if $(BR2_PACKAGE_ELFUTILS),elfutils) \
|
2019-03-30 15:49:41 +01:00
|
|
|
file \
|
|
|
|
popt \
|
2019-03-30 15:49:42 +01:00
|
|
|
$(if $(BR2_PACKAGE_XZ),xz) \
|
2019-03-30 15:49:41 +01:00
|
|
|
zlib \
|
2018-11-19 12:19:45 +01:00
|
|
|
$(TARGET_NLS_DEPENDENCIES)
|
2017-03-30 15:43:37 +02:00
|
|
|
RPM_LICENSE = GPL-2.0 or LGPL-2.0 (library only)
|
2016-11-18 19:50:53 +01:00
|
|
|
RPM_LICENSE_FILES = COPYING
|
2019-04-27 22:41:22 +02:00
|
|
|
# Needed to fix an issue with -lintl linking
|
2019-04-25 18:53:19 +02:00
|
|
|
RPM_AUTORECONF = YES
|
2008-04-14 12:56:41 +02:00
|
|
|
|
2014-12-30 08:36:23 +01:00
|
|
|
RPM_CONF_OPTS = \
|
2016-11-18 19:50:53 +01:00
|
|
|
--disable-python \
|
2014-12-30 08:36:23 +01:00
|
|
|
--disable-rpath \
|
2016-11-18 19:50:53 +01:00
|
|
|
--with-external-db \
|
|
|
|
--with-gnu-ld \
|
|
|
|
--without-hackingdocs \
|
|
|
|
--without-lua
|
2011-11-14 16:17:14 +01:00
|
|
|
|
2016-11-18 19:50:53 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ACL),y)
|
|
|
|
RPM_DEPENDENCIES += acl
|
|
|
|
RPM_CONF_OPTS += --with-acl
|
|
|
|
else
|
|
|
|
RPM_CONF_OPTS += --without-acl
|
2015-01-18 20:53:07 +01:00
|
|
|
endif
|
|
|
|
|
2019-03-30 15:49:44 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
|
|
|
RPM_DEPENDENCIES += dbus
|
|
|
|
RPM_CONF_OPTS += --enable-plugins
|
|
|
|
else
|
|
|
|
RPM_CONF_OPTS += --disable-plugins
|
|
|
|
endif
|
|
|
|
|
2019-03-30 15:49:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
RPM_DEPENDENCIES += libcap
|
|
|
|
RPM_CONF_OPTS += --with-cap
|
|
|
|
else
|
|
|
|
RPM_CONF_OPTS += --without-cap
|
|
|
|
endif
|
|
|
|
|
2016-11-18 19:50:53 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBNSS),y)
|
|
|
|
RPM_DEPENDENCIES += libnss
|
2019-03-30 15:49:40 +01:00
|
|
|
RPM_CONF_OPTS += --with-crypto=nss
|
2016-11-18 19:50:53 +01:00
|
|
|
RPM_CFLAGS += -I$(STAGING_DIR)/usr/include/nss -I$(STAGING_DIR)/usr/include/nspr
|
2019-03-30 15:49:46 +01:00
|
|
|
else ifeq ($(BR2_PACKAGE_BEECRYPT),y)
|
2016-11-18 19:50:53 +01:00
|
|
|
RPM_DEPENDENCIES += beecrypt
|
2019-03-30 15:49:40 +01:00
|
|
|
RPM_CONF_OPTS += --with-crypto=beecrypt
|
2016-11-18 19:50:53 +01:00
|
|
|
RPM_CFLAGS += -I$(STAGING_DIR)/usr/include/beecrypt
|
2019-03-30 15:49:46 +01:00
|
|
|
else
|
|
|
|
RPM_DEPENDENCIES += openssl
|
|
|
|
RPM_CONF_OPTS += --with-crypto=openssl
|
2011-11-14 16:17:14 +01:00
|
|
|
endif
|
|
|
|
|
2017-07-03 23:18:07 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GETTEXT_PROVIDES_LIBINTL),y)
|
2016-11-18 19:50:53 +01:00
|
|
|
RPM_CONF_OPTS += --with-libintl-prefix=$(STAGING_DIR)/usr
|
2011-11-14 16:17:14 +01:00
|
|
|
else
|
2016-11-18 19:50:53 +01:00
|
|
|
RPM_CONF_OPTS += --without-libintl-prefix
|
2011-11-14 16:17:14 +01:00
|
|
|
endif
|
2009-12-25 11:29:22 +01:00
|
|
|
|
2016-11-18 19:50:53 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBARCHIVE),y)
|
|
|
|
RPM_DEPENDENCIES += libarchive
|
|
|
|
RPM_CONF_OPTS += --with-archive
|
2015-01-18 20:53:09 +01:00
|
|
|
else
|
2016-11-18 19:50:53 +01:00
|
|
|
RPM_CONF_OPTS += --without-archive
|
2009-12-25 11:29:22 +01:00
|
|
|
endif
|
|
|
|
|
2016-11-18 19:50:53 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
|
|
RPM_DEPENDENCIES += libselinux
|
|
|
|
RPM_CONF_OPTS += --with-selinux
|
|
|
|
else
|
|
|
|
RPM_CONF_OPTS += --without-selinux
|
2009-12-25 11:29:22 +01:00
|
|
|
endif
|
2008-04-14 12:56:41 +02:00
|
|
|
|
2019-03-30 15:49:47 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
|
|
|
RPM_DEPENDENCIES += zstd
|
|
|
|
RPM_CONF_OPTS += --enable-zstd
|
|
|
|
else
|
|
|
|
RPM_CONF_OPTS += --disable-zstd
|
|
|
|
endif
|
|
|
|
|
2016-11-18 19:50:53 +01:00
|
|
|
# ac_cv_prog_cc_c99: RPM uses non-standard GCC extensions (ex. `asm`).
|
|
|
|
RPM_CONF_ENV = \
|
|
|
|
ac_cv_prog_cc_c99='-std=gnu99' \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(RPM_CFLAGS)"
|
2008-04-14 12:56:41 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|