7f346b213a0d288218fd6a7b67ce8fdfad4339a0
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / rpm / rpm.mk
1 ################################################################################
2 #
3 # rpm
4 #
5 ################################################################################
6
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
13
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
17
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
28
29 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
30 RPM_DEPENDENCIES += gettext
31 endif
32
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
39
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
46
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
54
55 ifeq ($(BR2_PACKAGE_BZIP2),y)
56 RPM_CONF_OPTS += --with-bzip2
57 RPM_DEPENDENCIES += bzip2
58 endif
59
60 RPM_MAKE = $(MAKE1)
61
62 RPM_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) program_transform_name= install
63
64 $(eval $(autotools-package))