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
12 PKG_RELEASE
:=$(AUTORELEASE
)
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
16 PKG_HASH
:=95d19856f004dabc4b8c342b2612e8d0a9eebdd52004297188369f152e9dc6df
18 PKG_MAINTAINER
:=Alif M. Ahmad
<alive4ever@live.com
>
19 PKG_LICENSE
:=GPL-2.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/gptfdisk
/Default
30 URL
:=https
://www.rodsbooks.com
/gdisk
35 $(call Package
/gptfdisk
/Default
)
36 TITLE
:=GPT aware disk manipulation utility for interactive use
40 define Package
/gdisk
/description
41 gdisk is GPT aware disk partitioning tool
, with interactive UI.
45 $(call Package
/gptfdisk
/Default
)
46 TITLE
:=GPT aware disk manipulation utility for interactive use
47 DEPENDS
+= +libuuid
+libncursesw
50 define Package
/cgdisk
/description
51 cgdisk is GPT aware disk partitioning tool
, with interactive ncurses based UI.
55 $(call Package
/gptfdisk
/Default
)
56 TITLE
:=GPT aware disk manipulation utility for scripting use
57 DEPENDS
+= +libuuid
+libpopt
60 define Package
/sgdisk
/description
61 sgdisk is GPT-aware disk partitioning tool for scripting use.
64 define Package
/fixparts
65 $(call Package
/gptfdisk
/Default
)
66 TITLE
:=A utility to fix corrupted MBR partitions
70 define Package
/fixparts
/description
71 a text-mode menu-driven program for repairing certain types of problems with
72 Master Boot Record
(MBR
) partition tables
75 TARGET_CXXFLAGS
+= -std
=c
++11 -ffunction-sections
-fdata-sections
-fno-rtti
-flto
76 TARGET_LDFLAGS
+= -Wl
,--gc-sections
,--as-needed
78 define Package
/gdisk
/install
79 $(INSTALL_DIR
) $(1)/usr
/bin
80 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/gdisk
$(1)/usr
/bin
/
83 define Package
/cgdisk
/install
84 $(INSTALL_DIR
) $(1)/usr
/bin
85 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/cgdisk
$(1)/usr
/bin
/
88 define Package
/sgdisk
/install
89 $(INSTALL_DIR
) $(1)/usr
/bin
90 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/sgdisk
$(1)/usr
/bin
/
93 define Package
/fixparts
/install
94 $(INSTALL_DIR
) $(1)/usr
/bin
95 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/fixparts
$(1)/usr
/bin
/
98 $(eval
$(call BuildPackage
,gdisk
))
99 $(eval
$(call BuildPackage
,cgdisk
))
100 $(eval
$(call BuildPackage
,sgdisk
))
101 $(eval
$(call BuildPackage
,fixparts
))