docker-engine: new package
[buildroot-gz.git] / package / rpm / rpm.mk
blob7f346b213a0d288218fd6a7b67ce8fdfad4339a0
1 ################################################################################
3 # rpm
5 ################################################################################
7 RPM_VERSION_MAJOR = 5.2
8 RPM_VERSION = $(RPM_VERSION_MAJOR).0
9 RPM_SITE = http://rpm5.org/files/rpm/rpm-$(RPM_VERSION_MAJOR)
10 RPM_DEPENDENCIES = host-pkgconf zlib beecrypt neon popt openssl
11 RPM_LICENSE = LGPLv2.1
12 RPM_LICENSE_FILES = COPYING.LIB
14 RPM_CONF_ENV = \
15 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/beecrypt -I$(STAGING_DIR)/usr/include/neon -DHAVE_MUTEX_THREAD_ONLY" \
16 ac_cv_va_copy=yes
18 RPM_CONF_OPTS = \
19 --disable-build-versionscript \
20 --disable-rpath \
21 --without-selinux \
22 --without-python \
23 --without-perl \
24 --with-openssl=external \
25 --with-zlib=external \
26 --with-libbeecrypt=$(STAGING_DIR) \
27 --with-popt=external
29 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
30 RPM_DEPENDENCIES += gettext
31 endif
33 ifeq ($(BR2_PACKAGE_PCRE),y)
34 RPM_DEPENDENCIES += pcre
35 RPM_CONF_OPTS += --with-pcre=external
36 else
37 RPM_CONF_OPTS += --with-pcre=none
38 endif
40 ifeq ($(BR2_PACKAGE_FILE),y)
41 RPM_DEPENDENCIES += file
42 RPM_CONF_OPTS += --with-file=external
43 else
44 RPM_CONF_OPTS += --with-file=none
45 endif
47 # xz payload support needs a toolchain w/ C++
48 ifeq ($(BR2_PACKAGE_XZ)$(BR2_INSTALL_LIBSTDCPP),yy)
49 RPM_DEPENDENCIES += xz
50 RPM_CONF_OPTS += --with-xz=external
51 else
52 RPM_CONF_OPTS += --with-xz=none
53 endif
55 ifeq ($(BR2_PACKAGE_BZIP2),y)
56 RPM_CONF_OPTS += --with-bzip2
57 RPM_DEPENDENCIES += bzip2
58 endif
60 RPM_MAKE = $(MAKE1)
62 RPM_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) program_transform_name= install
64 $(eval $(autotools-package))