2013-07-22 02:09:23 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# dropwatch
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-06-17 09:27:26 +02:00
|
|
|
DROPWATCH_VERSION = 7c33d8a8ed105b07a46b55d71d93b36ed34c16db
|
|
|
|
DROPWATCH_SITE = git://git.infradead.org/users/nhorman/dropwatch.git
|
2017-07-03 22:43:53 +02:00
|
|
|
DROPWATCH_DEPENDENCIES = binutils libnl readline host-pkgconf \
|
|
|
|
$(TARGET_NLS_DEPENDENCIES)
|
2017-03-30 15:43:32 +02:00
|
|
|
DROPWATCH_LICENSE = GPL-2.0
|
2013-07-22 02:09:23 +02:00
|
|
|
DROPWATCH_LICENSE_FILES = COPYING
|
|
|
|
|
2013-07-31 21:26:41 +02:00
|
|
|
# libbfd may be linked to libintl
|
2017-06-30 06:48:34 +02:00
|
|
|
# Ugly... but LDLIBS are hardcoded anyway
|
|
|
|
DROPWATCH_LDLIBS = \
|
2017-07-03 22:43:53 +02:00
|
|
|
-lbfd -lreadline -lnl-3 -lnl-genl-3 -lpthread -lncurses -lm \
|
|
|
|
$(TARGET_NLS_LIBS)
|
2013-07-31 21:26:41 +02:00
|
|
|
|
2013-07-22 02:09:23 +02:00
|
|
|
define DROPWATCH_BUILD_CMDS
|
2013-07-31 21:26:41 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
2017-06-30 06:48:34 +02:00
|
|
|
LDLIBS="$(DROPWATCH_LDLIBS)" build
|
2013-07-22 02:09:23 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DROPWATCH_INSTALL_TARGET_CMDS
|
2013-07-31 21:26:41 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/src/dropwatch \
|
|
|
|
$(TARGET_DIR)/usr/bin/dropwatch
|
2013-07-22 02:09:23 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|