dbus: bump to version 1.10.14
[buildroot-gz.git] / package / gptfdisk / gptfdisk.mk
blob274591c7d42925365fdf08bb0815e10b7e7adeb5
1 ################################################################################
3 # gptfdisk
5 ################################################################################
7 GPTFDISK_VERSION = 1.0.0
8 GPTFDISK_SITE = http://downloads.sourceforge.net/sourceforge/gptfdisk
9 GPTFDISK_LICENSE = GPLv2+
10 GPTFDISK_LICENSE_FILES = COPYING
12 GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_GDISK) += gdisk
13 GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_SGDISK) += sgdisk
14 GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_CGDISK) += cgdisk
16 GPTFDISK_DEPENDENCIES += util-linux
17 ifeq ($(BR2_PACKAGE_GPTFDISK_SGDISK),y)
18 GPTFDISK_DEPENDENCIES += popt
19 endif
20 ifeq ($(BR2_PACKAGE_GPTFDISK_CGDISK),y)
21 GPTFDISK_DEPENDENCIES += ncurses
22 endif
24 ifeq ($(BR2_STATIC_LIBS),y)
25 # gptfdisk dependencies may link against libintl/libiconv, so we need
26 # to do so as well when linking statically
27 ifeq ($(BR2_PACKAGE_GETTEXT),y)
28 GPTFDISK_DEPENDENCIES += gettext
29 GPTFDISK_LDLIBS += -lintl
30 endif
32 ifeq ($(BR2_PACKAGE_LIBICONV),y)
33 GPTFDISK_DEPENDENCIES += libiconv
34 GPTFDISK_LDLIBS += -liconv
35 endif
36 endif
38 define GPTFDISK_BUILD_CMDS
39 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
40 LDLIBS='$(GPTFDISK_LDLIBS)' $(GPTFDISK_TARGETS_y)
41 endef
43 define GPTFDISK_INSTALL_TARGET_CMDS
44 for i in $(GPTFDISK_TARGETS_y); do \
45 $(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/sbin/$$i || exit 1; \
46 done
47 endef
49 HOST_GPTFDISK_DEPENDENCIES = host-util-linux host-popt
51 define HOST_GPTFDISK_BUILD_CMDS
52 $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) sgdisk
53 endef
55 define HOST_GPTFDISK_INSTALL_CMDS
56 $(INSTALL) -D -m 0755 $(@D)/sgdisk $(HOST_DIR)/usr/sbin/sgdisk
57 endef
59 $(eval $(generic-package))
60 $(eval $(host-generic-package))