]> Git Repo - buildroot-mgba.git/blame - package/rpm/rpm.mk
package/rpm: don't use sub-options for bzip2 and xz features
[buildroot-mgba.git] / package / rpm / rpm.mk
CommitLineData
8dfd59d1 1################################################################################
6fd44d68
NK
2#
3# rpm
4#
8dfd59d1 5################################################################################
70270401 6
aa593ddb
JG
7RPM_VERSION_MAJOR = 5.2
8RPM_VERSION = $(RPM_VERSION_MAJOR).0
c7f4b964 9RPM_SITE = http://rpm5.org/files/rpm/rpm-$(RPM_VERSION_MAJOR)
8cc0bf0d 10RPM_DEPENDENCIES = zlib beecrypt neon popt openssl
ccc3fad9
GZ
11RPM_LICENSE = LGPLv2.1
12RPM_LICENSE_FILES = COPYING.LIB
6fd44d68 13
27dd3294
JG
14RPM_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
6fd44d68 17
27dd3294
JG
18RPM_CONF_OPTS = \
19 --disable-build-versionscript \
20 --disable-rpath \
6fd44d68 21 --without-selinux \
27dd3294
JG
22 --without-python \
23 --without-perl \
e42361bb 24 --with-openssl=external \
6fd44d68
NK
25 --with-zlib=$(STAGING_DIR) \
26 --with-libbeecrypt=$(STAGING_DIR) \
03d90926
PK
27 --with-popt=$(STAGING_DIR)
28
65241409
RN
29ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
30RPM_DEPENDENCIES += gettext
31endif
32
03d90926
PK
33ifeq ($(BR2_PACKAGE_PCRE),y)
34RPM_DEPENDENCIES += pcre
aaffd209 35RPM_CONF_OPTS += --with-pcre=external
03d90926 36else
aaffd209 37RPM_CONF_OPTS += --with-pcre=no
03d90926
PK
38endif
39
40ifeq ($(BR2_PACKAGE_FILE),y)
41RPM_DEPENDENCIES += file
aaffd209 42RPM_CONF_OPTS += --with-file=external
03d90926 43else
aaffd209 44RPM_CONF_OPTS += --with-file=no
03d90926 45endif
f16a9799 46
3c476540
RN
47# xz payload support needs a toolchain w/ C++
48ifeq ($(BR2_PACKAGE_XZ)$(BR2_INSTALL_LIBSTDCPP),yy)
aaffd209 49RPM_CONF_OPTS += --with-xz
f16a9799
NK
50endif
51
3c476540 52ifeq ($(BR2_PACKAGE_BZIP2),y)
aaffd209 53RPM_CONF_OPTS += --with-bzip2
e0d9d33c 54RPM_DEPENDENCIES += bzip2
f16a9799 55endif
6fd44d68 56
3d82609b 57RPM_MAKE = $(MAKE1)
509fe4a6 58
57f2b8d2 59RPM_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) program_transform_name= install
6fd44d68 60
e1502ebc 61$(eval $(autotools-package))
This page took 1.305437 seconds and 4 git commands to generate.