python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / bcache-tools / bcache-tools.mk
blob09604f6bf5878d89ff8aa8907de5c1b02b5df363
1 ################################################################################
3 # bcache-tools
5 ################################################################################
7 BCACHE_TOOLS_VERSION = v1.0.8
8 BCACHE_TOOLS_SITE = $(call github,g2p,bcache-tools,$(BCACHE_TOOLS_VERSION))
9 BCACHE_TOOLS_LICENSE = GPLv2
10 BCACHE_TOOLS_LICENSE_FILES = COPYING
11 BCACHE_TOOLS_DEPENDENCIES = host-pkgconf util-linux
13 # We pass $(TARGET_CONFIGURE_OPTS) as environment variable to allow
14 # the bcache-tools Makefile to alter CFLAGS
15 define BCACHE_TOOLS_BUILD_CMDS
16 $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
17 endef
19 # The bcache-tools Makefile expects the man8 directory to exist
20 # expects the /lib/udev/rules.d directory to exist.
21 define BCACHE_TOOLS_CREATE_MISSING_DIRS
22 $(INSTALL) -m 0755 -d $(TARGET_DIR)/usr/share/man/man8
23 $(INSTALL) -m 0755 -d $(TARGET_DIR)/lib/udev/rules.d
24 endef
26 BCACHE_TOOLS_PRE_INSTALL_TARGET_HOOKS += BCACHE_TOOLS_CREATE_MISSING_DIRS
28 define BCACHE_TOOLS_INSTALL_TARGET_CMDS
29 $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
30 DESTDIR=$(TARGET_DIR) install
31 endef
33 $(eval $(generic-package))