kumquat-buildroot/package/dropwatch/dropwatch.mk
Jerzy Grzegorek 62146ea3ad change package tarball compression to xz whenever possible
[Peter: leave change xz tarball format to not end up with circular deps]
Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-09-08 22:44:23 +02:00

39 lines
1.1 KiB
Makefile

################################################################################
#
# dropwatch
#
################################################################################
DROPWATCH_VERSION = 1.4
DROPWATCH_SOURCE = dropwatch-$(DROPWATCH_VERSION).tar.xz
DROPWATCH_SITE = https://git.fedorahosted.org/cgit/dropwatch.git/snapshot/
DROPWATCH_DEPENDENCIES = binutils libnl readline host-pkgconf
DROPWATCH_LICENSE = GPLv2
DROPWATCH_LICENSE_FILES = COPYING
# libbfd may be linked to libintl
# Ugly... but LDFLAGS are hardcoded anyway
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
DROPWATCH_LDFLAGS = LDFLAGS="-lintl -lbfd -lreadline -lnl-3 -lnl-genl-3"
endif
define DROPWATCH_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
$(DROPWATCH_LDFLAGS) build
endef
define DROPWATCH_CLEAN_CMDS
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) clean
endef
define DROPWATCH_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/src/dropwatch \
$(TARGET_DIR)/usr/bin/dropwatch
endef
define DROPWATCH_UNINSTALL_CMDS
rm -f $(TARGET_DIR)/usr/bin/dropwatch
endef
$(eval $(generic-package))