2013-07-22 02:09:23 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# dropwatch
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
DROPWATCH_VERSION = 1.4
|
2013-09-06 08:14:15 +02:00
|
|
|
DROPWATCH_SOURCE = dropwatch-$(DROPWATCH_VERSION).tar.xz
|
2014-07-31 10:46:58 +02:00
|
|
|
DROPWATCH_SITE = https://git.fedorahosted.org/cgit/dropwatch.git/snapshot
|
2013-07-22 02:09:23 +02:00
|
|
|
DROPWATCH_DEPENDENCIES = binutils libnl readline host-pkgconf
|
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
|
|
|
|
# Ugly... but LDFLAGS are hardcoded anyway
|
2013-11-05 08:55:14 +01:00
|
|
|
DROPWATCH_LDFLAGS = \
|
2015-02-14 10:23:06 +01:00
|
|
|
$(TARGET_LDFLAGS) -lbfd -lreadline -lnl-3 -lnl-genl-3 \
|
2013-11-27 13:06:19 +01:00
|
|
|
-lpthread -lncurses -lm
|
2013-11-05 08:55:14 +01:00
|
|
|
|
2013-07-31 21:26:41 +02:00
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
2013-11-05 08:55:14 +01:00
|
|
|
DROPWATCH_LDFLAGS += -lintl
|
2013-07-31 21:26:41 +02:00
|
|
|
endif
|
|
|
|
|
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) \
|
2013-11-05 08:55:14 +01:00
|
|
|
LDFLAGS="$(DROPWATCH_LDFLAGS)" 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))
|