kumquat-buildroot/package/rpm/rpm.mk

53 lines
1.4 KiB
Makefile
Raw Normal View History

################################################################################
2008-04-14 12:56:41 +02:00
#
# rpm
#
################################################################################
RPM_VERSION_MAJOR = 5.2
RPM_VERSION = $(RPM_VERSION_MAJOR).0
RPM_SITE = http://rpm5.org/files/rpm/rpm-$(RPM_VERSION_MAJOR)
RPM_DEPENDENCIES = zlib beecrypt neon popt openssl
RPM_LICENSE = LGPLv2.1
RPM_LICENSE_FILES = COPYING.LIB
2008-04-14 12:56:41 +02:00
2009-12-25 11:29:22 +01:00
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
2008-04-14 12:56:41 +02:00
RPM_CONF_OPTS = --disable-build-versionscript --disable-rpath \
2008-04-14 12:56:41 +02:00
--without-selinux \
--without-python --without-perl \
--with-openssl=external \
2008-04-14 12:56:41 +02:00
--with-zlib=$(STAGING_DIR) \
--with-libbeecrypt=$(STAGING_DIR) \
--with-popt=$(STAGING_DIR)
ifeq ($(BR2_PACKAGE_PCRE),y)
RPM_DEPENDENCIES += pcre
RPM_CONF_OPTS += --with-pcre=external
else
RPM_CONF_OPTS += --with-pcre=no
endif
ifeq ($(BR2_PACKAGE_FILE),y)
RPM_DEPENDENCIES += file
RPM_CONF_OPTS += --with-file=external
else
RPM_CONF_OPTS += --with-file=no
endif
2009-12-25 11:29:22 +01:00
ifeq ($(BR2_PACKAGE_RPM_XZ_PAYLOADS),y)
RPM_CONF_OPTS += --with-xz
2009-12-25 11:29:22 +01:00
endif
ifeq ($(BR2_PACKAGE_RPM_BZIP2_PAYLOADS),y)
RPM_CONF_OPTS += --with-bzip2
RPM_DEPENDENCIES += bzip2
2009-12-25 11:29:22 +01:00
endif
2008-04-14 12:56:41 +02:00
RPM_MAKE = $(MAKE1)
RPM_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) program_transform_name= install
2008-04-14 12:56:41 +02:00
$(eval $(autotools-package))