2 # Copyright (C) 2018 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
16 PKG_HASH
:=dafead2693faeb8e8b97832b23407f6ed5b3219bc1784f482dd855774e2d50c2
19 PKG_LICENSE
:=GPL-2.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
23 PKG_BUILD_FLAGS
:=gc-sections lto
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/gptfdisk
/Default
31 URL
:=https
://www.rodsbooks.com
/gdisk
36 $(call Package
/gptfdisk
/Default
)
37 TITLE
:=GPT aware disk manipulation utility for interactive use
41 define Package
/gdisk
/description
42 gdisk is GPT aware disk partitioning tool
, with interactive UI.
46 $(call Package
/gptfdisk
/Default
)
47 TITLE
:=GPT aware disk manipulation utility for interactive use
48 DEPENDS
+= +libuuid
+libncursesw
51 define Package
/cgdisk
/description
52 cgdisk is GPT aware disk partitioning tool
, with interactive ncurses based UI.
56 $(call Package
/gptfdisk
/Default
)
57 TITLE
:=GPT aware disk manipulation utility for scripting use
58 DEPENDS
+= +libuuid
+libpopt
61 define Package
/sgdisk
/description
62 sgdisk is GPT-aware disk partitioning tool for scripting use.
65 define Package
/fixparts
66 $(call Package
/gptfdisk
/Default
)
67 TITLE
:=A utility to fix corrupted MBR partitions
71 define Package
/fixparts
/description
72 a text-mode menu-driven program for repairing certain types of problems with
73 Master Boot Record
(MBR
) partition tables
76 TARGET_CXXFLAGS
+= -std
=c
++11 -fno-rtti
77 TARGET_LDFLAGS
+= -Wl
,--as-needed
78 MAKE_FLAGS
+= TARGET
=linux
80 define Package
/gdisk
/install
81 $(INSTALL_DIR
) $(1)/usr
/bin
82 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/gdisk
$(1)/usr
/bin
/
85 define Package
/cgdisk
/install
86 $(INSTALL_DIR
) $(1)/usr
/bin
87 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/cgdisk
$(1)/usr
/bin
/
90 define Package
/sgdisk
/install
91 $(INSTALL_DIR
) $(1)/usr
/bin
92 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/sgdisk
$(1)/usr
/bin
/
95 define Package
/fixparts
/install
96 $(INSTALL_DIR
) $(1)/usr
/bin
97 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/fixparts
$(1)/usr
/bin
/
100 $(eval
$(call BuildPackage
,gdisk
))
101 $(eval
$(call BuildPackage
,cgdisk
))
102 $(eval
$(call BuildPackage
,sgdisk
))
103 $(eval
$(call BuildPackage
,fixparts
))