summaryrefslogtreecommitdiff
path: root/package/rpm/Makefile
blob: ef8256231f3ad82b6710bb162d729217e73c3930 (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		rpm
PKG_VERSION:=		4.7.2
PKG_RELEASE:=		1
PKG_MD5SUM:=		224715646325df4cd3904e3ac9e16186
PKG_DESCR:=		Package Manager
PKG_SECTION:=		base
PKG_BUILDDEP:=		nss libdb
PKG_URL:=		http://www.rpm.org/
PKG_SITES:=		http://rpm.org/releases/rpm-4.7.x/

PKG_HOST_DEPENDS:=	!cygwin
PKG_TARGET_DEPENDS:=	!foxboard

DISTFILES:=		${PKG_NAME}-$(PKG_VERSION).tar.bz2

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,RPM,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

TCPPFLAGS+=		-I${STAGING_DIR}/usr/include/nspr \
			-I${STAGING_DIR}/usr/include/nss
CONFIGURE_ARGS:=	--with-external-db \
			--without-lua

post-install:
	$(INSTALL_DIR) $(IDIR_RPM)/usr/bin $(IDIR_RPM)/usr/lib
	$(INSTALL_DIR) $(IDIR_RPM)/usr/lib/rpm
	$(INSTALL_BIN) $(WRKINST)/bin/rpm $(IDIR_RPM)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/bin/rpm* $(IDIR_RPM)/usr/bin
	$(CP) $(WRKINST)/usr/lib/*.so* $(IDIR_RPM)/usr/lib
	$(CP) $(WRKINST)/usr/lib/rpm/* $(IDIR_RPM)/usr/lib/rpm

include ${TOPDIR}/mk/pkg-bottom.mk