Merge pull request #16194 from miska/snort3-master
[feed/packages.git] / utils / gptfdisk / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gptfdisk
11 PKG_VERSION:=1.0.8
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_HASH:=95d19856f004dabc4b8c342b2612e8d0a9eebdd52004297188369f152e9dc6df
17
18 PKG_MAINTAINER:=Alif M. Ahmad <alive4ever@live.com>
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_BUILD_PARALLEL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/gptfdisk/Default
27 SECTION:=utils
28 CATEGORY:=Utilities
29 SUBMENU:=Disc
30 URL:=https://www.rodsbooks.com/gdisk
31 DEPENDS:=+libstdcpp
32 endef
33
34 define Package/gdisk
35 $(call Package/gptfdisk/Default)
36 TITLE:=GPT aware disk manipulation utility for interactive use
37 DEPENDS+= +libuuid
38 endef
39
40 define Package/gdisk/description
41 gdisk is GPT aware disk partitioning tool, with interactive UI.
42 endef
43
44 define Package/cgdisk
45 $(call Package/gptfdisk/Default)
46 TITLE:=GPT aware disk manipulation utility for interactive use
47 DEPENDS+= +libuuid +libncursesw
48 endef
49
50 define Package/cgdisk/description
51 cgdisk is GPT aware disk partitioning tool, with interactive ncurses based UI.
52 endef
53
54 define Package/sgdisk
55 $(call Package/gptfdisk/Default)
56 TITLE:=GPT aware disk manipulation utility for scripting use
57 DEPENDS+= +libuuid +libpopt
58 endef
59
60 define Package/sgdisk/description
61 sgdisk is GPT-aware disk partitioning tool for scripting use.
62 endef
63
64 define Package/fixparts
65 $(call Package/gptfdisk/Default)
66 TITLE:=A utility to fix corrupted MBR partitions
67 DEPENDS+=
68 endef
69
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
73 endef
74
75 TARGET_CXXFLAGS += -std=c++11 -ffunction-sections -fdata-sections -fno-rtti -flto
76 TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
77
78 define Package/gdisk/install
79 $(INSTALL_DIR) $(1)/usr/bin
80 $(INSTALL_BIN) $(PKG_BUILD_DIR)/gdisk $(1)/usr/bin/
81 endef
82
83 define Package/cgdisk/install
84 $(INSTALL_DIR) $(1)/usr/bin
85 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cgdisk $(1)/usr/bin/
86 endef
87
88 define Package/sgdisk/install
89 $(INSTALL_DIR) $(1)/usr/bin
90 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sgdisk $(1)/usr/bin/
91 endef
92
93 define Package/fixparts/install
94 $(INSTALL_DIR) $(1)/usr/bin
95 $(INSTALL_BIN) $(PKG_BUILD_DIR)/fixparts $(1)/usr/bin/
96 endef
97
98 $(eval $(call BuildPackage,gdisk))
99 $(eval $(call BuildPackage,cgdisk))
100 $(eval $(call BuildPackage,sgdisk))
101 $(eval $(call BuildPackage,fixparts))