aboutsummaryrefslogtreecommitdiffstats
path: root/package/rpm/rpm.mk
blob: 0104f1719a3b78b3d4766d1a6e33b87ef10e8218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#############################################################
#
# rpm
#
#############################################################
RPM_VERSION = 5.2.0
RPM_SITE = http://rpm5.org/files/rpm/rpm-5.2/
RPM_AUTORECONF = NO
RPM_LIBTOOL_PATCH = NO

RPM_DEPENDENCIES = zlib beecrypt neon popt

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 
# the above doesn't work with shared config.cache
RPM_USE_CONFIG_CACHE = NO

RPM_CONF_OPT = --disable-build-versionscript --disable-rpath \
	--without-selinux \
	--without-python --without-perl \
	--with-zlib=$(STAGING_DIR) \
	--with-libbeecrypt=$(STAGING_DIR) \
	--with-popt=$(STAGING_DIR) 

ifeq ($(BR2_PACKAGE_RPM_XZ_PAYLOADS),y)
RPM_CONF_OPT+=--with-xz
endif

ifeq ($(BR2_PACKAGE_RPM_BZIP2_PAYLOADS),y)
RPM_CONF_OPT+=--with-bzip2
RPM_DEPENDENCIES+=bzip2
endif

RPM_MAKE = $(MAKE1)

RPM_INSTALL_TARGET_OPT=DESTDIR=$(TARGET_DIR) program_transform_name= install

$(eval $(call AUTOTARGETS,package,rpm))