Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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:= gptfdisk
  5. PKG_VERSION:= 1.0.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 864c8aee2efdda50346804d7e6230407d5f42a8ae754df70404dd8b2fdfaeac7
  8. PKG_DESCR:= utilities to create gpt partition tables
  9. PKG_SECTION:= sys/fs
  10. PKG_DEPENDS:= libncurses libuuid
  11. PKG_BUILDDEP:= util-linux popt ncurses
  12. HOST_BUILDDEP:= util-linux-host popt-host
  13. PKG_NEEDS:= c++
  14. PKG_URL:= http://www.rodsbooks.com/gdisk/
  15. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=gptfdisk/}
  16. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  17. include $(ADK_TOPDIR)/mk/host.mk
  18. include $(ADK_TOPDIR)/mk/package.mk
  19. $(eval $(call HOST_template,GPTFDISK,gptfdisk,$(PKG_VERSION)-$(PKG_RELEASE)))
  20. $(eval $(call PKG_template,GPTFDISK,gptfdisk,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  21. ifneq ($(OS_FOR_BUILD),Darwin)
  22. TARGET_LDFLAGS+= -ltinfo
  23. endif
  24. HOST_STYLE:= manual
  25. CONFIG_STYLE:= manual
  26. INSTALL_STYLE:= manual
  27. host-build:
  28. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  29. ${HOST_MAKE_FLAGS} ${ALL_TARGET})
  30. gptfdisk-hostinstall:
  31. $(CP) $(WRKBUILD)/{g,sg,cg}disk \
  32. $(STAGING_HOST_DIR)/usr/bin
  33. gptfdisk-install:
  34. $(INSTALL_DIR) $(IDIR_GPTFDISK)/usr/sbin
  35. $(INSTALL_BIN) $(WRKBUILD)/{g,sg,cg}disk $(IDIR_GPTFDISK)/usr/sbin
  36. include $(ADK_TOPDIR)/mk/host-bottom.mk
  37. include $(ADK_TOPDIR)/mk/pkg-bottom.mk