You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
2.5 KiB

  1. #
  2. # Copyright (C) 2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=gptfdisk
  9. PKG_VERSION:=1.0.8
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  13. PKG_HASH:=95d19856f004dabc4b8c342b2612e8d0a9eebdd52004297188369f152e9dc6df
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/gptfdisk/Default
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. SUBMENU:=Disc
  23. URL:=https://www.rodsbooks.com/gdisk
  24. DEPENDS:=+libstdcpp
  25. endef
  26. define Package/gdisk
  27. $(call Package/gptfdisk/Default)
  28. TITLE:=GPT aware disk manipulation utility for interactive use
  29. DEPENDS+= +libuuid
  30. endef
  31. define Package/gdisk/description
  32. gdisk is GPT aware disk partitioning tool, with interactive UI.
  33. endef
  34. define Package/cgdisk
  35. $(call Package/gptfdisk/Default)
  36. TITLE:=GPT aware disk manipulation utility for interactive use
  37. DEPENDS+= +libuuid +libncursesw
  38. endef
  39. define Package/cgdisk/description
  40. cgdisk is GPT aware disk partitioning tool, with interactive ncurses based UI.
  41. endef
  42. define Package/sgdisk
  43. $(call Package/gptfdisk/Default)
  44. TITLE:=GPT aware disk manipulation utility for scripting use
  45. DEPENDS+= +libuuid +libpopt
  46. endef
  47. define Package/sgdisk/description
  48. sgdisk is GPT-aware disk partitioning tool for scripting use.
  49. endef
  50. define Package/fixparts
  51. $(call Package/gptfdisk/Default)
  52. TITLE:=A utility to fix corrupted MBR partitions
  53. DEPENDS+=
  54. endef
  55. define Package/fixparts/description
  56. a text-mode menu-driven program for repairing certain types of problems with
  57. Master Boot Record (MBR) partition tables
  58. endef
  59. TARGET_CXXFLAGS += -std=c++11 -ffunction-sections -fdata-sections -fno-rtti -flto
  60. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  61. define Package/gdisk/install
  62. $(INSTALL_DIR) $(1)/usr/bin
  63. $(INSTALL_BIN) $(PKG_BUILD_DIR)/gdisk $(1)/usr/bin/
  64. endef
  65. define Package/cgdisk/install
  66. $(INSTALL_DIR) $(1)/usr/bin
  67. $(INSTALL_BIN) $(PKG_BUILD_DIR)/cgdisk $(1)/usr/bin/
  68. endef
  69. define Package/sgdisk/install
  70. $(INSTALL_DIR) $(1)/usr/bin
  71. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sgdisk $(1)/usr/bin/
  72. endef
  73. define Package/fixparts/install
  74. $(INSTALL_DIR) $(1)/usr/bin
  75. $(INSTALL_BIN) $(PKG_BUILD_DIR)/fixparts $(1)/usr/bin/
  76. endef
  77. $(eval $(call BuildPackage,gdisk))
  78. $(eval $(call BuildPackage,cgdisk))
  79. $(eval $(call BuildPackage,sgdisk))
  80. $(eval $(call BuildPackage,fixparts))