2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-07 11:45:24 +01:00
|
|
|
#
|
|
|
|
# gptfdisk
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-07 11:45:24 +01:00
|
|
|
|
|
|
|
GPTFDISK_VERSION = 0.8.6
|
|
|
|
GPTFDISK_SITE = http://downloads.sourceforge.net/sourceforge/gptfdisk
|
2014-06-24 20:55:56 +02:00
|
|
|
GPTFDISK_LICENSE = GPLv2+
|
|
|
|
GPTFDISK_LICENSE_FILES = COPYING
|
2013-03-07 11:45:24 +01:00
|
|
|
|
|
|
|
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)
|
2014-10-25 08:20:44 +02:00
|
|
|
GPTFDISK_DEPENDENCIES += popt
|
2013-03-07 11:45:24 +01:00
|
|
|
endif
|
2013-03-07 11:45:29 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GPTFDISK_CGDISK),y)
|
2014-10-25 08:20:44 +02:00
|
|
|
GPTFDISK_DEPENDENCIES += ncurses
|
2013-03-07 11:45:29 +01:00
|
|
|
endif
|
2013-03-07 11:45:24 +01:00
|
|
|
|
2013-03-07 11:45:28 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
2014-10-25 08:20:44 +02:00
|
|
|
GPTFDISK_DEPENDENCIES += icu
|
|
|
|
GPTFDISK_MAKE_OPTS += USE_UTF16=y
|
2013-03-07 11:45:28 +01:00
|
|
|
endif
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE)$(BR2_STATIC_LIBS),yy)
|
2014-11-25 12:57:06 +01:00
|
|
|
GPTFDISK_MAKE_OPTS += LDLIBS=-lintl
|
|
|
|
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 \
|
2014-11-30 15:18:31 +01:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/sbin/$$i || exit 1; \
|
2013-03-07 11:45:24 +01:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|