]>
Commit | Line | Data |
---|---|---|
8dfd59d1 | 1 | ################################################################################ |
6fd44d68 NK |
2 | # |
3 | # rpm | |
4 | # | |
8dfd59d1 | 5 | ################################################################################ |
70270401 | 6 | |
aa593ddb JG |
7 | RPM_VERSION_MAJOR = 5.2 |
8 | RPM_VERSION = $(RPM_VERSION_MAJOR).0 | |
c7f4b964 | 9 | RPM_SITE = http://rpm5.org/files/rpm/rpm-$(RPM_VERSION_MAJOR) |
8cc0bf0d | 10 | RPM_DEPENDENCIES = zlib beecrypt neon popt openssl |
ccc3fad9 GZ |
11 | RPM_LICENSE = LGPLv2.1 |
12 | RPM_LICENSE_FILES = COPYING.LIB | |
6fd44d68 | 13 | |
27dd3294 JG |
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 | |
6fd44d68 | 17 | |
27dd3294 JG |
18 | RPM_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 |
29 | ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) |
30 | RPM_DEPENDENCIES += gettext | |
31 | endif | |
32 | ||
03d90926 PK |
33 | ifeq ($(BR2_PACKAGE_PCRE),y) |
34 | RPM_DEPENDENCIES += pcre | |
aaffd209 | 35 | RPM_CONF_OPTS += --with-pcre=external |
03d90926 | 36 | else |
aaffd209 | 37 | RPM_CONF_OPTS += --with-pcre=no |
03d90926 PK |
38 | endif |
39 | ||
40 | ifeq ($(BR2_PACKAGE_FILE),y) | |
41 | RPM_DEPENDENCIES += file | |
aaffd209 | 42 | RPM_CONF_OPTS += --with-file=external |
03d90926 | 43 | else |
aaffd209 | 44 | RPM_CONF_OPTS += --with-file=no |
03d90926 | 45 | endif |
f16a9799 | 46 | |
3c476540 RN |
47 | # xz payload support needs a toolchain w/ C++ |
48 | ifeq ($(BR2_PACKAGE_XZ)$(BR2_INSTALL_LIBSTDCPP),yy) | |
aaffd209 | 49 | RPM_CONF_OPTS += --with-xz |
f16a9799 NK |
50 | endif |
51 | ||
3c476540 | 52 | ifeq ($(BR2_PACKAGE_BZIP2),y) |
aaffd209 | 53 | RPM_CONF_OPTS += --with-bzip2 |
e0d9d33c | 54 | RPM_DEPENDENCIES += bzip2 |
f16a9799 | 55 | endif |
6fd44d68 | 56 | |
3d82609b | 57 | RPM_MAKE = $(MAKE1) |
509fe4a6 | 58 | |
57f2b8d2 | 59 | RPM_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) program_transform_name= install |
6fd44d68 | 60 | |
e1502ebc | 61 | $(eval $(autotools-package)) |