Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= rpm
  5. PKG_VERSION:= 4.7.2
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= nss libdb
  8. PKG_MD5SUM:= 224715646325df4cd3904e3ac9e16186
  9. PKG_DESCR:= Package Manager
  10. PKG_SECTION:= base
  11. PKG_URL:= http://www.rpm.org
  12. PKG_SITES:= http://rpm.org/releases/rpm-4.7.x/
  13. DISTFILES:= ${PKG_NAME}-$(PKG_VERSION).tar.bz2
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,RPM,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. TCPPFLAGS+= -I${STAGING_DIR}/usr/include/nspr \
  17. -I${STAGING_DIR}/usr/include/nss
  18. CONFIGURE_STYLE:= gnu
  19. CONFIGURE_ARGS:= --with-external-db \
  20. --without-lua
  21. BUILD_STYLE:= auto
  22. INSTALL_STYLE:= auto
  23. post-install:
  24. $(INSTALL_DIR) $(IDIR_RPM)/usr/bin $(IDIR_RPM)/usr/lib
  25. $(INSTALL_DIR) $(IDIR_RPM)/usr/lib/rpm
  26. $(INSTALL_BIN) $(WRKINST)/bin/rpm $(IDIR_RPM)/usr/bin
  27. $(INSTALL_BIN) $(WRKINST)/usr/bin/rpm* $(IDIR_RPM)/usr/bin
  28. $(CP) $(WRKINST)/usr/lib/*.so* $(IDIR_RPM)/usr/lib
  29. $(CP) $(WRKINST)/usr/lib/rpm/* $(IDIR_RPM)/usr/lib/rpm
  30. include ${TOPDIR}/mk/pkg-bottom.mk