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
|
|
|
|
2013-12-18 19:20:02 +01:00
|
|
|
RPM_VERSION_MAJOR = 5.2
|
|
|
|
RPM_VERSION = $(RPM_VERSION_MAJOR).0
|
2014-07-31 10:46:58 +02:00
|
|
|
RPM_SITE = http://rpm5.org/files/rpm/rpm-$(RPM_VERSION_MAJOR)
|
2015-02-06 10:19:45 +01:00
|
|
|
RPM_DEPENDENCIES = host-pkgconf zlib beecrypt neon popt openssl
|
2014-06-26 21:21:11 +02:00
|
|
|
RPM_LICENSE = LGPLv2.1
|
|
|
|
RPM_LICENSE_FILES = COPYING.LIB
|
2008-04-14 12:56:41 +02:00
|
|
|
|
2014-12-30 08:36:23 +01:00
|
|
|
RPM_CONF_ENV = \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/beecrypt -I$(STAGING_DIR)/usr/include/neon -DHAVE_MUTEX_THREAD_ONLY" \
|
|
|
|
ac_cv_va_copy=yes
|
2008-04-14 12:56:41 +02:00
|
|
|
|
2014-12-30 08:36:23 +01:00
|
|
|
RPM_CONF_OPTS = \
|
|
|
|
--disable-build-versionscript \
|
|
|
|
--disable-rpath \
|
2008-04-14 12:56:41 +02:00
|
|
|
--without-selinux \
|
2014-12-30 08:36:23 +01:00
|
|
|
--without-python \
|
|
|
|
--without-perl \
|
2012-04-04 11:23:44 +02:00
|
|
|
--with-openssl=external \
|
2015-02-06 10:19:45 +01:00
|
|
|
--with-zlib=external \
|
2008-04-14 12:56:41 +02:00
|
|
|
--with-libbeecrypt=$(STAGING_DIR) \
|
2015-02-06 10:19:45 +01:00
|
|
|
--with-popt=external
|
2011-11-14 16:17:14 +01:00
|
|
|
|
2015-01-18 20:53:07 +01:00
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
|
|
|
RPM_DEPENDENCIES += gettext
|
|
|
|
endif
|
|
|
|
|
2011-11-14 16:17:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
|
|
RPM_DEPENDENCIES += pcre
|
2014-09-27 21:32:44 +02:00
|
|
|
RPM_CONF_OPTS += --with-pcre=external
|
2011-11-14 16:17:14 +01:00
|
|
|
else
|
2015-01-18 20:53:10 +01:00
|
|
|
RPM_CONF_OPTS += --with-pcre=none
|
2011-11-14 16:17:14 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FILE),y)
|
|
|
|
RPM_DEPENDENCIES += file
|
2014-09-27 21:32:44 +02:00
|
|
|
RPM_CONF_OPTS += --with-file=external
|
2011-11-14 16:17:14 +01:00
|
|
|
else
|
2015-01-18 20:53:10 +01:00
|
|
|
RPM_CONF_OPTS += --with-file=none
|
2011-11-14 16:17:14 +01:00
|
|
|
endif
|
2009-12-25 11:29:22 +01:00
|
|
|
|
2015-01-18 20:53:08 +01:00
|
|
|
# xz payload support needs a toolchain w/ C++
|
|
|
|
ifeq ($(BR2_PACKAGE_XZ)$(BR2_INSTALL_LIBSTDCPP),yy)
|
2015-01-18 20:53:09 +01:00
|
|
|
RPM_DEPENDENCIES += xz
|
|
|
|
RPM_CONF_OPTS += --with-xz=external
|
|
|
|
else
|
|
|
|
RPM_CONF_OPTS += --with-xz=none
|
2009-12-25 11:29:22 +01:00
|
|
|
endif
|
|
|
|
|
2015-01-18 20:53:08 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
RPM_CONF_OPTS += --with-bzip2
|
2013-07-20 08:52:43 +02:00
|
|
|
RPM_DEPENDENCIES += bzip2
|
2009-12-25 11:29:22 +01:00
|
|
|
endif
|
2008-04-14 12:56:41 +02:00
|
|
|
|
2009-11-23 16:22:36 +01:00
|
|
|
RPM_MAKE = $(MAKE1)
|
2008-04-29 07:04:14 +02:00
|
|
|
|
2014-09-27 21:32:40 +02:00
|
|
|
RPM_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) program_transform_name= install
|
2008-04-14 12:56:41 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|