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
|
|
|
|
2022-06-11 19:23:47 +02:00
|
|
|
GPTFDISK_VERSION = 1.0.9
|
2013-03-07 11:45:24 +01:00
|
|
|
GPTFDISK_SITE = http://downloads.sourceforge.net/sourceforge/gptfdisk
|
2017-03-30 15:43:32 +02:00
|
|
|
GPTFDISK_LICENSE = GPL-2.0+
|
2014-06-24 20:55:56 +02:00
|
|
|
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
|
2023-09-13 23:20:01 +02:00
|
|
|
GPTFDISK_LDLIBS += -luuid
|
|
|
|
|
2013-03-07 11:45:24 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GPTFDISK_SGDISK),y)
|
2022-11-07 00:04:50 +01:00
|
|
|
GPTFDISK_DEPENDENCIES += host-pkgconf popt
|
|
|
|
GPTFDISK_SGDISK_LDLIBS += `$(PKG_CONFIG_HOST_BINARY) --libs 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
|
|
|
|
2015-05-22 14:49:32 +02:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2017-07-03 23:58:53 +02:00
|
|
|
# gptfdisk dependencies may link against libiconv, so we need to do so
|
|
|
|
# as well when linking statically
|
2015-05-25 21:58:03 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
|
|
GPTFDISK_DEPENDENCIES += libiconv
|
|
|
|
GPTFDISK_LDLIBS += -liconv
|
|
|
|
endif
|
2014-11-25 12:57:06 +01:00
|
|
|
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) \
|
2022-11-07 00:04:50 +01:00
|
|
|
LDLIBS='$(GPTFDISK_LDLIBS)' \
|
|
|
|
SGDISK_LDLIBS='$(GPTFDISK_SGDISK_LDLIBS)' $(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
|
|
|
|
|
2015-12-09 00:20:23 +01:00
|
|
|
HOST_GPTFDISK_DEPENDENCIES = host-util-linux host-popt
|
|
|
|
|
|
|
|
define HOST_GPTFDISK_BUILD_CMDS
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) sgdisk
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_GPTFDISK_INSTALL_CMDS
|
2017-07-05 13:14:20 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/sgdisk $(HOST_DIR)/sbin/sgdisk
|
2015-12-09 00:20:23 +01:00
|
|
|
endef
|
|
|
|
|
2013-03-07 11:45:24 +01:00
|
|
|
$(eval $(generic-package))
|
2015-12-09 00:20:23 +01:00
|
|
|
$(eval $(host-generic-package))
|