c7f4b96471
Since the trailing slash is stripped from $($(PKG)_SITE) by pkg-generic.mk: $(call DOWNLOAD,$($(PKG)_SITE:/=)/$($(PKG)_SOURCE)) so it is redundant. This patch removes it from $(PKG)_SITE variable for BR consistency. Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
37 lines
1.1 KiB
Makefile
37 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
|
|
#
|
|
# Also: always need to add -liberty to hardcoded LDFLAGS for avr32
|
|
DROPWATCH_LDFLAGS = \
|
|
$(TARGET_LDFLAGS) -lbfd -liberty -lreadline -lnl-3 -lnl-genl-3 \
|
|
-lpthread -lncurses -lm
|
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
|
DROPWATCH_LDFLAGS += -lintl
|
|
endif
|
|
|
|
define DROPWATCH_BUILD_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
LDFLAGS="$(DROPWATCH_LDFLAGS)" build
|
|
endef
|
|
|
|
define DROPWATCH_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/src/dropwatch \
|
|
$(TARGET_DIR)/usr/bin/dropwatch
|
|
endef
|
|
|
|
$(eval $(generic-package))
|