board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / nbd / nbd.mk
blob7eeadec9416506d23fa1bf59e762cf70b0e3cf04
1 ################################################################################
3 # nbd
5 ################################################################################
7 NBD_VERSION = 3.15.2
8 NBD_SOURCE = nbd-$(NBD_VERSION).tar.xz
9 NBD_SITE = http://downloads.sourceforge.net/project/nbd/nbd/$(NBD_VERSION)
10 NBD_CONF_OPTS = --enable-lfs
11 NBD_DEPENDENCIES = libglib2
12 NBD_LICENSE = GPLv2
13 NBD_LICENSE_FILES = COPYING
15 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
16 # We have linux/falloc.h
17 # but uClibc lacks fallocate(2) which is a glibc-ism
18 NBD_CONF_ENV = ac_cv_header_linux_falloc_h=no
19 endif
21 ifneq ($(BR2_PACKAGE_NBD_CLIENT),y)
22 NBD_TOREMOVE += /usr/sbin/nbd-client
23 endif
24 ifneq ($(BR2_PACKAGE_NBD_SERVER),y)
25 NBD_TOREMOVE += /usr/bin/nbd-server
26 endif
27 ifneq ($(BR2_PACKAGE_NBD_TRDUMP),y)
28 NBD_TOREMOVE += /usr/bin/nbd-trdump
29 endif
31 define NBD_CLEANUP_AFTER_INSTALL
32 rm -f $(addprefix $(TARGET_DIR), $(NBD_TOREMOVE))
33 endef
35 NBD_POST_INSTALL_TARGET_HOOKS += NBD_CLEANUP_AFTER_INSTALL
37 $(eval $(autotools-package))