python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / dropwatch / dropwatch.mk
blob3565927e29b31023243a99c351ba242e24d8b197
1 ################################################################################
3 # dropwatch
5 ################################################################################
7 DROPWATCH_VERSION = 1.4
8 DROPWATCH_SOURCE = dropwatch-$(DROPWATCH_VERSION).tar.xz
9 DROPWATCH_SITE = https://git.fedorahosted.org/cgit/dropwatch.git/snapshot
10 DROPWATCH_DEPENDENCIES = binutils libnl readline host-pkgconf
11 DROPWATCH_LICENSE = GPLv2
12 DROPWATCH_LICENSE_FILES = COPYING
14 # libbfd may be linked to libintl
15 # Ugly... but LDFLAGS are hardcoded anyway
16 DROPWATCH_LDFLAGS = \
17 $(TARGET_LDFLAGS) -lbfd -lreadline -lnl-3 -lnl-genl-3 \
18 -lpthread -lncurses -lm
20 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
21 DROPWATCH_LDFLAGS += -lintl
22 endif
24 define DROPWATCH_BUILD_CMDS
25 $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
26 LDFLAGS="$(DROPWATCH_LDFLAGS)" build
27 endef
29 define DROPWATCH_INSTALL_TARGET_CMDS
30 $(INSTALL) -D -m 0755 $(@D)/src/dropwatch \
31 $(TARGET_DIR)/usr/bin/dropwatch
32 endef
34 $(eval $(generic-package))