1
0

Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= parted
  5. PKG_VERSION:= 3.2
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 858b589c22297cacdf437f3baff6f04b333087521ab274f7ab677cb8c6bb78e4
  8. PKG_DESCR:= partition table editor
  9. PKG_SECTION:= sys/fs
  10. PKG_DEPENDS:= libblkid libuuid libpthread
  11. PKG_BUILDDEP:= util-linux
  12. PKG_URL:= http://www.gnu.org/software/parted/index.shtml
  13. PKG_SITES:= $(MASTER_SITE_GNU:=parted/)
  14. PKG_BUILDDEP_UCLIBC:= libiconv-tiny
  15. PKG_BUILDDEP_UCLIBC_NG:=libiconv-tiny
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,PARTED,parted,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  18. ifeq ($(ADK_TARGET_LIB_UCLIBC)$(ADK_TARGET_LIB_UCLIBC_NG),y)
  19. TARGET_LDFLAGS+= -liconv
  20. endif
  21. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
  22. CONFIGURE_ARGS+= --disable-dynamic-loading
  23. endif
  24. CONFIGURE_ARGS+= --disable-device-mapper \
  25. --without-readline
  26. parted-install:
  27. ifneq ($(ADK_TARGET_USE_STATIC_LIBS),y)
  28. $(INSTALL_DIR) $(IDIR_PARTED)/usr/lib
  29. $(CP) $(WRKINST)/usr/lib/libparted*so* $(IDIR_PARTED)/usr/lib
  30. endif
  31. $(INSTALL_DIR) $(IDIR_PARTED)/usr/sbin
  32. $(INSTALL_BIN) $(WRKINST)/usr/sbin/parted $(IDIR_PARTED)/usr/sbin
  33. include $(ADK_TOPDIR)/mk/pkg-bottom.mk