mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
gptfdisk: Switch to using uClibc++
Added patches sent upstream to fix usage with uClibc++. Cleaned up license information. Added several size optimizations. Several other Makefile cleanups. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
+14
-7
@@ -9,26 +9,27 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=gptfdisk
|
||||
PKG_VERSION:=1.0.4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=Alif M. Ahmad <alive4ever@live.com>
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
||||
PKG_HASH:=b663391a6876f19a3cd901d862423a16e2b5ceaa2f4a3b9bb681e64b9c7ba78d
|
||||
|
||||
PKG_MAINTAINER:=Alif M. Ahmad <alive4ever@live.com>
|
||||
PKG_LICENSE:=GPL-2.0-or-later
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
include $(INCLUDE_DIR)/uclibc++.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/gptfdisk/Default
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
SUBMENU:=Disc
|
||||
URL:=http://www.rodsbooks.com/gdisk
|
||||
DEPENDS:= +libstdcpp
|
||||
URL:=https://www.rodsbooks.com/gdisk
|
||||
DEPENDS:=$(CXX_DEPENDS)
|
||||
endef
|
||||
|
||||
define Package/gdisk
|
||||
@@ -72,6 +73,12 @@ define Package/fixparts/description
|
||||
Master Boot Record (MBR) partition tables
|
||||
endef
|
||||
|
||||
TARGET_CXXFLAGS += -std=c++11 -ffunction-sections -fdata-sections -fno-rtti -flto
|
||||
TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lm) -Wl,--gc-sections,--as-needed
|
||||
ifeq ($(CONFIG_USE_UCLIBCXX),y)
|
||||
TARGET_LDFLAGS += -nodefaultlibs
|
||||
endif
|
||||
|
||||
define Package/gdisk/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/gdisk $(1)/usr/bin/
|
||||
|
||||
Reference in New Issue
Block a user