Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. TARGET_LDFLAGS+= -ltinfo
  22. HOST_STYLE:= manual
  23. CONFIG_STYLE:= manual
  24. INSTALL_STYLE:= manual
  25. host-build:
  26. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  27. ${HOST_MAKE_FLAGS} ${ALL_TARGET})
  28. gptfdisk-hostinstall:
  29. $(CP) $(WRKBUILD)/{g,sg,cg}disk \
  30. $(STAGING_HOST_DIR)/usr/bin
  31. gptfdisk-install:
  32. $(INSTALL_DIR) $(IDIR_GPTFDISK)/usr/sbin
  33. $(INSTALL_BIN) $(WRKBUILD)/{g,sg,cg}disk $(IDIR_GPTFDISK)/usr/sbin
  34. include $(ADK_TOPDIR)/mk/host-bottom.mk
  35. include $(ADK_TOPDIR)/mk/pkg-bottom.mk