2013-03-07 11:45:24 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# gptfdisk
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
GPTFDISK_VERSION = 0.8.6
|
|
|
|
GPTFDISK_SITE = http://downloads.sourceforge.net/sourceforge/gptfdisk
|
|
|
|
|
|
|
|
GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_GDISK) += gdisk
|
|
|
|
GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_SGDISK) += sgdisk
|
2013-03-07 11:45:29 +01:00
|
|
|
GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_CGDISK) += cgdisk
|
2013-03-07 11:45:24 +01:00
|
|
|
|
|
|
|
GPTFDISK_DEPENDENCIES += util-linux
|
|
|
|
ifeq ($(BR2_PACKAGE_GPTFDISK_SGDISK),y)
|
|
|
|
GPTFDISK_DEPENDENCIES += popt
|
|
|
|
endif
|
2013-03-07 11:45:29 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GPTFDISK_CGDISK),y)
|
|
|
|
GPTFDISK_DEPENDENCIES += ncurses
|
|
|
|
endif
|
2013-03-07 11:45:24 +01:00
|
|
|
|
2013-03-07 11:45:28 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
|
|
|
GPTFDISK_DEPENDENCIES += icu
|
|
|
|
GPTFDISK_MAKE_OPTS += USE_UTF16=y
|
|
|
|
endif
|
|
|
|
|
2013-03-07 11:45:24 +01:00
|
|
|
define GPTFDISK_BUILD_CMDS
|
2013-03-07 11:45:26 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
2013-03-07 11:45:28 +01:00
|
|
|
$(GPTFDISK_MAKE_OPTS) $(GPTFDISK_TARGETS_y)
|
2013-03-07 11:45:24 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define GPTFDISK_INSTALL_TARGET_CMDS
|
|
|
|
for i in $(GPTFDISK_TARGETS_y); do \
|
2013-03-07 11:45:27 +01:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/sbin/$$i; \
|
2013-03-07 11:45:24 +01:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
define GPTFDISK_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,$(GPTFDISK_TARGETS_y))
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|