Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_BUILDDEP:= util-linux popt
  11. HOST_BUILDDEP:= util-linux-host popt-host
  12. PKG_URL:= http://www.rodsbooks.com/gdisk/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=gptfdisk/}
  14. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. include $(ADK_TOPDIR)/mk/host.mk
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call HOST_template,GPTFDISK,gptfdisk,$(PKG_VERSION)-$(PKG_RELEASE)))
  18. $(eval $(call PKG_template,GPTFDISK,gptfdisk,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  19. HOST_STYLE:= manual
  20. CONFIG_STYLE:= manual
  21. INSTALL_STYLE:= manual
  22. host-build:
  23. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  24. ${HOST_MAKE_FLAGS} ${ALL_TARGET})
  25. gptfdisk-hostinstall:
  26. $(CP) $(WRKBUILD)/{g,sg,cg}disk \
  27. $(STAGING_HOST_DIR)/usr/bin
  28. gptfdisk-install:
  29. $(INSTALL_DIR) $(IDIR_GPTFDISK)/usr/sbin
  30. $(INSTALL_BIN) $(WRKBUILD)/{g,sg,cg}disk $(IDIR_GPTFDISK)/usr/sbin
  31. include $(ADK_TOPDIR)/mk/host-bottom.mk
  32. include $(ADK_TOPDIR)/mk/pkg-bottom.mk