Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:= 2
  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. $(INSTALL_BIN) $(WRKINST)/usr/sbin/partprobe $(IDIR_PARTED)/usr/sbin
  34. include $(ADK_TOPDIR)/mk/pkg-bottom.mk